instruction stringlengths 32 27.2k |
|---|
I was reading the Hybrid Public Key Encryption (HPKE) RFC and I came across this sentence in section 9.4 "All AEADs MUST be IND-CCA2-secure, as is currently true for all AEADs listed in Section 7.3."
My first thought is that AE (Authenticated Encryption) implies IND-CCA2 by definition ("Introduction to Modern Cryptogra... |
I cannot quite understand, if Finished message serves any particular purpose when the server is being authenticated via certificates, or if it there just for "consistency" or "extra protection".
The Finished message is said to provide integrity of the entire handshake and computed keys. But when authenticated via certi... |
Consider a pairing-friendly elliptic curve $E$ over a finite field $\mathbb{F}_q$ with embedding degree $k$. Do you know examples of real-world cryptographic protocols based on pairings $\mathbb{G}_1 \!\times\! \mathbb{G}_2 \to \mathbb{F}_{q^k}^*$ such that the number of additions in $\mathbb{G}_1$ is approximately equ... |
So Grover's algorithm, also known as the quantum search algorithm, can find an entry, with a high probability, in an unstructured database.
Well can't we consider the basis of a lattice problem an unstructured database, and the lattice point we are looking for the entry in that unstructured database? Could Grover's alg... |
How do I solve equations like this
$$(aX \oplus X+b) \bmod M = c$$
If a,b and c are known?
and if i have system of of equation with different b values, is it solvable? I am particularly interested in $M$ being a power of $2.$
|
Consider a Koblitz elliptic curve over a prime field $\mathbb F_p$, with equation $y^2=x^3+b$, prime order $n$ close to (but different from) $p$. This includes secp256k1, secp224k1, secp192k1, secp160k1, and for a toy example $p=241,b=13,n=211$.
Given $(x_P,y_P)$ for $P$ on the curve, classic point doubling formula all... |
When I study a zk-SNARK scheme, the scheme claims to be transparent. Does this mean that this scheme does not require a trusted setup? Furthermore, if a NIZK scheme includes a Common Reference String (CRS), does that scheme still remain transparent?
|
I am studying a little bit about one-way functions from Dr Goyal's notes.
He constructs the following OWF:
Let $D=\Bbb Z_2^{n^3}$ and $R=\Bbb Z_2^{2 n}$. Given $x \in D$, $f$ interprets $x$ as a set $S$ of $n^2$ numbers, each of $n$ bits and uses deterministic PT primality test to find the first two 2 primes in $S$. If... |
I am interested in modular arithmetic with respect to the prime $p = 2^{64}-2^{32}+1$.
Thomas Pornin has some work on constant time implementation of arithmetic in $\mathsf{GF}(p)$ for this prime (the paper does other things as well --- this is the part relevant to my question).
Using montgomery arithmetic, a constant-... |
On a technical forum discussion, an example key of 16 hexadecimal numbers was said to be 2048 bits in length. I do not understand this as each number would be 4 bytes - 32 bits - therefore to me 16 numbers would be 512 bits. I am sure I have misread something so any clarification would really help. This question may be... |
The last paragraph of Section 1 (Introduction) of the paper “On the Relationship between Resilient Boolean Functions and Linear Branch Number of S-boxes” [S. Sarkar, K. Mandal, D. Saha] contains the following text:
For an $n \times n$ S-box $S$, its linear branch number, denoted by $\mathcal{LBN}(S)$, satisfies $\math... |
Many of the presentations at The Third NIST Workshop on Block Cipher Modes of Operation 2023 complain about the lack of key commitment in AES-GCM.
But isn't that one application of "associated data?" For instance, can't one include a hash of the key (or something similar) in the associated data?
|
Difficulties porting code to OpenSSL 3 may raise some doubts on digest signing. Before version 3 came, digest signing was the only way to use ED25519. On version 3, RSA_sign() being deprecated, I tried to re-use ED25519 code with RSA keys. The code is like so:
char *digest; // digest already compute... |
I'm trying to show that the PRG $G$ defined as below is insecure for any binary matrix $A$.
\begin{align}
A&: m\times n& (n < m)\\
s&: n\times 1\\
G&: \{0, 1\}^n\rightarrow\{0, 1\}^{m} \\
&G(s)= (A\cdot s) \bmod{2}
\end{align}
As far as I know, I need to provide an adversary with non-negligible advantage, or prove that... |
Respected community,
I was wondering how weak would AES-128 be, if we provide only a 64 bit key with the other remaining 64 bits either zero bits or public constants, known to the attacker.
Is it easy for the attacker to try $2^{64}$ guesses for the unknown part of the key?
To gain more clarity to my query, lets say I ... |
ChaCha has clear delineations between key, nonce, counter and constants.
What is the reason for not using a XEX-like ($k=0$) approach such that the ChaCha key is 512 bits and all the other things are XOR'ed with the key, and only the key is XOR'ed with the ChaCha permutation output?
ChaCha already has some similarity t... |
I recently came across the theorem about $n$-way nesting. It states that if $\mathcal{E}=(E, D)$ is semantically secure, then $\mathcal{E}$ is secure for $n$-way nesting. I'm trying to prove the specific case of $n=2$. For the encryption $c\leftarrow E(k_1, E(k_0, m))$, the adversary provides $(m_0, m_1)$ to the challe... |
I have been reading about lattice attack on ECDSA when partial bits of nonce are known for amount of signatures, So i went through some source code trying to understand how it works.
First of all, Here are the formulas i know.
pk = d*G
r => (k*G).x mod n
s = (k^-1*(z+r*d)) mod n
k = s^-1*(z+r*d) mod n
d = r^-1*(s*k-z) ... |
As is well known, a sigma protocol can be transformed into a NIZK protocol through a Fiat-Shamir transform.
But can the Sigma protocol be transformed into a signature of knowledge in a similar manner?
Intuitively, it seems possible, but which research studies have directly proven this issue?
|
knowing the coordinates of $R$ on secp256k1 and an integer $s$, how do we validate that $s$ is the slope at the point $Q$ on secp256k1 such that $R=2Q$ ?
|
Context
An unknown modulus N with 8 unknown prime factors $p_1, p_2, p_3, p_4, p_5, p_6, p_7, p_8$
a plaintext $m$ is encrypted with the formula $c = 2^m \mod N$
the only things the attacker know are $c$ and $\sum_{i=1}^{8}(a|p_i)$ for any integer $a$ with $(a|p)$ being the Legendre Symbol of $a$ and $p$
Attempts
Obs... |
This paper[1] defines the simulatability and extractability of the signature of knowledge (SoK).
As is widely known, a secure signature scheme should be both unforgeable and non-malleable. Can we derive unforgeability and non-malleability from extractability? (Intuitively, non-malleability seems like it can be derived ... |
Consider how a cheque-book works: Alice goes to the Bank, and gets some incomplete messages, like Alice would like the Bank to give _____ (or the bearer of this paper) the following: _____. This message is verifiably from the Bank, because it's written on a special paper, however the message is incomplete.
In order to ... |
I am currently leaning about LFSRs.
I was told that a binary LFSR with length m has a form of $s_m=a_0s_0+a_1s_1+\ldots+a_{m-1}s_{m-1}$ are binary numbers.
$a_0\ldots a_{m-1}$ are hidden and we are given the output stream of bits $(01101010\ldots)$
How can I determine the coefficients from the given output stream?
Woul... |
This article explains the role of key blinding in Ascon. Key blinding in Ascon involves XORing the key with the capacity part after the permutation in both the initialization and finalization stages.
Quoting from the paper:
we demonstrate that Ascon without key blinding (i.e., with only using
the key to initialize th... |
We know that A function $f:\Bbb Z_2^n \longrightarrow\Bbb Z_2^m$ is a (strong) one-way function (OWF), if:
$f$ can be computed by a PT algorithm. Equivalently, there exists a PPT algorithm that on input $x$ outputs $f(x)$, for all $x\in \Bbb Z_2^n$.
For all PPT adversaries $A$, there exists a negligible function $\op... |
As suggested by the title, I'm working on an exercise where I'm given a hash function $H$ that takes in an input string $x$. I'm supposed to construct a distinguisher that proves $H$ isn't collision-resistant. I'm given a block cipher $F$, $F^{-1}$ as well. $F$ generates outputs of length $\lambda$. The hash function $... |
In the Full-State Keyed duplex (sponge construction AEAD), plaintext is absorbed into the entire state of the sponge permutation but only a portion of the output can be used else the scheme breaks (permutation state leaks, key leaks).
How is this data asymmetry in any way useful? You cannot encrypt the block of plainte... |
Take secp256r1 as an example, the parameter of the curve is
p = 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff
a = 0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc
b = 0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b
G = (0x6b17d1f2e12c4247f8bce6e563a440f277037d81... |
Let $X = \{0, 1\}^n$. Given a PRF $F : X \times X \rightarrow X$, define
$$H(k, x) = F(k,x) \oplus F(k,x \oplus 1^n).$$
I think this is insecure, since $H(k, x) = H(k, \bar{x})$ for all $x \in X$, where the bar notation denotes the bitwise not.
However, I was able to come up with the following innocent-looking proof th... |
I'm designing a hash function which uses a double-tree construction and a compression function $c(s,A,B,C,a)$ ($s$ and $a$ may be omitted when there's only one of them) where
$s$ is a set of three key-dependent 8×8 S-boxes
$A$, $B$, and $C$ are 32-byte blocks; $C$ may be empty, in which case it is omitted
$a$ is 0, 1,... |
I would like to ask a question that arose when reading the proof of lemma 4 on page 10 of this BGV paper:
The assumption is:
And the inequality:
So it seems that
$$ \sum_{j=1}^{n} \parallel c'[j]-(p/q) \cdot c[j] \parallel \cdot \parallel s[j] \parallel \space = \space \parallel [<c',s>]_p \parallel - \space (p/q) \s... |
There are a lot of oblivious transfer algorithm. What is the best? It would be good if it were malicious secure, but that is not necessary, if this make protocol very difficult/slow. This protocol should be not very difficult, but the most important it should be fast and has low communication complexity.
|
Alice:has $x=(x_1,x_2,...x_m)$
Bob: has $(y_1,m_1),...,(y_n,m_n)$
For this, Alice wants to get some message from Bob, but does not want bob to know which one she gets
Bob generate random $a \in Z_q$,$cid_i=H(y_i^b),c_i=AES_{enc}(y_i^b, m_i),\forall i \in n$
Bob send all $(cid_i,c_i)$ to alice
Alice generate random $b... |
The calculation/formula i use in deriving a public key from the private key without importing any module in python3 script involves the following steps:
Define the parameters of the secp256k1 elliptic curve:
p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F
a = 0
b = 7
Gx = 0x79BE667EF9DCBBAC55A0... |
I'm trying to understand how the safe primes numbers are used in Diffie–Hellman key exchange. According to wiki:
The order of G should have a large prime factor to prevent use of the
Pohlig–Hellman algorithm to obtain a or b. For this reason, a Sophie
Germain prime q is sometimes used to calculate p = 2q + 1, called a... |
As we all know, nonce reuse in AES/GCM can easily be catastrophic.
However, I'm wondering if the same risks are present if an adversary has access to:
Ciphertext and corresponding MAC of one message
Small amount of plaintexts and MACs of different messages
using the same (key, nonce) tuple.
Would this leak part of th... |
A sponge has by definition 'wasted' operations (the part of the state which always remains private but goes through all the ops of the permutation).
In return for that waste you get a MAC at the end - some claim that it's for free for some reason.
But the ops wasted on the hidden state cannot compete with something lik... |
I'm confused about something that makes AES GCM great.
It uses MAC to sign data it encrypts. I also uses nonce.
But lets say I encrypt data in software A. Software A produces a ciphertext and a tag as shown here : https://pycryptodome.readthedocs.io/en/latest/src/cipher/aes.html
But when I want to decrypt the cipherte... |
Full-State Keyed Sponge (aka Donkey Sponge) is when a message is absorbed into the full state of the sponge.
Such an approach to MAC construction is considered secure. 1
However for an AEAD or a stream cipher, exposing the state obviously breaks it.
Would utilizing a XEX-like approach be able to secure such a scheme?
... |
It is well-known that, in the setup phase of Pedersen commitment, it is necessary to generate $g,h\in G$. Then a user can compute $c = g^vh^r$ to commit the value $v$.
Is a trusted center needed to generate $g$ and $h$?
In other words, can $g$ and $h$ be publicly generated?
|
I am trying to implement the RSA cryptography algorithm using C language. I am not sure of the size that each operand should have. Let me explain:
RSA requires to generate two huge prime numbers p and q, and compute their product n = pq.
Let's suppose that we want to use a key size = 2048 bits.
So we generate two 2048-... |
According to wikipedia(markdown is striped below) for Decisional Diffie–Hellman assumption:
the DDH assumption does not hold in the multiplicative group $Z(p)$,
where $p$ is prime. This is because if $g$ is a generator of $Z(p)$, then
the Legendre symbol of $g^a$ reveals if a is even or odd.
For example I have $p=2... |
I am struggling with using Microsoft's BCrypt library in AES-XTS mode.
I've confirmed that the Cipher Block Size is 16 bytes (by getting the BCRYPT_BLOCK_LENGTH property). I'm setting the Data Unit Size to 256 (by setting the key property BCRYPT_MESSAGE_BLOCK_LENGTH); I realize 256 is a bit unconventional, and 512 or 4... |
So I've been trying to implement a Non-Deterministic RBG based on randomness polling from non-hardware sources (nothing novel, just a side-project). Since collecting entropy and further conditioning is a fairly expensive process, I am using these bits to seed a CSPRNG which finally provides the user with a stream of ra... |
So I’ve been reading about different ways to store passwords on servers (plain text, encrypted, hashed, hashed + salt, slow hash + salt) and I wanted to find a way where a leak of the stored passwords isn’t an issue without resorting to very slow hashes (since slow hashes means a lot more computer power as people sign ... |
The NTRU key generation involves polynomials and their arithmetic in polynomial rings, which is a bit different from arithmetic in modular integers.
In the NTRU cryptosystem, the public key $h$ is computed as:
$h=g⋅F_q \bmod q \tag{1}\label{r1}$
where $g$ is a chosen polynomial, $F_q$ is the modular inverse of $f$ mo... |
Are there any cryptographically strong hash function and encryption function(s) where hash(encryptA(data)) == encryptB(hash(data)). The functions encryptA() and encryptB() may be identical, or just related.
If no such functions currently exist, are there theoretical reasons (relating to the one-way nature of hash func... |
Are there any two encryption function(s) where encryptB(encryptA(data, keyA), keyB) == encryptA(encryptB(data, keyB), keyA).
The two functions may be related or identical.
The two keys must be distinct and unrelated.
|
Is it possible to use a Distributed Key Generation protocol, like the Pedersen DKG, to generate multiple key sets (one secret key and the corresponding public key) instead of only one, but without modifying the exchanged messages?
|
This might sound like a naive question (And maybe it is (It's an early morning Saturday thought, so there might be some clarity of thought missing)).
Suppose we havea protocol that sends messages as follows:
Encrypt(<Message><Padding*>Hash(<Message>))
*Padding is optional, but if present pads out the message to the ne... |
Is there an encryption scheme where it's hard to guess a valid ciphertext without knowing the key and the scheme is CPA secure?
|
I have an implementation of PBKDF2, which I know
Has two bytes of '=' at the end of the input
Has an input length of 24 (which is a Base64 encoded character representation of 16 bytes of entropy)
Uses one iteration
Has a known 9-character salt.
It's using a SHA1 hasher.
Does knowing the two = bytes at the end of inpu... |
Full-State Keyed Sponge (aka Donkey Sponge) appears to cross over into block cipher mode territory such as Full Block Cipher Feedback Mode:
Full State Keyed Sponge (FKS) construction:
FKS has been shown to be a secure way to obtain a MAC.1
FKS and Full-Block CFB are the same constructs, there apparently even exists a... |
Each Enigma machine setting induces a certain encryption in the sense of a function from the space of plain texts to the set of cipher texts.
The number of different Enigma machine settings can be counted for a given Enigma version (and usage). This is answered here: How many possible Enigma machine settings?.
But do d... |
I came across Prof. Bill Buchanan's video "Lattice Crypto: Ring LWE with Key Exchange" explaining the RLWE-KEX. I understood everything he explained until the last part, where he is talking about removing errors from the shared key using probabilistic encryption.
Alice has the shared key as: $\text{sh} = \mathbf{A \cd... |
Single-key Even-Mansour is secure up to $2^{0.5 \times n}$. Where $n$ is permutation and key size.
Would using $n/2$-key retain same security as $n$-key?
Could the other half be used as a tweak?
|
A lot of cryptography is based on the assumption that ${\sf P} \neq {\sf NP}$.
Is it conceivable to construct a cryptography system based on a class of much harder problems than ${\sf NP}$-problems, namely undecidable problems such as the mortal matrix problem?
|
There is DH key exchange, but it requires an exchange before participants get to the shared secret. If Bob has only published a verifying key VB, is there a scheme where the following can be achieved?
Alice, from Bob's verification key VB and some nonce N, derives an ephemeral encryption key EB for Bob
Bob, from EB, N... |
The AEGIS reference document doesn't specify why the authors chose a slow diffusion process and a one way round transformation.
As you can see the previous state is XORed with AES applied to itself shifted by one (wrapped around). This is not a permutation.
The diffusion is also slow when comparing to the possibilitie... |
A semantically secure encryption scheme can not preserve the length of an encrypted plaintext.
How to prove this? or are there some methods that can be used to obtain such information from a semantic secure ciphertext?
|
I'm trying to understand which benefits can using of extension fields in elliptic curve cryptography bring over prime fields. Popular curves like secp256k1, curve25519, secp384r1 are defined over a prime field. Are there any useful elliptic curves over extension fields and what are their usecases?
|
The solution to the problem of finding the primes $p$ and $q$ that have the following form:
$$
c_1 = (a_1 p + b_1 q)^{e_1} \mod{N} \\
c_2 = (a_2 p + b_2 q)^{e_2} \mod{N}
$$
Given the values of $c_i$, $a_i$, $b_i$, $e_i$ and $N$ where $N = pq$.
Can be found in this writeup online. I follow the solution right up to the v... |
As stated for the question above here's an analogy:
You are a robber looking for a house to rob with two different scenarios that might occur.
1. You have a key that you know belongs to a house and you can use it to let you inside. However, you have no clue for WHICH house it belongs to. At any neighborhood and at any ... |
Could anyone direct me to literature regarding privacy proofs in the MPC setting.
For example, how can one prove the following simple problem:
Suppose a setting with $n$ parties $S_1, \ldots, S_n$ wish to compute an additive sharing of $0$, so $r_i\in S_i$ such that $\sum r_i = 0$.
The parties can be assumed to hold so... |
Respected community,
I am using the OpenSSL API's, especially libcrypto and libssl and I am really depressed, thinking about side channel attacks on my implementation. My target platform is Windows, and I am programming in C and C++ and I am linking the libraries dynamically.
I am doing symmetric encryption of some fil... |
By Shannon's theorem of perfect security, if I give you a ciphertext 'LOUPL', you can do a brute-force attack and then you would find plaintexts like 'HELLO', 'APPLE', 'SPOON', but you can't distinguish the true plaintext from the fake one, unless with a probability in 1 of 23⁵. That's a theoretical information securit... |
The MCOE mode provides a really nice way to implement a nonce-misuse resistant AEAD and is based on an arbitrary tweak block cipher.
A specific requirement of the tweak block cipher is that the data block length is the same size as the tweak.
As I use Skein to perform key derivation and hashing, the Threefish cipher co... |
Consider a slightly modified variant of the Gimli SP-box:
function spbox(s) {
x = s[0];
y = s[1];
z = s[2];
X = x ^ (z << 1) ^ ((x ^ (y | ~z)) << 1);
Y = y ^ x ^ ((y ^ (x | z)) << 1);
Z = z ^ y ^ ((z ^ (x & y)) << 1);
return [Z, Y, X]
}
Here s is an array of three $32$-bit words, ^ is the... |
In RSA, the decryption exponent $d$ is typically calculated as $$d= e^{-1} \bmod{(p-1)(q-1)}$$ or $$d = e^{-1} \bmod \operatorname{lcm}{(p-1, q-1)}$$
where $p$ and $q$ are often randomly selected numbers passing probabilistic primality tests such as Miller-Rabin. Usually, the more rounds of these tests, the more confid... |
Do signal protocol derive One-time prekeys from Signed Prekey with some KDF or are they just randomly generated in the same way as Signed Prekey?
|
I'm a bit lost. I know that ZKBoo can be used for proving $y = C(x)$ for any boolean or arithmetic circuit $C$. However, I'm unsure how to combine several circuits when we want to do more complex proofs.
Suppose we have $X = \mathsf{Hash}(x)$, $Y = \mathsf{Hash}(y)$ and $Z = \mathsf{Hash}(z)$ and a publicly known prim... |
TLS 1.2, if encrypt_then_mac extension is enabled.
Sequence number is used during MAC calculation.
But it's not used during the 'body' encryption.
Here, seq_num is used only when calling MAC() function:
https://www.rfc-editor.org/rfc/rfc7366
Does it mean that if client sends some data twice, an encrypted body will be t... |
In IND-CCA encryption, one way to ensure semantic security is to return an error symbol on malformed ciphertext. Some post-quantum KEM algorithms however doesn't do this - instead, they return a "rejected" key.
I'm not sure of the purpose of this. Is it because quantum random oracle model has subtle difference from cla... |
I'm trying to understand the specification behind doubleratchet algorithm, item 2.4. Double Ratchet.
According to wiki:
A client renews session key material in interaction with the remote
peer using Diffie–Hellman ratchet whenever possible, otherwise
independently by using a hash ratchet.
What does impede Signal pro... |
I'm working in some homomorphic encryption for my Ph.D. but I'm not of the field... So I'm possible going to ask a really simple question that I'm struggling to find an answer on the internet.
Basically I'm using an scheme to encrypt some input (a vector of doubles/integers), change one bit (bit flip) to the encoding/e... |
The LWE conjecture states that, given $A \in \mathbb{Z}_q^{m \times n}$ and $A x + e$ for $x \in \mathbb{Z}_q^n, e \in \mathbb{Z}_q^n$ it's difficult to recover $x$, given that $e$ is sampled from a distribution concentrated around $0$. This might be a uniform distribution on $\{-\delta q, -\delta q+1, \dots, \delta q\... |
Is there any hardware implementation of Shamir's secret-sharing method available? I have only go the following two implementations in the existing literature.
Paper 1
Paper 2
Anything more in the GitHub or any other spaces especially in GF(2^x)? Any open-source hardware implementation directed towards FPGA will be ap... |
I am new to lattice-based cryptography
May I ask that for a lattice-based encryption
$$enc(m) = A^{T}R+m \bmod q$$
If I set the $q$ to be able to decrypt to $m$ (and suppose the bound of $q$ is tight over the bound of error and secret chosen from LWE)
But if I need an operation that takes a constant $p$, and multiply $... |
Suppose we manipulate the zeroth byte of AES state after the 9th round ShiftRow operation and we want to see its effect on the ciphertext. The propagation of the error effect is demonstrated in the figure.
I have written the equations of each step in the order below and obtained the equation of $V[0]$ in terms of key ... |
KeePassXC supports Argon2, which is great for security. However, there's a quirk that's been bothering me. Every time I save modifications to the database, it seems to stretch (derive) the key again, resulting in a 10-second delay. I should clarify that I'm perfectly fine with the 10-second delay when I type my passphr... |
based crypto
And I would like to use the lwe estimator to calculate bound for ring LWE
Found in this issue It seems to me I can set up parameters like params = LWE.Parameters(n=2^14, q=2^438, Xs = ND.Uniform(-1,1,n), Xe=ND.DiscreteGaussian(3.19)
My first question is that does "n" mean the terms of the polynomial ring... |
Suppose $F_s$ be a family of keyed pseudorandom functions. Define $F'_s(x)=F_x(s)$. Is $F'_s$ a family of pseudorandom functions? It seems false but I am able to give a proof assuming $F$ is constructed from a length doubling PRG. It is essentially the same proof as construction of PRF from PRG. I don't know if this pr... |
Assume you have implemented the S-box and Inverse S-box of AES as code (or hardware) instead of a lookup table copy-pasted from the AES standard. An obvious test you want do is to check that S−1(S(B)) = B for each byte B. However, this only proves that S−1 is an inverse of S. What do you need to check to make sure that... |
I am trying to understand the two main hard problems that have been explored in the context of homomorphic encryption: Learning with Errors Problem (LWE) and the Approximate-GCD (AGCD) problem. I have some idea of the LWE problem and its variants such as the Ring-LWE. Recently, I have been reading about the Approximate... |
How can we convert a lattice-based signature (like based on Fiat Shmair with abort e.g. Dilithium) to R1CS?
|
In Section 5.2.1 of the Kyber documentation, it states that the BKZ block size of 413 was chosen using the tool from this paper, i.e., this tool. How was the block size derived from this? Currently, inputting
n=512
m=512
q=3329
D_e = build_centered_binomial_law(2)
D_s = build_centered_binomial_law(3)
building a DBDD i... |
for a research project, i am currently looking for a way to manipulate the digital signature of a HTTPS TLS message flow. More specifically, i am trying to create a working example for a malicious webserver in order to show a client-side exploit of CVE-2022-21449 ("Psychic Signatures") for a research paper.
In order to... |
Computing the signature of hello.txt file which has the text hello in it, here is done in two steps:
openssl sha1 -binary -out hash hello.txt
openssl pkeyutl -sign -inkey private.key -in hash -out signed -pkeyopt digest:sha1
First we'll get the digest value in the hash file, then this file is signed getting the signed... |
I will describe my problem high-level, and not ask a very specific cryptographic question, since I am open for general suggestions as well. So in my question I will only speak about "security keys" not about any specific algorithms or key types.
I have a License File A, which I need to distribute. On the client side, t... |
can secrets be deciphered from the proofs generated with ZK-Snarks if a quantum attack were plausible?
I understand the concern that ZK-snarks and some of their cryptography may be broken by quantum computing in the future.
My question is whether with the proofs generated an attacker could reveal variables of the equat... |
Consider Sponge construction where capacity part of state is feed-forward and xor-ed into next state.
${state}_{i+1} = F({{state}_i}^{rate} || {{state}_i}^{capacity}) \oplus (0^{rate} || {{state}_i}^{capacity})$
Would there be any security improvement from this?
Would it improve preimage and 2nd preimage security?
Th... |
I need to select a key derivation function that will likely be used in contexts that I haven't anticipated. It will run on very low-end devices (think potato-powered IoT sensor with a bulk cost of a fraction of a cent). It will also run on higher-end devices that have the luxury of a hardware AES accelerator (costing a... |
I understand that an elliptic curve $E$ over a field $K$ has an associated twist, that is another elliptic curve which is isomorphic to $E$ over an algebraic closure of $K$.
Which cryptographic benefits do twists of elliptic curves bring?
|
What technique is used in the Off-The-Record protocol to implement authentication and message validation? And what is the difference between this technique and Multi-Designated Verifier Signatures?
As far as I understand it, the OTR protocol uses digital signatures and HMAC for authentication for one-to-one communicat... |
IND-CCA is an abbreviation of "Indistinguishability under chosen ciphertext attack" and generally, an adversary carrying out the chosen ciphertext attack is given a decryption oracle only. However, in the IND-CCA game, the adversary is allowed to make both encryption and decryption queries in the pre-querying phase.
Wh... |
The MAC scheme should not be using any primitives like PRG, PRF or PRP. Ok what could be possible solution if we ignore the statement "
|
Here's my current understanding of how ECC works.
There is a recipient and a sender - Alice and Bob and each has a public and private key - (Alice's private key is denoted by a and public key is denoted by A and likewise for Bob).
They have a publicly available curve and a publicly available starting point P.
Alice the... |
The secure multiparty computation framework SecureML 1 has proposed a truncation protocol for decimal arithmetic in the integer field.
As mentioned in this paper,
In field $\mathbb{Z}_{2^l}$, $x\in [0,2^{l_x}] \cup [2^l-2^{l_x}, 2^l)$, ...
Why is this representation employed? How can we interpret it?
|
Using a prime order subgroup prevents mounting a Pohlig–Hellman algorithm attack. Meanwhile, secp256k1 doesn't use a prime order subgroup.
What is the idea behind not using a prime order subgroup?
How does it prevent the Pohlig–Hellman attack?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.