instruction stringlengths 32 27.2k |
|---|
I'm curious about the homomorphic properties of Paillier. So, basically if I have $\textsf{Dec}(\textsf{sk}, \textsf{Enc}(\textsf{pk}, \alpha) \cdot \textsf{Enc}(\textsf{pk}, \alpha^{-1}))$, I will get as result $\alpha + \alpha^{-1}$. But, does it also mean that if I have $\textsf{Dec}(\textsf{sk}, \textsf{Enc}(\texts... |
I have the following setup:
An app ("client") wants to communicate securely with a device I created ("server").
The client has the public key of the server (and a hashed password) preinstalled.
I use the libhydrogen crypto library (inspired by libsodium / same creator as libsodium).
First, I do a key exchange (using t... |
I'm not really interested in this PRNG. I'm more interested in understanding what it takes to fail the security threshold for cryptographic applications. I'm taking the C PRNG as an example.
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
unsigned int random;
srand(1);
for (;;) {
random = rand();
... |
When selecting $g$ and $p$ for the Diffie-Hellman modular exponentiation:
$ s= g^x \bmod p $
Which pairs of $g$ and $p$ are considered good nowadays, are recommended by bibliography?
What I try to do is to write a simple Python script that chain calculates Diffie-Hellman Modular exponentiation:
def dh_public(secret):... |
Please note I am new to Cryptography in general. Sorry if I do not use the correct terminology/my question has some fundamental flaw.
Alice and Bob want to communicate securely over an insecure channel. They decide to use Ed25519 with both an identity key (IdkAlice & IdkBob) and an ephemeral key (EpkAlice & EpkBob) for... |
In the 2. edition of the Modern Introduction to Cryptography, by Katz and Lindell, there is a definition for MACs;
Canonical verification. For deterministic message authentication codes
(that is, where $\text{Mac}$ is a deterministic algorithm), the canonical way to perform verification is to simply re-compute the t... |
Because blockchain is decentralized, what would happen if there was no cryptography anymore to protect the blockchain? I know it would not be used anymore but why? "Hackers" could reverse transactions but I can't think of anything else...
|
What if were to use DES in the following way:
For a given plaintext x and key k we will perform: DES(DES(DES, k), k'), k), where k' is the complementary of k.
If an adversary has a small amount of text and their ciphertexts, would he still have to run 3 * 2^56 encryptions: for each key perform DES(DES(DES, k), k'), k)... |
Does encrypting with $\operatorname{DES}$ in the following way $$\operatorname{DES}(\operatorname{DES}(x,k), k)$$ make $\operatorname{DES}$ as strong as $\operatorname{2DES}$ with 2 keys?
Because we have to run $\operatorname{DES}$ twice now for each key in order to find it - first run $\operatorname{DES}(x,k)$ and th... |
There is (or at least was) a thermodynamic reasoning that any form of brute force key search would require an energy at least $k\,T$ per key tested, where $k$ is Boltzman's constant and $T$ the device's absolute temperature in Kelvin. It concludes that at the evaporation temperature of helium, our sun's whole radiated ... |
The statistical difference between two families of distributions of random variables:
Let $\mathrm{\mathbf{X}} = \{ X_{l} \}_{l}$ and $\mathrm{\mathbf{Y}} = \{ Y_{l} \}_{l}$ be two families of distributions of random variables, the statistical difference of $\mathrm{\mathbf{X}}$ and $\mathrm{\mathbf{Y}}$ is defined as... |
What is the difference between Zero Knowledge Interactive Proof and zero knowledge proof?
Nathan Aw
|
Using schoolbook multiplication (which has cost $\mathcal{O}(n^2)$) to multiply two $n$-bit numbers)
what is the cost of computing an RSA encryption with $e = 3$?
What is the cost if $e$ is chosen randomly in the range $\{3, 5, 7, \ldots, \varphi(N) − 1\}$?
|
I need to implement a HMAC signing of requests and I have read this article which explains the basics of what it is and how to achieve on theory.
https://blog.andrewhoang.me/how-api-request-signing-works-and-how-to-implement-it-in-nodejs-2/
But I have no idea how the user initially gets their public/private key pair. I... |
Let's say that there are two parties. Party $A$ has ciphertexts $c_1, c_2$ encrypting data $m_1,m_2$ respectively. $A$ does not know the secret key to decrypt $c_1, c_2$. Party $B$ has the secret key.
$A$ wants to compute $(m_1m_2)/(m_1+m_2).$ So, it chooses two uniformly random values $k_1,k_2$ and sends $k_1\cdot c_1... |
Consider the following hash function for a message x = x1||x2|| · · · ||xn:
h(x) = Mn
i=1
AES0(xi) = AES0(x1) ⊕ AES0(x2) ⊕ · · · ⊕ AES0(xn)
where the key used in AES is k = 0. Can someone explain what is wrong with this hash function?
|
For a school project, I'm trying to demonstrate a hash collision using Python.
This is the little piece of code that I'm trying to use (based on this answer):
from hashlib import md5
from binascii import hexlify
s1 = b'd131dd02c5e6eec4693d9a0698aff95c2fcab58712467eab4004583eb8fb7f8955ad340609f4b30283e488832571415a0851... |
The drawing of lines on the elliptic curve is repeated n times, where n is your private key, resulting in a point Ω. When calculating Ω, is there a short cut function that lets you skip having to actually iterate n times? If not, does not seem that difficult get n by just brute force..
|
In Introduction to Modern Cryptography first a pseudo random generator (PRG) is constructed from a one way function (OWF). After that the PRG is used to to construct pseudorandom functions (PRF). Is there a way to construct a PRF directly from an OWF?
|
Quoting from source, authentication using SSH key pairs goes something like this:
1) The client begins by sending an ID for the key pair it would like
to authenticate with to the server.
2) The server check's the
authorized_keys file of the account that the client is attempting to
log into for the key ID.
3) I... |
Is ed25519 quantum resistant? I am using ed25519 as a cryptographic primitive for decentralized identity platform, thus this very crucial question.
|
We are doing optimal Ate pairings using a Barreto-Naehrig curve, and I am trying to make sure that an observation I made generalizes.
We define $E$ as $y^2 = x^3 + 3$ and use the tower of extensions
\begin{equation}\begin{split}
\mathbb{F}_{p^2} &= \mathbb{F}_p[u] / (u^2 + 1) \\
\mathbb{F}_{p^6} &= \mat... |
There is a server from which media files will be streamed to cross platform mobile/desktop apps.
The idea is to encrypt the files while uploading using the web browser, store it in the server and when requested, files will be sent over to the front end, decrypted there and media played.
Users can use multiple devices (... |
Let's assume I have thousands of (pseudo-)random 4-byte values. The values are 4 byte random values which a blackbox device gave me. I got these values by requesting them. In between others might have requested them too (I don't know about that). Now I'd like to test them for randomness. There are tools for this like d... |
Block ciphers mix key material into the permutation through XOR. Also do pre and post whitening this way.
Chacha/Salsa finishes by 32-bit modular adding key and iv material (among other bits but since reversing them is trivial that doesn't matter) into permutation output.
What is the rationale behind using 32-bit modul... |
Are zero-knowledge proofs quantum-resistant?
|
Shamir's Secret Sharing scheme is perfectly secure.
Could you please suggest where I can read a formal proof of Shamir's Secret Sharing scheme being perfectly secure?
|
I am reading about RSA accumulators from this video and few other sources. I had a confusion whether the complete set is needed to construct a proof of inclusion/exclusion in an RSA accumulator or is it possible to create the proof of inclusion/exclusion just by knowing the accumulator root and the value for which memb... |
Wikipidia says Schnorr signature generation is defined like this:
Y = x * G //this is the key we are trying to provide a signature for
k = random scalar
r = k * G
e = Hash_to_scalar(r || message)
s = k - xe
signature = (s, e)
This seems correct, but then to verify it's defined as:
r = s * G * e * Y
e = Hash_to_scalar(... |
My computer security professor uses the following notation, where S denotes a server and A denoted Alice. Alice wants to authenticate herself to the server. The hash function is a hash chain where $h^n(x)$ denotes a hash function $h(h(h(..h_n(x)..)))$. $n$ is stored on the server.
Assignment:
The following authenticat... |
Like to know the difference between Zero Knowledge Range Proof (ZKRP), Zero Knowledge Set Membership (ZKSM) protocols and ZKP?
Nathan Aw
|
The library TestU01 inconvenient for generators that don't produce 32-bit outputs. But is it possible to somehow test say a 15-bit generator with it? How could that be done?
For instance, the generator included in the book ``The C Programming Language'' by Brian Kernighan and Dennis Ritchie is a 15-bit generator. Is... |
Does the numerical algebraic geometry method work in the finite fields?
I am working on this method to find a solution for a low-degree proximity testing problem.
Would you please guide me how they work in the finite fields?
Clarification: Consider the $d$ low-degree proximity testing problem for Reed Solomon codes (R... |
Is it possible to perform a known-plaintext attack to extract the key from AES byte encryption?
The encryption is setup with the following two lines:
ctr = Counter.new(128)
crypt = AES.new(key, AES.MODE_CTR, counter=ctr)
And we have both the plaintext and the ciphertext
|
Let $\{\epsilon_i\}_{n \in \mathbb{N}}$ be a sequence of negligible
functions and $q(n)$ be a polynomial in $n$. Then $f(n) = \sum_{i = 1}^{q(n)} \epsilon_i(n)$ need not be a negligible function.
Ideas
A typical negligible function is $2^{-n}$. Maybe we can expand it to the family $2^{-(n+i)}$ and set $q(n)$ to so... |
Let's say I generate a keypair for a user with go's ed25519 package:
pub, private := ed25519.GenerateKey(nil)
And I want to generate additional child keys as signing identities for my user. Is it more secure to not use that public key created at initial generation and instead derive a new child private key as a signin... |
The only Miyaguchi–Preneel MD hash I know is Whirlpool. I suppose there are likely others.
Why do most MD hashes choose Davies–Meyer?
If anything, Davies–Meyer relies on related-key resistance while Miyaguchi–Preneel relies on chosen-plaintext resistance. The former ought to be far more difficult to achieve.
So I'm c... |
"I really enjoy and would like to learn about cryptography. How and where to start? what programs did you first use, and support teams? I am learning lots of things which I should include in my projects".
|
I came across this question:
Test the security of the following variation of DES-X cryptosystem, which uses 2 keys $k_1$ and $k_2$:
$$Enc(m) = DES_{k_1}(m \oplus k_2)$$
(Basically, it uses the 2nd key to xor the text before the DES encryption)
So, I've started researching it and i got confused.
In general, lots of pe... |
Suppose I have a group $G$ of unknown order $n$ where $n=p^k\cdot s$, $\gcd(p,s)=1$, $p$ is a known prime, $k,s$ are unknown positive integers and $k,s\ge1$. (Known - $p$ and $p\mid n$, Unknown - $n,k,s$).
Assume that it is easy to solve the discrete log problem in the subgroup of order $p$.
Questions
I know that if I... |
In one of the coding theory books I read the unique decoding radius for Reed Solomon codes is $\frac{1-\rho}{2}$. Precisely, if the relative distance be less than these amount so the receiver is able to reconstruct the noisy received code-word uniquely. While for bigger amount of relative distance there are other code-... |
Let's say that I have a plain computational process that consists of several divisions and I do not want to do it with non-interactive homomorphic encryption.
I would like to ask how can I call this process: Until a division, I do the computations non-interactively. When I face with division operation, here comes inter... |
NIST 800-56Cr1 describes a single and two (extract-expand) step KDF designed for use in key agreement routines. NIST declares that HKDF (RFC5869) is a version of the two-step variation so test vectors can be found in the RFC. However I am not able to find test vectors for the former, one-step variation.
There are some ... |
Consider the following oracle-based game:
$O_0$: Init: $1^n$; Query: output $y \stackrel{u}{\in} \{0,1\}^{l(n)}$
$O_1$: Init: $1^n$; Query: output $G(x)$ with $x \stackrel{u}{\in} \{0,1\}^{n}$
Alice and Bob toss a coin $b \stackrel{u}{\in} \{0,1\}$ and send a black box $O = O_b$ to Eve. Now, consider Eve can do $q$... |
Let's say bob says Hi and Alice says Hello, With the knowledge of n and g, how can we encrypt those message using Diffie-hellman or any ECDH
|
In lattice cryptography it seems like giving out long vectors for a lattice that can be drawn from much shorter vectors (generating an identical lattice) is somehow useful for public-private key schemes and similar. Why exactly is it hard to find short vectors if given long vectors, can't the lattice just be generated ... |
As indicated at
Key generation for AES-GCM-256 file encryption
I'm currently working on a file encryption software. In the above thread it was suggested that, for performance reasons, I use a combination of scrypt and HKDF.
But how should I go about using HKDF to derive a new key for each file? As suggested in the abo... |
Katz and Lindell book claim that from the theorem:
Any private-key encryption scheme that is CPA-secure is also
CPA-secure for multiple encryptions.
Follows the fact that:
If $(Gen,Enc,Dec)$ is a fixed-length ($M_n = \{0,1\}^n$) CPA-secure ES
then $(Gen,Enc',Dec')$ with $M_n' = (\{0,1\}^n)^{*}$ and
$Enc_k'(... |
I read a bit of A Method for Obtaining Digital Signatures and Public-Key Cryptosystems that introduced RSA in 1977, and, while learning the steps in RSA a few days ago, I noticed that they are similar to the Diffie-Hellman key exchange. Was RSA inspired by Diffie-Hellman, published the year before in 1976, as in does t... |
My client provided PGP public key for data encryption. Can I use any OpenSSL [RSA or AES or any encryption] APIs to encrypt the data with this key?
What are the different types of keys available for asymmetric key encryptions?
Is it possible to convert keys from one format to another?
|
Is there a method that allows for re-encryption of a message in a way that allows observers who only have access to the two cipher texts to prove that the plain text message is the same in each?
More specifically: if I have a message $m$, and I encrypt it with an asymmetric key scheme $E_1: c_1 = E_1(m)$ and then re-en... |
In Matsui's paper (Linear Cryptanalysis Method for DES cipher), lemma 1.
$NS(a, b)$ is even
if $a=1,32$,or $33$, then $NS(a,b)=32$ for all $b$
He said that the following lemma is now trivial from the definition of S-boxes.
But I can't prove this lemma. How can I prove this lemma?
|
I'm new to cryptography, and I've searching about ECDSA because I'm trying to solve a CTF.
I've already check this site and Google, and I think I'm in the right path, but probably I am missing something.
I have access to messages and the ECDSA signature that they generate. The format is always the same:
Example of a m... |
This is Pierre L'Ecuyer's PRNG. I know its period is $2^{191}$, but I don't know what is its internal state size. What is it?
|
What will the total $n$-bit security be if I encrypt a message with a 128-bit XOR cipher and then take that ciphertext and encrypt it with a 128-bit key.
Is the total security level now 256?
One definition on n-bit security said;
n-bit security means that the attacker would have to perform $2^n$
operations to br... |
For my research, I would like to compare the efficiency of a scheme when instantiated with Elliptic curves and RSA. So, I would like to know a "latest" comparison (as of 2018) on what group sizes of ECC and RSA provide equal amount of security. I found some references online, but they are really outdated and I would li... |
I'm a bit confused over the difference between hashing and encryption. Could someone help explain this to me in simple and concise, yet comprehensive layman's terms?
I'm not asking for any specifics in how they work, but rather how the essential concept of each work in layman's terms
|
Wikipedia says:
Key Wrap. Key Wrap constructions are a class of symmetric encryption algorithms designed to encapsulate (encrypt) cryptographic key material. The Key Wrap algorithms are intended for applications such as protecting keys while in untrusted storage or transmitting keys over untrusted communications netwo... |
Suppose the application is a Lamport signature scheme.
Is the following a secure hash $\{0,1\}^n \rightarrow \{0,1\}^n$?
$$
H(x) = x \oplus P(x)
$$
where $P$ is a public permutation that permutes an input of length $n$.
|
What are some Threat Vectors / Attack Vectors of Zero Knowledge Proof (ZKP)?
|
The paper “Gimli: a cross-platform permutation” contains the following information:
Occasionally (after rounds 24, 20, 16, etc.) Gimli adds an asymmetric constant to entry 0 of the first row. This constant has many bits set (it is essentially the golden ratio 0x9e3779b9, as used in TEA), and is not close to any of i... |
We can hash a file or data using multihash or SHA-256, but can we retrieve the original data or file from the hash?
Are there any methods to retrieve the original file or data from a hash of it without using IPFS?
Or is there any encryption method which encrypts a 5 MB file and outputs a hash-like content of 32 bytes s... |
I'm reading about the Schnorr's zero-knowledge proof for DLOG and the Sigma protocol for DH tuple proof, and I want to know how one applies Fiat-Shamir transform to both of them, to turn them into NIZK proofs.
I know that Prover would need to hash some public parameters to get the challenge, and then compute a proof ... |
Integral cryptanalysis against 4-rounds AES is practical (Security of the AES with a Secret S-box). I did two experiments in order to find the impact and remove the integral distinguisher of 4 rounds:
I replaced key addition $\oplus$ with $\boxplus$ (mod 32 bit)
I replaced the sbox with S1 Sbox in Clefia cipher (sam... |
I am considering creating an application that is able to work out a unique password for a site by hashing the url while using a secure master password as a salt (or technically pepper since it will always be the same?). I am incredibly inexperienced in the world of cryptology so if this is a stupid question then sorry ... |
Let $F$ be a PRF with $n = l_{in}(n) = l_{out}(n)$.
For any PPT-encoding $[\;\;]:\mathbb{Z}_{2^n} \to \{0,1\}^n$ and any
polynomial $l(n)$, $G_l(x) = F_k([1])\|\ldots\|F_k([l(n)])$ is a PRG
of stretch $nl(n)$.
Conclude that $F$-sCTR is CPA-secure if $F$ is a PRF.
The way I went about this was reducing to $l(n) ... |
RSA has limitation in input size for encryption and decryption.
Can RC6 be used for encryption and decryption of files larger than 5 MB?
Is there any limitation for input size?
Is RC6 safe for using encryption or has it faced any attacks?
|
While reading through Shoup's paper on provably secure Diffie-Hellman key exchange (DHKE), I do not understand something rather simple.
There are two parties $A$ and $B$. $A$ starts by sending $g^a$, and then $B$ sends $g^b$. Both compute $g^{ab}$. For an adversary, $g^{ab}$ should be indistinguishable from a randomly ... |
Hy i just saw this Question: How does a rolling code work?
And I just wondered how it is possible that my Vehicle (A 2013 Mazda 6) has two key fobs? As i understand this shuld not be possible. Because there shuldbe only one key that stores n+1.
Are these Vehicle using another form of a Rolling Key Algorithm or are ther... |
I have a ciphertext c_t and a RSA public key pair (e, n). I also know that the encrypted message is a three-letter word in the following manner ... (a-z, a-z, a-z). Now I want to decrypt this ciphertext.
My thoughts are the following:
I want to use bruteforce for decryption like this ...
if(c_t && c = (aaa)^e mod n)
if... |
I am learning about partially homomorphic cryptography, and was interested to see if there was a system such that one operation was homomorphic, but its inverse was not.
For example, if I have two messages $m_1$ and $m_2$, with an ecryption scheme $e(x)$, is there a cryptosystem such that we can compute $e(m_1 + m_2)$,... |
Alice needs to share an already generated numeric secret $s$ with Bob and she doe not want the world to see it. The problem is that she has never contacted Bob before.
I thought Alice and Bob could generate a line à la Shamir Secret Sharing so that $$q(x)=s+\alpha x.$$
To agree with $\alpha$ Alice and Bob could impleme... |
RFC 5639 brainpoolP160r1 has
p = E95E4A5F737059DC60DFC7AD95B3D8139515620F (Wolfram Alpha says prime)
A = 340E7BE2A280EB74E2BE61BADA745D97E8F7C300
B = 1E589A8595423412134FAA2DBDEC95C8D8675E58
x = BED5AF16EA3F6A4F62938C4631EB5AF7BDBCDBC3
y = 1667CB477A1A8EC338F94741669C976316DA6321
q = E95E4A5F737059DC60DF5991D45029409E6... |
In standard symmetric encryption, we can create an encryption scheme, in which two plaintexts $x_1, x_2$ map to the same ciphertext $y$, by choosing appropriate keys $k_1,k_2$ (!).
The most simple example is the one-time pad: For any plaintext $x$ and any ciphertext $y$, we can choose a one-time pad key $k$ such that ... |
I'm new on the topic of finite fields, specifically $GF(2^8)$.
I've come across the information that it's possible to implement multiplication using logarithm and exponential tables. But how are these tables formed exactly? Some answers talk about a generator while others talk about using a primitive polynomial. Are th... |
To my understanding the key generation logic only needs a source of randomness and the length of the key to be generated as input. However, we still provide the algorithm (names) like AES, DES, Blowfish etc. Is it mainly for validation purpose to ensure that the input key size is correct? So, if e.g. the algorithm is A... |
This site says how to encrypt data using a password in go using AES-GCM.
It says the following:
When encrypting and decrypting data, it is important that you are using a 32 character, or 32 byte key. Being realistic, you’re probably going to want to use a passphrase and that passphrase will never be 32 characters in l... |
We have got a task with the following content:
Given is a language with 3 letters: A, B, C.
The binary expression is:
A = 000, B = 1111 and C = 0011
Two words were encrypted in this language with the same key:
W1 = 0101001110111010101100100
W2 = 1011001010000000000101011
Determine the possible message pair.
How ... |
"GlobalSign" certificate in Trusted Root Certification Authorities for Google Services shows Sha1. Security postures are different than just 2-3 yr ago. At my home, router bought 2016, networked; and no use of RSA hard fob as I did; (cert has dates 2006-2021). May I best remove it to tame my internal concerns from on... |
I was sifting through the Node Crytpo library and I came across their Diffie Hellman utility class. Their class implements a generateKeys function that, in their words,
Generates private and public Diffie-Hellman key values, and returns
the public key in the specified encoding
My understanding of Diffie Hellman is... |
In the paper Correlation Matrices by Joan Daemen et. al., the authors state (on page 3) that if the correlation coefficients $C(f(a),w^ta)$ of a Boolean function $f$ are denoted by $\widehat F(w)$ then $$\widehat f(a) = \sum_w \widehat F(w) (-1)^{w^t a},$$
with $\widehat f(a) = (-1)^{f(a)}$.
Can someone explain why thi... |
How does Zero Knowledge Proof (ZKP) enable Privacy By Design?
|
Would zero-knowledge proof (ZKP) remove the need for quantum key distribution (QKD) since we no longer need keys to be passed around?
|
This is a follow-up question to
HKDF: ikm, salt and info values
Based on the feedback, I have now decided to implement my key derivation for AES-GCM-256 file encryption roughly as follows:
Everything up to scrypt is run once, the HKDF-expand part is repeated for every file to be encrypted. The random salt and info val... |
In general, keys for password-based key derivation are derived from a password hash such as the old PBKDF2 function or Argon2, possibly followed by another derivation function to derive data and authentication keys: $$K_{master} = \text{PBKDF}(pass, salt, factors, length, \ldots)$$.
A possible disadvantage is that it i... |
Given an elliptic curve $(E/\mathbb{K})$ where $char(\mathbb{K}) \ne 2,3$ defined by the Weierstrass equation $y^2=x^3+ax+b$. The $j$-invariant is $j=1728 \frac{4a^3}{4a^3+27b^2}$.
I want to understand very clearly how this j-invariant is constructed and especially from where does the 1728 come.
A rather simple but in... |
I honestly admit this question is taken from a h.w assignment:
Prove or refute: the following encryption scheme is CPA-secure: Let $(\text{Gen}, \text{Mac}, \text{Vrfy})$ be a secure MAC with tags of length $n$. Encrypt a message $m \in (0,1)^n$ by choosing a random $r \in (0, 1)^n$ and outputting $(r, \text{Mac}_k(r... |
I am studying RSA couldn't understand this question:
Alice encrypts the private factors of the modulus using her private key. In order to increase security, she multiplies them with a random integer $k$ she performs the following operations
$$cp = (k \cdot p)^e \bmod n \text{ and } cq = (k\cdot q)^e \bmod n,$$
n =
145... |
I'm trying to see how easy RSA malleability is.
I generate 2 ciphertexts with a public key:
cat file1 | openssl rsautl -raw -encrypt -pubin -inkey public.pem >messageA.encrypted
cat file2 | openssl rsautl -raw -encrypt -pubin -inkey public.pem >messageB.encrypted
Where file1 and file2 are filled with '1's and '2's r... |
Imagine an authenticated, encrypted file system, which uses AES-256-CTR to encrypt a 64 KB file sector, then uses HMAC-SHA256 to authenticate the 64 KB file sector (including the IV). IVs are 128-bit, randomly generated.
The global 256-bit encryption and 256-bit authentication keys are independent of each other, and ar... |
Let $R_q=\mathbb{Z}_q[x]/\langle f(x)\rangle$ where $f(x)=x^n+1$, as in the ring-LWE problem.
Let $a(x)$ be chosen uniformly at random from $R_q$.
Question: Is there any theorem that lower bounds the distance between any two polynomials of the form $a(x)s_1(s)$ and $a(x)s_2(x)$?
In other words, what is the value of $d... |
I have tried to calculate $trace$ of a coordinate $X$ of EC in binary representation. Before that I tried to pre-calculate traces of the various bits of $X$ using formula:
$$Tr(X) = Tr(\sum_{i = 0}^{m-1} c_ix_i)= \sum_{i = 0}^{m-1}(c_i Tr(x_i) )$$
For the field $F_{2^{163}}$ that i use we have only 2 cases $x_i$ tha... |
I am working through a series of crypto exercises to learn a bit more about RSA and crypto in general. In the case where one has a small $e$ AND a small m, would it be correct to say that if $m<N^{1/e}$ then we can attack by calculating the $e$-th square of $m^{e}$?
If that is a correct statement, then what would be th... |
On the Bitcoin community, to maintain privacy, they recommend using one-time spend addresses. CryptoNote, Monero et al. prefer Ring Signatures to maintain that privacy. There are some issues regarding double-spends in the Ring Signatures realm, so Linkable Ring Signatures + One-Time Key Images are used to avoid that. B... |
Libsodium's crypto_box() family of functions allow the sender to send messages using its public/private keypair knowing the receiver's public key, and allow the receiver to verify the identity of the sender knowing its public key.
However, since those functions work by calculating a shared symmetric key, the compromise... |
Reading the implementation details of Signal's approach on double ratchet algorithm I noticed the following key derivation procedure for using AES-CBC with HMAC:
HKDF is used (...) to generate 80 bytes of output.
(...) HKDF info is set to an application-specific byte sequence
distinct from other uses of HKDF in th... |
I'm working on a system (Ethereum) where it is significantly cheaper to store 32 bytes than 33 bytes. I'd like to create a table where data is stored based on its hash.
Sha256 would meet this criteria since it outputs 32 bytes.
However, I'd also like to include a "version" byte in case I need to change the hash algorit... |
I was reading about reversible computing while thinking about FPGA circuits. I realized that it would be possible to write a reversible SHA-256 algorithm if you stored some additional information as "garbage". E.g. The algorithm/circuit would compute a SHA-256 hash, but it would also produce some metadata that allows y... |
According to KeyCDN, TLSv1.3 connections are established in a single round trip:
While TLS 1.2 requires two round-trips to complete the TLS handshake, 1.3 gets the job done in just one trip
If that is the case, then the client's first message (after the TCP handshake) must include everything that the server will need... |
I have a hash function $HashSet(A) = H(a_1) *\cdots * H(a_n)$, where $A = \{a_1,\ldots,a_n\}$ and $H$ is a hash function which generates values of $b$ bits (and $H$ has no collision attack that requires less than $2^{b/2}$ of work for 50% chance of finding a collision).
Given $n$ how large should $b$ (the size of the o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.