instruction
stringlengths
32
27.2k
I am trying to understand the noise growth due to multiplication in BFV encryption. As explained in section 4 and equation 3 of this paper: https://eprint.iacr.org/2012/144.pdf. I couldn't follow what is $r_a$ and $r_r$ is in their equations. Also how they are bounding the values of all rounding errors? Also is there a...
In Schnorr signature (R, s), R is used. But in ECDSA signature (r, s), r is used, which is the x-coordinate of R. Why the difference?
I believe I have found insecure usage of AES-CFB8 in an application I am working on and would hope someone could explain how and why this is insecure and what an attacker could do such as key recovery as that would be the worse result for this protocol. Basically AES-CFB8(explicitly without padding) is used to encrypt ...
What is the difference in key generation with commands below? openssl genpkey -algorithm RSA -out key1.pem key1.pem content: -----BEGIN PRIVATE KEY----- ... -----END PRIVATE KEY----- openssl genrsa -out key2.pem key2.pem content: -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY-----
Okay so I've got an assignment for cyberlaw and this could be irrelevant to the question. But I have a situation where someone signed a a will using an advanced electronic signature, but this signature was separate from the will itself. So two different documents: (1) signature.txt and (2)FinalTestament.txt. If these t...
Or more general each member can be part of up to three 2D locally euclidean planes of 2 different dimensions each. (each of those planes is cyclic in two orthogonal directions, like a torus) Given just one member it could look like a node network: (just one node with some neighborhood displayed here. Those neighbors h...
I was playing a game on cryptography where I encountered this problem: Hashed Value of password: 24 109 76 35 22 94 83 25 106 104 73 87 56 38 56 50 10 92 58 84 44 88 24 112 125 121 125 43 122 55 106 54 The password is made of letters between 'f' and 'u'. The password is in alphabetical order. For hashing, the passwo...
I understand the theory behind Hastad's broadcast attack. Namely if we have three encrypted messages with the exponent e=3: c1 = m1 mod n1, c2 = m2 mod n2, c3 = m3 mod n3 Then we can use the Chinese Remainder Theorem to find c = c1 mod n1, c = c2 mod n2, c = c3 mod n3, c = m^3 mod n1*n2*n3 and since n1 * n2 * n3 is t...
is Client Puzzle a challenge-response variant of Proof-of-work? I am kind of new to crypto, sorry if the question is kind of dumb. If it's not can you give examples of algorithms that implement the idea of a challenge-response variant of proof of work? And can you explain why the Client Puzzle is not challenge-response...
I have a rough idea of how STARK work, but I want to know which part makes them quantum secure. Is it because when the prover generates the proof they use the random number from the Merkle root, which cannot be guessed by a quantum algorithm?
It's common knowledge that the NSA, before publication of DES, tweaked the algorithm to improve its resistance against differential cryptanalysis. Schneier writes some of this on his blog, for example ("It tweaked the algorithm, and it cut the key size by more than half.", https://www.schneier.com/blog/archives/2004/10...
Is there a possibility to encrypt a message that is a concatenation of an encrypted message and another message ( encrypt_message + message )?
Can the combination of X25519 ECDH and NTRU in OpenSSH 9.X defend me against quantum attacks? Why is it believed that this combination is secure?
I am an FPGA engineer and my last experiences were related to digital communication implementation. I am about to start an experience for the cryptography market. In digital radio communication, FPGA technology is common and viable in "niche" markets: modulators for broadcast or space telemetry for example. Some are no...
I have the following pseudo code considering a ransomware methodology to encrypt files: cFile = AESEncrypt(sessionKey, pFile, OFB, iv) keyBlob = AESEncrypt(masterKey, sessionKey, OFB, iv) ivBlob = AESEncrypt(masterKey, iv, ECB, null) Aes 128 bytes is used for sure. I don’t have information about master key, session key...
I've found ECDH and ECIES, but those both require Alice to know Bob's public key and Bob to know Alice's public key in order to derive a shared secret. Now assume Bob knows Alice's public key $A$, but Alice does not know Bob's public key $B$. Is there an Elliptic Curve encryption scheme where Bob can encrypt a message ...
I've come across this particular design where I have one file encrypted. Then multiple people may want to access the file and I want to generate an individual key for each person, but each individual key should be able to totally decrypt the file. Is there some encryption design that allow that? Regards
Some of the most widely-used/advanced cryptography products these days - AES and SHA3 - were invented by Belgians. It seems that fact is hardly a coincidence. Since I'm a complete layman, I can make the connection but can't draw the big picture. Why are they so good? Do the Belgians have a tradition leading back centur...
When performing Shannon Entropy analysis on something like an RNG or a file, you must: Select a symbol bit length and number of samples would will perform analysis on at a time (IE: windows size) Read the input till the window is full Perform a histogram on the collected symbols Take the histogram output and calculate...
I'm trying to develop a Key Distribution Protocol to share symmetric keys in RFC 6238 (OTP). I started with RFC 6063, but this protocol is developed over old and known insecure algorithms like PBKDF and do not take advantage of more advanced hardware like smartphones (the device I will use to produce OTPs) The main ide...
When I sign a message with a private key, and I get a message signature, how is it that I'm able to - using the corresponding public key - verify that that message/transaction signature must have been produced by the person holding the private key behind the relevant public key? My understanding is that with private/pu...
Setup Recently, I became interested in simulation based proofs in the context of secure two party computation. I read some book chapters (from Secure MPC and Secret Sharing and Foundations on cryptography volume 2), papers (most importantly How To Simulate It), and posts from cryptography stack exchange, but I still do...
In my criptography course I was given the following exercise: ElGamal proposed the following digital signature scheme using discrete logarithms over a field $\mathbb{F}_p$, where $p$ is a large prime. Step 1) Everybody agrees on a prime $p$ and a generator $g$ for $\mathbb{F}_p^*$. Step 2) A (and all other uses) choo...
How can I write a program in python to predict the random key (urandom) that is used for encryption? I tried to search and I couldn’t find anything related to guessing and predicting urandom in python
Often data is encrypted using Symmetric Ciphers and Symmetric key is shared with recipient by encrypting it with recipient's Asymmetric Public Key. NIST Special Publication 800-56B, Revision 2 section 9 defines RSA KTS-OAEP to establish keying material between sender and receiver. Is it really necessary to use RSA OAEP...
I've been working on a AES256-GCM implementation (in Java). I'm a little bit stuck on the part where i need to decide how often i need to rotate my key. I've got a lot of information from this posts: Safety of random nonce with AES-GCM? And the website if refers to: https://www.imperialviolet.org/2015/05/16/aeads.html ...
I stumbled across this correctness of a scheme: $e(g^r, H(id)^x) = e(g^x, H(id))^r = e(g^x, H(id))^r$ and have a hard time following the properties of the bilinear pairing. Does anyone know the "rules" for such pairings or where to read about them? As far as I have learned I know that: $e(g^{xy}, g) = e(g,g)^{xy} = e(g...
A prover has the following value: $$C = (h^ag^x)^b$$ and he needs to prove in zero knowledge to a verifier that $x < t$, for some public threshold $t$. The verifier knows $h$, $g$, $C$, and $t$. The prover knows everything. Essentially, it is the following relation: $$\{(a,b,x)\ |\ C = (h^ag^x)^b \wedge x < t\}$$ I kno...
Most of the answers I can find date to years back where the first collision(s) were found, but hardware mainly GPUs have progressed a lot in the past few years (with for example the new line of 3090s coming). How easy is it to do so right now?
What are some standard assumptions made in showing the security of a block cipher? For example, is it commonly assumed that $P\not=NP$? To this end, are there any block ciphers whose security does not rest on the assumption that $P\not=NP$, and if so what are the assumptions? Furthermore, do there exist any block ciph...
https://en.wikipedia.org/wiki/Paillier_cryptosystem Paillier cryptosystem exploits the fact that certain discrete logarithms can be computed easily. If I were to select $g \in \mathbb{Z}_{n^2}^*$ where $n$ divides the order of $g$, then the discrete log is easy (w.r.t base $g$) if I understand correctly. But if I wer...
It seems that neural cryptography is an interesting research topic and there are some important contributions published in the last years. The proposed algorithms are suitable for symmetric key generation starting from the common hidden weights, thus representing a possible Diffie-Hellman substitute. As far as I unders...
Imagine the following scenario: In a given cryptocurrency, privacy should be as high as possible. For this purpose, a new account with a new address is created for every incoming transaction (the address is the public key of a private/public key pair). However, users are not always online to generate new accounts with ...
Consider the following scenario: We have two agents, A and B. B needs to prove that they know a secret to A, without sharing the actual secret. e.g.: A needs a way to de-duplicate the secrets they receive from B, but they don't need to know the actual secrets. (and B does not want them to know) Think of it like sharing...
I found this question while preparing for exam. The question is Q)Suppose, you and your friends have a few numbers of locks and you all want to share that numbers among yourselves securely using RSA based cryptosystem. You are using the private key as (5,27) and your friends are using the public key as (13,27). One of...
I was doing some Microsoft Seal testing on my macbook pro (i7) and got following results Coefficient mod $q = 100$ bits and Polynomial degree $n= 8192$ Ciphertext-Plaintext multiplication takes 0.211 milliseconds Ciphertext-Ciphertext multiplication takes 24 milliseconds, when I pick 5 RNS moduli for coefficient mod. ...
In the Bleichenbacher attack, when the $|M_i−1| = 1$, we should choose $r_i >= 2(bs_{i-1} -2B)/n$ in order to increase the search performance. I don't quite understand how this $r_i$ value is calculated and how this can improve the performance. Anyone can help? The above information can be found on https://eprint.iacr....
Let $s: \{0,1\}^* \to \{0,1\}^{512}$ be the SHA512 hash (where $\{0,1\}^*$ is the countable set of all finite $\{0,1\}$ strings. Is it known whether $|\text{im}(s)|/2^{512} \geq 0.5$? If yes, what is the largest $n\in\mathbb{N}$ such that $|\text{im}(s)|/2^{512} \geq 1 - (1/2)^n$?
How is it possible to recover RSA private keys considering that weak LCG (random number generator) is used? I have some other keys (Public and private created with the same generator) and also some crypt texts encrypted with both keys. It is relevant to highlight that there is no clue about the algorithm used to create...
I am trying to verify an Ed25519 implementation, but I can't find any test vectors for the curve points. All test vectors focus directly on signature constructions (EdDSA). I tried to use https://asecuritysite.com/ecc/nacl07 but that seems to give the wrong results. For instance, it reports that the affine coordinates ...
I am testing the quality of AES S-box and using the lookup table I built a function from GF($2^8$) to GF($2^8$) seen as vector spaces. I was wondering if there is a transformation that I can use to find an equivalent permutation of AES S-box that sends $0$ in $0$ without modifying the properties of the S-box such as li...
What is the historical pattern for key size increases for rsa vs discrete log? What are the current and future projected sizes for these?
I have seen authors taking $G_1=G_2=G_T=G$ to be the same group of prime order $q$. What I know is that for pairing of type $$e:G_1\times G_2\rightarrow G_T,$$ size of the element in the target group is $kn$ where $n$ is the size of an element in $G_1$ and $k$ is the embedding degree. Source: A New Family of Pairin...
Is there an algorithm that lets me sign a value with two keys at the same time, and in turn requires both keys to verify the signature? For instance, a scheme could work like this: Sign X with Key1 and Key2 at the same time Verify X is signed by these two keys This would be like a joint bank account: to do anything o...
Let's suppose that Bob has only Alice's IP and no more information about Alice's key, nor the digest of Alice's key. They exchange keys and need proof that the received keys are the same keys that were sent. How Bob and Alice can know that the key received is the right key? Also, I read about Sigma protocol: The gener...
Consider an elliptic curve $E$ defined over a finite field $\mathbb{F}_{\!q}$ with a fixed non-zero $\mathbb{F}_{\!q}$-point $P$. For simplicity, let the order of the $\mathbb{F}_{\!q}$-point group $E(\mathbb{F}_{\!q})$ be prime and hence the group is generated by $P$. For the sake of security, in numerous protocols of...
Consider the Ring-SIS problem for $R_q=\mathbb{Z}_q[x]/(x^n+1)$ when $n$ is power of $2$ and $q=1 \mod 2n$. Does the modulus $q$ need to be prime? if yes, it seems that it is mainly because of the way that we prove the hardness of Ring-SIS by reducing it to a lattice-problem. This means that it might be possible to cho...
I am going through the Lamport Diffie One-time signature. I am having a hard time understanding How can long messages (greater than 100 bits) can be mapped into short messages (100 bits) by a one way function and only the short message signed? Can someone explain this with an example?(Refer page no.13 in attached docu...
What is meant by meta reduction? What does it achieve and how is it different from the normal reduction technique?
Is using AES GCM with PBKDF2 and 100 000 iterations still considered secure as of 2022? In our threat model, if we ignore the risks linked to quantum computing, is this secure? Here is an example working Python implementation: import Crypto.Random, Crypto.Protocol.KDF, Crypto.Cipher.AES plaintext = b"hello world hello ...
Tor vanilla bridges look like this: Bridge x.x.x.x:1234 9DD03662B50FEDBF6F8D5630CB86D7E8CE4F4432 It's only the IP/Port and a hash of the key. Can Bob and Alice do an authenticated Diffie–Hellman key exchange if Bob just knows the hashsum of Alice's key? Thinking by myself is possible, Bob receives Alice's key and ver...
I read through related questions on this SE, but I still do not understand why we can use the rewinding argument. Specifically, rewinding seems like a really strong superpower to me, and I don't understand why such strong assumption does not undermine the strength of the conclusion. Sure, the adversarial verifier learn...
My understanding of digital signatures is as follows: Alice hashes a message with a one-way cryptographic hash function, the output of which is called the message digest. She then encrypts the digest with her private key and then sends both the original unhashed/unencrypted message along with the encrypted hashed versi...
I'm currently trying to get an overview of post-quantum cryptography. Now I'm struggling with correlations and adjustments of the PQ-world and the Modern-world of cryptography. My Questions: Can you give me a brief overview of new important assumptions in the PQ-world (e.g. something similar to the factorization or di...
Are there any methods to prevent version rollback attack while using TLS 1.2 (apart from disabling lower versions)? I've read about how TLS 1.3 provides a downgrade protection mechanism which is embedded in the server’s random nonce. Is there any such mechanism in TLS 1.2?
I'm interested in the Post Quantum Algorithms of the 3rd round of the NIST standardization competition. The algorithms for KEM are Classic McEliece, CRYSTALS-KYBER, NTRU, SABER and their 5 alternatives. The signature algorithms are CRYSTALS-DILITHIUM, FALCON, Rainbow and the 3 alternatives. I was looking for a comparis...
I need to store sensitive data (like customer photos) in a SQL database in the most secure way in case of security breaches. The data won't be accessed by the clients, only by internal processes that perform some validations. The customers don't have any input like passwords, they just register with us and we keep trac...
I'm reading from William Stalling's Cryptography & Network Security - 7th Edition To me the first line suggests $$(M^e\bmod n)\times(2^e\bmod n)=((2M)^e\bmod n)$$ which means that if we want to define a message $X$ such that when decrypted it gives $2M$ then we should consider $X=(M^e\bmod n)\times(2^e\bmod n)=C\times...
The mac1 field in the WireGuard handshake messages is populated as: msg.mac1 := Mac(Hash(Label-Mac1 || Spub_m'), msgA) // first arg is MAC key Label-Mac1 is a constant, Spub_m' is the static public key of the peer, and msgA is the bytes of the message before the mac1 field. I don't understand the purpose of this, g...
Just a question I thought of while playing an amazing game about time travel (13 sentinals aegis rim). What are the most bullet-proof cryptographic methods for proving you've come from beyond a particular year? (e.g. 2069) My current idea goes something like this: A huge trust-worthy company (e.g. Google) creates a su...
Say $a$ and $b$ are some uniform random $8$ bits so that the entropy of $a$ and $b$ is 8 bits each. If I show you $(a+b) \bmod{256}$ and $a$ XOR $b$, then what can you tell about $a$ and $b$? Or how much of their entropy is reduced?
I'm looking for a quantitative yet simple proof of the EUF-CMA security of a signature scheme obtained by Fiat-Shamir transform. Recall the Fiat-Shamir transform starts from a 3-pass identification protocol with messages $(I,r,s)$, where $I$ is the prover's commitment, challenge $r$ is chosen uniformly at random in set...
I wanted to compare the performance of different cryptographic systems. There is a pretty good paper comparing the 3rd round finalists of the NIST competition. I was wondering if there are good performance comparisons of those PQ-Protocols and modern ECC/RSA protocols (e.g. Curve25519). Sadly I couldn't find a good pap...
Previously I thought about a pair of 8-bit uniformly distributed random numbers $(a,b) \in \{0,1\}^8$, and $X$ to be bitwise XOR, $Y$ to be 8-bit addition. But it turned out that revealing $a \text{ XOR } b, a+b \bmod{2^8}$ does reveal a lot of information bits about $a,b$. A smart dude here mentioned "dependence" as ...
Given a set of plain texts $P \subseteq \{0, 1\}^n$. Assume we know the corresponding set of cipher texts $C \subseteq \{0, 1\}^n$ produced by applying one-time pad with an unknown key $k \in \{0, 1\}^n$. Question: How to compute $k$, based on $P$ and $C$? My approach: For every pair $(p, c) \in P \times C$, compute th...
From what I understand, in BIP 32, the knowledge of the parent public key and the child private key provides the parent private key, in a non-hardened path. Indeed, it's only a matter of substracting the part provides by the current path from the child's key to get back the parent's key. I have an application in which ...
May someone please explain how the reduction is done? I am familiar with other algebraic structures but wondering if I am doing reduction correctly for this. It is understood that a Polynomial Ring of this form, $\mathbb{Z}_{q}[x]/(x^n + 1)$, consists of the set of all polynomials defined by $(x^n + 1)$ with coefficien...
A bunch of friends are using public-key encryption to send encrypted messages to each other using an open public forum. I.e. each friend has a public key (which you can use to encrypt messages for them) and a private key (which they use to decrypt messages for them). Bob sends Alice the encrypted message $y$, which, wh...
In my course about cryptography, we started looking at hash functions. As homework, we had to pick a modern hash function and describe it in class. I chose BLAKE2b, which I can understand well when it is explained in words, but the official implementation raises questions. static void G(int roundNum, int i, int a, int...
are there any available tools/libraries that implement the idea of EIGamal-based proxy re-encryption scheme shown below? Preferably in Golang. Thank you! Source of this picture: https://www.cs.jhu.edu/~susan/600.641/scribes/lecture17.pdf
Let $E$ be an elliptic curve over a binary extension field $GF(2^m)$, with constructing polynomial $f(z)$ be an irreducible, primitive polynomial over $GF(2)$, and let $G(x_g,y_g)$ be a generator point on the curve. Is there any possibility that two (or more) different $f(z)$ can produce exactly the same GAL group for ...
In our Python codebase, some random bytes were generated that we wanted to be cryptographically secure. Previously, the code was: capability = "".join(secrets.choice(string.digits) for i in range(33)) I've changed it to: capability = secrets.token_bytes(16) By my estimation, the first version chose 33 times between 1...
Suppose for $sk = x$, $pk = g^x$ we encrypt message $m$ with ElGamal encryption as $(g^r,m\cdot pk^r)$. My goal is to prove that I performed the encryption correctly, i.e. that the same $r$ is used across $g^r$ and $m\cdot pk^r$. I thought of a simple $\Sigma$-protocol to show this as follows: Prover samples $q_1,q_2$...
I'm having difficulty understanding this. Consider two messages are encrypted using the same cyclic group order $q$, generator $g$, private key $x$, and random parameter $y$. The attacker knows a plaintext $m_1$ and its corresponding ciphertext $c_1=\left(r_1,s_1\right)$. I was told that, under these circumstances, if ...
For example, Alice and Bob have two numbers $a$ and $b$, respectively. They want to calculate the multiplication $a\cdot b$ without Alice knowing $b$ or Bob knowing $a$ and send this multiplication $a\cdot b$ to Carol. Carol will use this $a\cdot b$ to do further application. Carol will not collude with Alice or Bob. A...
The private (secret) key in DL (discrete logarithm) based algorithms is uniformly selected from the group Zq*. This private key is then used to compute the public key. Could the opposite be done, for instance, select the public key uniformly from Zq* and then compute the private key?
We are manufacturing a sensor which transmits in 8 byte packets. This sensor will be used by several different receivers, some of which have very little spare RAM available (< 3 kb). On some of the receivers we will provide the software, in other cases, we will be providing the code to the manufacturer under NDA. It is...
Is there a way to modify the RSA so that it's homomorphically additive? I did some research and came across a paper which describes MREA (Modified RSA Encryption Algorithm), an RSA modification that, supposedly, is homomorphically additive. The authors define the encryption algorithm as follows: $$ E(message) = g^{mess...
I'm having difficulty understanding this. Consider two messages are encrypted using the same cyclic group of order $q$, generator $g$, private key $x$, and random parameter $y$. The attacker knows a plaintext $m_1$ and its corresponding ciphertext $c_1=(r_1,s_1)$. I was told that, under these circumstances, if an attac...
I have to solve the following problem: What I have: $n$, a 2048 bit number What I need to find: $p$ and $q$ such that $n = p\cdot q$. What I know: With $p_1$ the first half of $p$ and $p_2$ the second half, the same with $q_1$ and $q_2$: $$p_1 = q_2\ \text{ and }\ p_2 = q_1$$ Therefore finding $p$ you could also ...
Assume that block cipher scheme $(KeyGen, Enc, Dec)$ is CPA-secure. Show that $CTR_{Enc_k(0^n)}$ is a good PRNG. Counter mode works as follows: $Y_i = Enc_k(IV + f(i))$ $C_i = Y_i \bigoplus P_i = Y_i \bigoplus \{0^k\}= Y_i$ So the output here is simply $Enc_k(IV + f(i))$. Now, as good PRNG I understand that it needs to...
There is a Feistel block cipher based on Blowfish called Kaweichel. In one of its papers, there is this affirmation: For the construction of the round function one choses usually parallel substitutions (s-boxes). The output bits of these s-boxes are permuted in order to achieve diffusion. For the derivation of the ro...
Hi I am quite new to NIZK. I know a trusted party (Generator) generates proving key and verifying key and then distributes them to Prover and Verifier. Apparently, the verifying key can be seen as public for anyone in the system, but what about the proving key? If the proving key is known to a different party other tha...
I am familiar with Fourier Transform and computing the DFT and FFT matrix for fast multiplication of integers. However, this is the first time I work with NTT applied to polynomial rings of the form $\mathbb{Z}_q[x]/x^{n} + 1$. Say for small q=5 and $n$=2. My elements consists of all polynomials of degree at most $n-1$...
I want to implement LWE-based encryption scheme, the modulo $q$ could be decomposed as $q = q_0\cdot q_1\cdots q_k$ according to CRT. I guess the modular arithmetic by $q_i$ is key operation, so I try to choose the Mersenne prime. However, there are only two primes satisfied: $2^{31}-1$ and $2^{61}-1$. Are there any o...
Say a server plays a game of blackjack with a client, and the cards are shuffled and dealt by the server. The shuffle itself may or may not be fair, but what needs to be shown is that the cards dealt weren't altered during the course of gameplay, ie: after the start of the hand, the cards in the deck do not secretly ha...
While coding for Edwards curve, I noticed that, the addition formula and the doubling formula return what seems to be different result. I took the adding and doubling formula from both RFC-8032 and https://eprint.iacr.org/2008/522 and confirmed this difference. Why is that? How does it, if it does effect computations w...
What does it mean to solve $\mathsf{SVP}_{\gamma}$ in worst-case? Does it mean that the problem is solvable for any lattice we choose?
Would secrets.choice be random enough to pick winners in a raffle?
I admit I don't know a lot about the math behind Curve25519 and the DH exchange based on it. I'm asking if after publishing the result of this operation: ephemeral_share = X25519(ephemeral_secret, BASEPOINT) Can ephemeral_secret be found by whomever obtains ephemeral_share, given that they know the used curve (and the...
This was a practice problem for a class. The class is over now and I never solved it, so I thought I'd ask here. Let's ignored the fact that adding extra security to single textbook RSA is unnecessary. As hilariously stated here: Think about it this way, if it is estimated to take 500 years for a prisoner to chew thro...
Given the following definitions for $\mathbb{Z}[x] /\left(x^{n}-1\right)$: $$ a \cdot b \equiv \sum_{i=0}^{n-1} \sum_{j=i+1}^{n-1} a_{i} \cdot b_{j} \cdot x^{i+j}+\sum_{j=1}^{n-1} \sum_{i=n-j}^{n-1} a_{i} \cdot b_{j} \cdot x^{i+j-n}\left(\bmod x^{n}-1\right) $$ Similarly, for $\mathbb{Z}[x] /\left(x^{n}+1\right)$ the m...
Why do we take Gaussian-like errors in $\mathsf{LWE}$? Why for example we don't take uniform errors?
While implementing SM2 DSS and reading RFC-8032 for EdDSA, I noticed that, both families of schemes provide provisions for including a "context" (in EdDSA) or "signer info" (in SM2 digital signature) in the signature. Q1: What non-trivial benefit does it provide? Does it help prevent duplicate key attack? Q2: Are there...
In secret sharing schemes, we usually give rational fractional parts of a secret out. E.g. Alice gets 4/10ths of the secret, Bob gets 7/10ths, Charlie gets 5/10ths, David gets 1/10th, etc., and you need 10/10ths total to unlock the secret. My question is: is there a scheme that allows for an irrational fraction of sha...
Suppose $f_k$ is an arbitrary block cipher. Can OFB via $f_k$ be used to make a MAC. I argue that you can't even with fixed l, $m = l \times k$ because in OFB, $\mu = f_k(f_k(...((IV))) \oplus m$, and with an oracle, you would be able to get $\mu$ for a given message and find $f_k(f_k(...(IV)))$ and so can find $\mu$ f...
hello guys hope you are doing well :), i am trying to simulate the Schnorr Signature, but i have encountered some difficulties finding the generator, i have chosen a prime P of 1024bit and took a factor of 160bit as Q but for the generator i'm trying to produce, i'm using the equation => g^Q = 1 mod P how can i impleme...
In RSA-FDH to sign a message $m$, we apply a hash function $H$ and then "decrypt" it using the private key $d$, so $Sign(m) = H(m)^d \mod N =: \sigma$ and then to verify, we use the public key, resulting in $H(m) = \sigma^e \mod N$ if all goes well. Why do we have to use RSA for this instead of something else, for exam...
I need a lightweight cryptographic hash function which is additive but not reversible, however I'm not sure such a function exists! (it would be better if it works in multisets as well) By additive I mean: given such function f, another function g must exist, having the property g(f(X),f(Y))=f(X||Y), where || denotes c...
Are there any examples of a cryptographic scheme based on (an average-case form of) a #P-complete problem?