instruction
stringlengths
32
27.2k
I have a number that consists of 102 digits and I need to factor it. I ran it in alpertrom.com.ar, but it'll take up to 40 hours if I counted all right. Is there any way to make it by hand (stupid question), I mean to simplify computation for the program? Or maybe anyone can factor it out. The professor is probably jus...
I was thinking the below attack scenario on hash function. Let's assume that three binary numbers A(1000 bits), B(16 bits) and C(283 bits) are concatenated together and H(A||B||C) is generated using SHA256 or SHA512. Here, the attacker knows C. Knowing C, is it possible for an attacker to find A or B or (A||B) from the...
I'm new here and by no means an expert on cryptography. I like to dabble, and one of my favorite classical ciphers is the Vigenere. I understand that the normal method of Vigenere encrypting is to add the corresponding number of the letter of the key to the number of the letter of the message, thus producing the ciph...
In $\mathbb{Z}$, the discrete Gaussian distribution is defined as $D_{Z,s}(x) = \frac{\rho_s(x)}{\rho_s(\mathbb{Z})}, x\in \mathbb{Z}$. In LWE, $(\overrightarrow{a}, b = \langle \overrightarrow{a}, \overrightarrow{s}\rangle + e)\in \mathbb{Z}_p^n\times \mathbb{Z}_p$, the error $e$ is just sampled by rounding from conti...
If I encrypt a plaintext p using AES-256 in GCM mode with the keys $k_1 ... k_n$ and I want to decrypt it later, can I use the keys in any order when decrypting or do I have to use the same order as when encrypting but in reverse? If not, is there a modern symmetric encryption algorithm that lets me perform the decrypt...
I would like to know if there is a construction for a Rolling Hash function to be used to split the received untrusted data in chunks. The data is split whenever the hash function drops below a certain threshold and the splitted data is then used to build trees for efficient indexing of such data. In my case the input ...
I have 10 ciphertexts and 10 plain texts I want to know which cipher is from which plain text how can I know this I know the name of substitution cipher, transposition cipher, Vigen`ere cipher and case-insensitive letters-only one-time pad that are used in these 10 cipher and plain text
I understand that: $[a+b]G = [a]G + [b]G$ where $a$ and $b$ are secret keys. (See: Is there a relationship between the secp256k1 public key of the sum of two private keys, and the public keys of those original two private keys?) If, under the circumstances: ECDSA is the signing algorithm. Alice publishes the public k...
I watched this video where somebody finds bitcoin wallet private keys using only the "sigR" value and the public key using a python script named "formula". How does this work and does converting the values to decimal help somehow?
I'm using the Prolly tree data structure. This structure operates on serialized data which it chunks at the byte level into pieces. To build trees recursively, the list of chunk hashes is itself serialized and chunked until an un-chunked root node is created. I am building a distributed application that must construct ...
I am currently trying to attack a modified AES with an identity S-box. I found this topic which explains that we have the equation $AES(P) = AP + K$, with $A$ a 128x128 matrix that is not key-dependent and can easily be computed, and $K$ a key-dependent constant. However, I fail to understand where this $K$ comes from ...
Given an Elgamal encryption scheme with public parameters $k_{pub}=(p,\alpha,\beta)$ and an unknown private key $k_{pr}=d$. Due to an erroneous implementation of the random number generator of the encrypting party, the following relation holds for two temporary keys: $k_{M,\,j+1}= k^{2}_{M,\,j}$ mod p Given $n$ cons...
So, I am currently trying to understand the differences between DH and ECDH. I understand the basics between how the two algorithms work, however, I do not clearly understand how to compare the security of one to another, meaning the size of the DH key used vs the EC curve size used. The question thus is, what DH key s...
I am reading lattice based cryptography for my master thesis, I am looking for the earliest version of BKZ algorithm, and its applications in cryptography, to understand it very well, I already know about LLL algorithm. and thanks in advance
Given $\text{server}_\text{pub}= ((2^\text{largerandom}\bmod P) \cdot (2^{\operatorname{intvalueof}(“XXXX”)} \bmod P)^\text{pin})\bmod P$ We know the $\text{server}_\text{pub}$ and we know that $\text{pin} \in [0,9999]$. What we want to find out is the pin. You could write it as $( (2^x \bmod P) \cdot Z ) \bmod P = \te...
Since last year, IO finally seems to be within our reach. Several papers (https://eprint.iacr.org/2020/1003, https://eprint.iacr.org/2020/1024 and https://eprint.iacr.org/2020/1042) proved the existence of IO based on almost-standard assumptions. Also, we have some heuristically secure (or rather "we don't really know ...
Given is a DHKE algorithm. The modulus has 1024 bit and is a generator of a subgroup where ()≈2160. Assuming the public keys have already been computed, how many number of modular multiplication and modular squaring are there in the session key. Using the square and multiply algorithm on $2^{160}$ : 160 = 10100000 in...
Auto-key cipher: $A = B = K = L = Z^*_n$ , $n \geq 2$. The keystream is given by $z_0 = K \in \mathcal{K}$, $z_n= x_{n−1}$ for $n \geq 1$. The encrypted text is $y_0 = x_0+K, y_i= x_i + y_{i-1}$. The question is: is this a good encrypting? May somebody help me answer this question?
What is the speed of AES and how to estimate it well? Here: https://security.stackexchange.com/questions/92074/aes-algorithm-encryption-time they wrote it could be 700 MB/s. But here: https://www.cse.wustl.edu/~jain/cse567-06/ftp/encryption_perf/index.html Abdel-Karima Al Tamima estimated it is about 50 MB/s. Why are t...
How I calculate density operator for pure quantum state for bb84 in 2D? BB84 protocol, proposed in 1984 by Bennett and Brassard – that's where the name comes from. The idea is to encode every bit of the secret key into the polarization state of a single photon.
Im trying to comprehend a proof from the paper "Efficient Identity Based Signature Schemes Based on Pairings"(2002) by Florian Hess. At one point of the proof for Theorem 2 I don't understand how the cardinality is concluded. Summarized my problem is the following: We have a machine C that replays a machine B at most $...
I would like to know if there's a scheme that can allow something like the following: Alice signs a message $M$ with signature $S$ and gives it to Bob and Mallory. Bob can present any subset of $M$, along with $S$, to Victor, who can verify that the subset matches $M$. If Mallory changes some bits of $M$, then sends a...
I am looking into Authentication in lattice cryptography. Specifically in the NIST KEM finalists. I was specifically looking to see if there was a GCM (Galois counter mode) equivalence in the lattice space. As I understand, GCM will also be broken by quantum computing and therefore may need investigating also. Do the N...
I know that the product of two negligible functions will always be negligible, but I'm wondering if it's possible for the product of two non-negligible functions to be a negligible function?
For any $n\in\mathbb{N}$, let $\{0,1\}^n$ denote the set of $\{0,1\}$-strings of length $n$. For $n\in\mathbb{N}$ let $$\{0,1\}^* = \bigcup_{k\in\mathbb{N}}\{0,1\}^k \text{ and } \{0,1\}^{\leq n} = \bigcup_{k\leq n}\{0,1\}^k.$$ Note that $|\{0,1\}^{\leq n}| = 2^{n+1} -1$. Cryptographic functions $h$ map $\{0,1\}^*$ to ...
I am wondering if you have an input $x_{1}$ and you XOR it with an unknown random second input $x_{2}$, is it safe to say that the resulting $x_{1}\oplus x_{2}$ will be random ? The final idea would be to first fix all the $x_{i}$ for $i>0$ so that one cannot change its $x_{i}$ afterwards, then set $x_{0}$ to a random ...
I must perform calculate of substract two points: Let $G$ be the generator point and; $P_1 =[1]G = (x_1,y_1)$ $P_2 = [2]G = (x_2,y_2)$, When I will subtract $P_1 - P_2$ -> I will move Point to N-1 with negative $y_1$ of $P_1$ second: Let $G$ be the generator point and; $P_5 =[5]G = (x_1,y_1)$ $P_2 = [2]G = (x_2,y_2)$, ...
I am learning the simulation-based security proofs in MPC, and have read the great tutorial "How to simulate it" by Prof. Lindell. Here's my understanding about why we need to "extract adversary's input" in writing simulation proofs against malicious adversaries (please correct if I am wrong): For a malicious adversary...
I was generating HashValue for contents in the file. I want a different hash value every time I wanna generate even if the file is the same. I am using SHA256. For the same files, the hash value I am getting is the same. Is there any way to generate different hash values?
I found this paper: https://www.researchgate.net/profile/Ganesh-Gupta-7/publication/271704029_What_is_Birthday_attack/links/54cfbdcc0cf24601c0958a1e/What-is-Birthday-attack.pdf The following attack is outlined on page 9: Input ----- Two types of messages - legitimate message 1 ; fraudulent message 2 ; m bit length; one...
Let's say I have 128-bit cipher in which each round needs to get 768 key bits. Let's consider 10 rounds. It can be easily 128-bit key cipher. I can do key schedule and produce 7680 bits of keys (let's say with HKDF). But I can also use for example 512-bit key. Then I still need key schedule, but the main key is stronge...
I am going through an "Introduction to Cryptography" chapter in my Elementary Number Theory course, wherein I'm studying cryptographic systems involving modular exponentiation. The textbook (By David M. Burton) says that: A user who wishes to conceal information might begin by selecting a (large) prime p to serve as t...
Let $(KG,D,E)$ be a symmetric encryption scheme. Fix $sk\gets KG(\lambda)$ and an arbitrary plaintext $m$. Generally speaking, $E_{sk}$ is not deterministic, so that $E_{sk}(m)$ is a random variable, which could distribute in many different ways. Is there a way to generically transform such a scheme to a scheme in whic...
We compute hash $H(M_0\mathbin\|M_1)$ of size $d\ge1$ for some constant header $M_0$ of size $m_0$, and $\nu\ge1$ messages $M_1$ of random content and size $m_1$. For Merkle-Damgård hashes, a simple optimization pre-computes the first $\left\lfloor m_0/r\right\rfloor$ rounds (where $r$ is the block size), and for some ...
We all know that AES uses Key, IV and salt. But what if we add special ASCII characters like Alternate 255 (" ") or Alternatively 163 ("£") or Alternate 224 ("α") in the Key or IV or salt. Does it add extra security?
Is it possible to alter the contents of a plaintext message without altering the ciphertext? Altering the private key is allowed to accomplish this. If the answer is yes, how would I go about in doing this? Encryption strength is not particularly important.
In the original SIDH paper by De Feo, Jao and Plût, the basis points $P_A$ and $Q_A$ are supposed to be independent points in $E(\mathbb{F}_{p^2})$ of order $\ell_A^{e_A}$ for some small prime $\ell_A$ on some supersingular curve $E$. To check independence, they suggest computing the Weil-pairing $e(P_A, Q_A)$ and chec...
If someone tells me their service uses TLS 1.2 or higher, how much 'guaranteed' security does this provide? Is it possible to correctly claim to be using TLS 1.2 or 1.3 and still be insecure? For example, using a correctly implimented TLS handshake but with a weak cipher? If it is possible to 'correctly' impliment TLS ...
NB: what I meant is with implementation of the BGV-cryptosystem, not the CKKS cryptosystem which is designed with floating point arithmetic in mind. HElib as I understand it only supports fixed-point arithmetic (or binary arithmetic). Why is this the case when everyone who works with computation uses floating point rep...
While playing around with the AES SBOX, I found out that there are 85 unordered triplets (a, b, c) that have the following characteristics: a ^ b ^ c = 0 SBOX[a] ^ SBOX[b] ^ SBOX[c] = SBOX[0] Furthermore, the 85*3 = 255 values from the triplets cover the [1, 255] range, which is cute as zero was singled out on the ot...
In theory, there are infinite inputs, that you can hash with SHA-256. So theoretically it would be possible that one hash string would read 0xaaaaaaaa... But would that also be possible practically, or do the algorithms check that this is not happening?
Pretty much the title. We have that $x$ is a prefix of $PAD(x)$, instead of being a suffix - was that an arbitrary choice or is there a reason for it? Thank you.
LUKS 2 encryption uses Argon2i as the default PBKDF. As the key is used on each access, I guess side-channel attacks are a significant threat factor. However, as I'm not a cryptographer, I am not qualified to say but I'm still interested whether this choice has its grounds. Specifically, I am not interested in whether ...
I'm planning on making a chat application for fun, in C++. I just have a few questions in order to maintain forward/future secrecy across messages. If one party is offline, but the other isn't, what do we do in this case? I've been planning on storing it in a database until the other party comes online and reads it, in...
I know it's possible to find a hash value with multiple zeroes in it, I know of some BitCoin hashes with it, but how difficult is it to find/create a hash digest with 12 or more leading hex zeroes in it?
Firstly, I'd just like to clarify, I am less than a beginner when it comes to cryptography. Please bear with me. I'm sure its flawed I just don't know how. I was bored one day, and decided to come up with my own cryptographic algorithm. I succeeded, but I am clueless on how to write a mathematical statement to define ...
For example, a distributed blockchain that would keep track of the weather. Anyone could add a weather reading, and several of these would be stored in each block, just like transactions in a cryptocurrency. There is no reward for mining these blocks, so speed of mining wouldn't be a huge concern for inflation, all tha...
$$RsaPrivate(RsaPublic(m)) = (m^e \bmod n)^d \bmod n = (m^e)^d \bmod n$$ $$RsaPublic(RsaPrivate(m)) = (m^d \bmod n)^e \bmod n = (m^e)^d \bmod n$$ why is this always true?
In each of those experiments, we have a function $Gen(x)$ who generates the key or a pair of keys respectively for symmetric or asymmetric algorithms. $x = 1^n$ : I read on other questions that is a $1$ string bit of length $n$, but I didnìt understood why it is used value as input to generate the key.
Actually my concern is that I am planning to apply xoshiro256+ for implementation of stream cipher https://prng.di.unimi.it/ for my cryptographic application. It passes the BigCrush tests. Will it provide me the same level of secuirty as any other cryptographically secure PRNG (CSPRNG)? On the webiste, they claim that ...
I'm looking to create a fair selection of a giveaway winner, but I am versed enough in cryptography theory to determine if the below would hold up to public scrutiny if published on github. The reason I am not using random.choice is for a "suspense" factor, where participants will be removed one by one until only one i...
I am building a TRNG on a FPGA based on ring oscillators. I found out that Linear Feedback Shift Registers (LFSRs) are commonly used for the post-processing of TRNGs. Here is my initial design: Let's say that the TRNG core block produces a biased output (e.g. more 1s than 0s or the value is more likely to transition b...
Can we add characters like α π Σ µ σ ♂   ╩ Φ ¥ ∩ ∞ ε in the AES 256bit CBC Encryption Key? Does it make the key more unique? In my VB.NET application I am using a key like this: "∩TY&Hjubf78▐Φ4≥╬V% ÷⌡Uαπ^f7cHJßF" Does it make any difference in Encrypting the data?
Recently I'm using HElib for project. Here I hope to init a Client-class,which has pub&pri keys. However when I was building class, I found that I don't know how to save Keys and other paras like Context. The code I use is "example" of HElib. Could someone who is familiar with HElib tell me more about saving in HElibs,...
For $n\in\mathbb{N}$ let $\{0,1\}^n$ denote the set of $\{0,1\}$-vectors of length $n$. Let $\{0,1\}^* = \bigcup_{n\in\mathbb{N}}\{0,1\}^n$ denote the collection of all finite-length $\{0,1\}$-strings. If $x,y\in \{0,1\}^n$ for some $n\in\mathbb{N}$, we let $$d_H(x,y) = \big|\big\{ i\in \{0,\ldots,n-1\}:x_i \neq y_i\bi...
Can anyone clearly explain the difference between these two notions of obfuscation security: VBB security and D-VBB Security. VBB Security: An obfuscated program is no better than just a black box access to the program D-VBB Security : Let $D = \{D_n\}_{n\in N}$ be a sequence of distributions on F, and O an obfuscator ...
Im currently coding my own transaction lookup page for cryptos. Since Litecoin and Bitcoin are so similar to their txid. I wanted to ask if its actually possible that these 2 currencies have overlapping txid's. I know that Bitcoin uses sha256 & Litecoin uses scrypt. Let me know, im really interested.
I've been reading A Stick Figure Guide to the Advanced Encryption Standard (AES) to help me understand how AES works. In this picture it says: I take each column and mix the bits in it. But then never explains how he mixes the bits. I've been searching for a while, but can find nothing about it. Can anyone explain wh...
Rabin signature is rightly celebrated as a signature scheme with provable reduction to factorization. How do we show that for Rabin-Williams signature as standardized, under the common and realistic hypothesis that the adversary has access to a signature oracle? I'll describe in detail the standardized modular arithme...
I have been exploring and studying the EDDSA algorithm for curve 25519 and curve 448 in RFC 8032 (https://www.rfc-editor.org/rfc/rfc8032) as well as for curves 414 and 521 from this (https://eprint.iacr.org/2015/677.pdf ) and with respect to the rules for pruning a scaler before multiplying the base point, I noticed tw...
Apologies in advance if the terminology I am using in the title of this question, is flawed. I want an algorithm that will produce a ternary value (meaning from a set of three, as opposed to from a set of two as is the case with a 1 bit / binary value) given some message (of arbitrary length, much the same way message ...
I Have used Sage command sage: S = SBox(14,4,13,1,2,15,11,8,3,10,6,12,5,9,0,7) sage: S.difference_distribution_table() the output is [16 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [ 0 0 0 2 0 0 0 2 0 2 4 0 4 2 0 0] [ 0 0 0 2 0 6 2 2 0 2 0 0 0 0 2 0] [ 0 0 2 0 2 0 0 0 0 4 2 0...
Suppose $(E,D)$ provides authenticated encryption with key space $K$. Define $(E',D')$ with key space $K^2$ as follows: $$ E'((k_1,k_2),m) = E(k_2,E(k_1,m)) \\ D'((k_1,k_2),c) = \begin{cases} D(k_1,E(k_2,c)): & D(k_2,c) \ne \bot \\ \bot & \text{otherwise} \end{cases} $$ How to construct a ciphertext integrity attacker ...
Why are Leighton-Micali Signature Scheme (LMS) and eXtended Merkle Signature Scheme (XMSS) not candidates in the NIST Post-Quantum Cryptography Standardization process? Both are mentioned in the final draft of Recommendation for Stateful Hash-Based Signature Schemes. I was expecting that both algorithms are candidates ...
The protocol is defined as : Bob want to send message to one of his friends say $k$ friends , he does not want his others friends (except one whom he want to send message ) to tell who is targeted recipient. Here public key of all the participants are known. I read this is anonymous public key encryption in some pape...
Let there are two given numbers $x,y$ which is $A=x+y$ and we know just $A$. How we can find this just $x$ and $y$? If you suppose $a$ a random number, then we know $x_1=a$ and $y_1=A-a$ satisfies in $A=x_1+y_1$ but with high probability $x_1\neq x$ and so $y_1\neq y$, too. I think this problem is used in some cryptogr...
I have an (offline) shared secret key (symmetric) which is used to encrypt/decrypt data. Now this data belongs to a specific user which is known on the backend and frontend. My idea was to use the username/id as salt. But for AES we only have the iv. Doing this would make sure that the data on the frontend can only be ...
It's easy to generate an RSA modulus $n=p\,q$ of $k$ bits with $n\equiv-1\pmod{2^\ell}$, for $\ell$ up to about $k/2$: we can choose $p$ as usual, fix the $\ell$ low-order bits of $q$ to $-p^{-1}\bmod2^\ell$, and choose $q$ with this constraint. This fixes the low-order $\ell$ bits of $n$ to 1, and thus appreciably sim...
My limitation in my security protocol is that I want my RNG as CSPRNG and I also want it to be super fast. If I use Salsa20 or ChaCha or AES counter mode, I don't get the desired speed. I want my PRNG to work at the speed of 100 Gbps or more. Morever, I need to be cryptographically secured. Any suggestions regarding th...
This question is about secret key generation, based on section 4.7 in the design document: https://homenc.github.io/HElib/documentation/Design_Document/HElib-design.pdf It seems that if $m$ is not a power of two, then we choose coefficients of the secret key such that the secret key is a polynomial of degree $m$. How i...
I only know that ElGamal belongs to CPA based on DDH or CDH hard problem. But, if i want to proof the CPA security for ECC-ElGamal, then, what hard problem should i based?DLP? ECC-ElGamal algorithm: ElGamal with elliptic curves It would be better if there is a source of relevant literature!!! Thank you very much!!
Is it possible for a hash function, SHA256 for example, to be a cyclic hash function, where the hash of the hash returns the original value? Example: SHA256(a) = b SHA256(b) = a Or in another form: SHA256(SHA256(a)) = a A math example would be f(x) = 1/x because f(5) = 1/5, and f(1/5) return the original 5. f(f(5)) ...
Does watching videos (either online videos such as off youtube or saved locally) generate enough (if any) entropy to create secure encryption keys? I understand that some activities such as memory usage, disk access, network utilization, using the mouse and keyboard, etc... generate entropy under Linux. What I don't kn...
If I understand this relation correctly is, that any function whose inverse can be found in polynomial time is not a one way function. The $P = NP$ proved would cause that any candidate for a one-way function could be computed in polynomial time (so $O(n^k))$, thus it would make one-way functions non existent? Does tha...
In Lu, Au and Zhang's 2019 paper (Linkable) Ring Signature from Hash-Then-One-Way Signature, they …extend [M. Abe, M. Ohkubo, and K. Suzuki's 2019 1-out-of-n signatures from a variety of keys] framework to its linkable variant. Borrowing the idea from [our previous lattice-based linkable ring signature scheme, Raptor]...
I know that blinding can be used as a countermeasure against side-channel timing attacks on RSA-CRT: RSA Timing Attack and Prevention through blinding My question is: can blinding also be used as a countermeasure against differential fault injection attacks on RSA with CRT as described by BellCoRe (see: https://hal.arc...
Consider a multi party system where public keys of all receivers are known. Server wants to send message to one of them using (textbook?) RSA. Adversary is given ciphertext and even Message to be send, and all $k$ public keys of participants. Can any attack tell who is the target receiver? Or in nutshell: Given $C$, $M...
Say I have 20 distinct encrypted messages. Using AES, I am only getting the correct output if I decrypt each of the 20 messages individually. Is it possible using AES or another method to call my decrypt function on the concatenated 20 messages as one message and get the concatenated decrypted results? It seems ineffic...
Suppose we have an elliptic curve Diffie-Hellman key exchange protocol, where Bob and Alice have public keys $pk_{Alice}= [sk_{Alice}]G$ and $pk_{Bob}= [sk_{Bob}]G$ ($[.]$ elliptic curve "exponentiation"). As usual, they computed the shared secret $s$ as the x-coordinate of $(x,y)= [sk_{Alice} sk_{Bob}]G$ Now Carol has...
Is there a threshold signature scheme that can be accumulated? That is, given a message $M$ signed by $k-1$ parties and the $(k-1)$-threshold signature $\sigma_{k-1}$, a party can verify $\sigma_{k-1}$ is indeed signed by $k-1$ distinct parties, and can add its partial signature to it to obtain a $k$-threshold signatur...
Is there any weaknesses to encrypting fixed-length messages? Should a random amount of padding be added to the message to decrease the odds of some sort of attack?
Mastercard, Visa, and several other organizations use 3DES to encrypt and decrypt credit card data. The sweet32 attack placed 3DES in the spotlight, but how fragile is 3DES for a very small amount of info, like 16 digit string (the card number) + 3 digit string (the CVV) + 4 digit string (month/year of expiration)? How...
As an example, both Classic-McEliece and Kyber KEMs produce 32 byte shared secrets. How convenient since that's exactly the size I need for an AES-256 key! Is this safe to do? My question can be formalized into these (I believe) equivalent questions about the definition of KEMs (I'm mostly interested in NIST Round 3 PQ...
In the classic book "Applied Cryptography" (20th anniversary edition) from Bruce Schneier, there is an illustration of a maximal-length LFSR: According to the book, this LFSR uses the tap sequence from the polynomial $x^{32}+x^7+x^5+x^3+x^2+x+1$ which is maximal-length. However, most examples I found online (e.g. Wiki...
In the Homomorphic Encryption Library, HElib (https://github.com/homenc/HElib), we set up a set of parameters before generating the ciphertext. For example: m = 20191, p = 47, phi(m) = 19800 ord(p) = 66 normBnd = 1.62077 polyNormBnd = 4.92719 factors = [61 331] generator 2 has order (== Z_m^*) of 60 generat...
We know that a collision resistant hash function is also second pre-image resistant. But the converse is not necessarily true. I am looking for the example of a hash function which is second pre-image resistant but not collision resistant. Please help.
For every RSA-cryptosystem, there exist some messages $m$, for which it holds that $m^e \equiv m \pmod n$ As to the question, how many such messages exist, this question has already been asked and answered here: https://math.stackexchange.com/questions/1298664/rsa-fixed-point However, I do only understand the answer up...
Is padding oracle attack applicable to data stored on a DB in AES/CBC/PKCS5Padding? Specifically I would like to be able to use Postgres with pgcrypto https://www.postgresql.org/docs/13/pgcrypto.html#id-1.11.7.34.9 (that currently not support GCM) The idea is to achieve totally anonymized data, even in the case where a...
For a given private key $d$, random $k$ and message hash $h$ is it possible that there exists a different set of $d$, $k$ and $h$ which produces the same signature using $\text{secp256k1}$ curve?
There are a number of signature schemes on small domains based on bilinear pairings which do not use random oracles. Examples are the Boneh-Boyen schemes and an interesting one from Okamoto which allows for blind, and partially blind signatures. However all of them use some variant of the Strong Diffie Hellman assumpti...
Given two IBE schemes: Boneh-Franklin IBE scheme (https://doi.org/10.1007/3-540-44647-8_13) Secure under the CBDH problem (in the ROM) The master secret key is a random element in $\mathbb{Z}_p$ Park-Lee IBE scheme (https://doi.org/10.1007/s10623-015-0035-0) Secure under the DBDH problem (in the ROM) The master se...
I was thinking about how to use the homeomorphic property of that cryptosystem to achieve not a "semantic security" but a less ambitous obfuscation of the source code (an ipotetical scenario in which a third party execute the obfuscated code, and get a still obfuscated result). So i was asking myself how much computati...
I am decoding a binary sequence that was detected as an unpractically long LFSR by the Berlekamp-Massey algorithm. First of all, the generated sequence is far longer than it needs to be and since it needs to be decoded in real-time in the application, the LFSR is so long that the latency would be unpractically high. It...
There are some cryptographically secure hash algorithms designed to be efficient for SNARKs, STARKs and FHE. Some of them already implemented in Zcash, Zokrates and circom. The ones that I know of are: MiMC7 hash Poseidon (website here) Pederson Rescue Prime Is there any security and performance comparison available ...
It is known that existence of pseudorandom generators (PRGs) is equivalent to the existence of one-way functions. In turn, the latter is an open problem. I am curious if someone developed kind of "practical" PRGs, which are weaker than PRGs in terms of computational indistinguishably to uniform random number generators...
Suppose on of the RSA prime factors $p$ is the range of $\sqrt{N}$, in particular it holds that $|p-\sqrt{N}|<\sqrt[4]{N}$ I want to show that RSA can be broken in time poly(log N) Given hint: $N = pq = (\frac{p+q}2)^2 - (\frac{p-q}2)^2 $ , also $\frac{p+q}2 \approx \sqrt{N}$ $\textbf{This is my approach:}$ First of al...
I'm looking for a library that given parameters; feedback polynomial, initial values then it will produce $\LaTeX$ / Tikz codes to include in Latex documents or LFSR images. Is there such a library? This Question and answer are provided to test the limits of this Meta question.
Considering RSA, $n=p\,q$ with $p,q$ odd primes and the public key $(n,e)$, where $\gcd(e,\phi(n))=1$, I need a hint on how to show that the number of plaintexts with $E_e(x)=x$ equals $\gcd(e-1,p-1)\cdot gcd(e-1,q-1)$. So we are searching for the number of plaintexts that remain unchanged by the encryption function...
In NIST 800-56B publishing, this is done with the $(p, q) = RecoverPrimeFactors (n, e, d)$ function. I don't understand why is necessary if $p$ and $q$ are known during in generation. In my opinion, validation without the RecoverPrimeFactors function checks the required criteria.
Is there a complete summarized list of attacks on elliptic curve cryptography? In RSA, there is https://crypto.stanford.edu/~dabo/papers/RSA-survey.pdf, so I was wondering if there is such a list somewhere. I have found many online resources for different attacks, but I haven't found a complete list like the one on RSA...