instruction stringlengths 32 27.2k |
|---|
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... |
An appliance uses a curious way of obtaining ssh-rsa host keys: There is a single configuration option "management certificate" that sets RSA private keys both for HTTPS and SSH management.
Concretely, the configured certificate+key is used as-is for HTTPS. For SSH the device extracts and reuses the raw RSA key from th... |
What is the difference between KDF based on NIST SP800-108 vs. the older one in ANSI X9.63? When should one be selected over the other? Thanks.
|
If $x$ and $y$ are both 128-bit strings would the function $h(x||y) = AES_x(y)$, where $x\|y$ means concatenation, be considered collision resistant ?
Is there an easy way to find $(x_1, y_1)$ and $(x_2, y_2)$ such that $h(x_1\|y_1) = h(x_2\|y_2)$ ?
I couldn't think of a way but since the hash function is un-keyed so... |
Given two independently keyed compression functions $h_1$ and $h_2$:
$h_b(x): \{0,1\}^{3n} \to \{0,1\}^{n}$, where $b \in \{1,2\}$.
Let $h(x) = h_1(x) \| h_2(x)$.
Given at least one of $h_1$ and $h_2$ is a one-way function, is $h$ one-way?
Attempt at proving the statement
Assume we have an adversary $\mathcal{A}^{OW}_h... |
The Wikipedia article on randomness extraction states that they are different to pseudo random number generators but the distinction is very hazy. Both seem to take in some input quasi-randomness and produce a uniformly random output.
I'm interested in the security aspect of the generated output. I want my final rando... |
Is there a way of maintaining malleability in a homomorphic encryption system while making it infeasible to perform chosen ciphertext attacks?
I have been reading about homomorphic encryption and malleable cryptosystems lately and have found it fascinating. I still have a lot of reading to do, however, I came across ... |
In the context of Fully Homomorphic Schemes, we use a technique called "bootstrapping" to refresh the ciphertext, by evaluating homomorphically the decryption circuit with an encrypted version of the private key.
I was wondering if it was possible to consider this approach, of reducing the error size, by using an error... |
is there a way to specify the encrypted message length when using private and public keys? mainly I want the encrypted message to be 32 bytes? as I'm currently using RSA but that results in a length that is equal to the modulus Length.
|
I am currently learning paillier cryptosystem,and have two questions about random r.I use the characteristics of homomorphic addition to obtain the product of two ciphertexts C and the corresponding plaintext P.
Assuming I know the private key,how can I calculate r?(I want to know more details about how to calculate r... |
When I read about zero knowledge proof, I keep encountering the term NP-statement. I am aware of complexity classes but I am a little unclear on how it ties up to NP-statement.
I came across the following here: C++ library for zkSNARKs
A computation can be expressed as an NP statement, in forms such as the following:
... |
EDITED QUESTION FOR A BETTER EXPLAINATION
I have this crypted information (RSA):
2FB2BDC75D2D36A779B9F1B66735BDFF
DC0FB25C0E8DDF30E95D1896B2A6A995
1DF2029594DAD93FBDA5E2ED69A62291
11AFCFAC19CF13F9F87F482816355C53
9E6AE5B91C153EA7892F11E1FB7F4E60
F95F7C7133B48740F58A8510E7AEC1B8
7AC14406B510BCBD942F45DE15BF6439
969F010E... |
My question is,
how does the security depend or change if I encrypt with AES-128 in total 4-MB of Data?
With Electronic Code Book Mode and
Cipher Block Chaining Mode ?
Does an adversary still need $2^{126}$ tries (like Wikipedia suggests) to guess the key or is it less (which in my opinion it should)?
The encr... |
If I have a program acting as TLS server with a certificate signed by a CA, if one of the issuers in the chain becomes invalidated or the date expires, then how does the program using the certificate know this? Or is it up to the client to do this checking?
My specific scenario is self-signed root CA signs server cert... |
I am working on the Meet-in-the-middle attack on 2DES and I have got some questions I am not sure about. I read several websites/articles about it so I have got an idea of what it is and how it works. However, I do not fully understand what is meant by every possible key.
Let me give an example:
I have a known plaintex... |
My slides show that assuming a polynomial number $q(n)$ of blocks have been encrypted by a random function oracle in the context of a CPA-game, the probability of having a collision in the input to the oracle is bounded by $\frac{q(n)^2}{2^{l(n)}}$ (cfr. Katz and Lidell, 2nd edition pages 93-94).
Then I am proposed the... |
From what I could gather, it seems like that NIST's key wrap (publication) provides similar security like AES-GCM Authenticated encryption. If this is true, why did we need a separate specification for key wrap in the first place ?
|
Let's assume that we have a hash value $h$ is calculated by using HMAC-SHA256.
We have the key $k$. We also know some information about the input:
It contains a pattern like 15 numbers where first 7 are known;
Question: Is it possible to find at least one input $m$ such that $h = \operatorname{HMAC-SHA256}(k,m)$ wi... |
Assume a 256-bit Key and a 256-bit Salt, with uniformly distributed entropy, both fully independent.
Assume Key is secret and Salt is public.
What theoretical advantages would deriving an AES-256-CTR encryption key using Key XOR Salt give to an attacker?
Assume that the product of Key XOR Salt will remain secret.
Assum... |
Leaving aside the problem of how to compute the inverse of a PRF F, may we use it also as a PRP?
The reciprocal of this statement is true, see for instance Katz and Lindell, Proposition 3.27, when the input length of F is sufficiently large. However, in practice to build a PRP from a PRF people use a Feistel network. T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.