instruction stringlengths 32 27.2k |
|---|
How can I analyze a cryptographic algorithm performance to make a table and charts comparing them. I have seen several papers but there's no paper explaining how it is exactly done.
As comparing data block size through time, etc...
Like key size, block size, power, throughtput, data length, processed bytes (MiB/s) and ... |
I'm trying to understand Diffie–Hellman based on Elliptic-curves.
Can one explain at which point of time the domain parameters are shared? Are they shared trough a public channel and can they be always the same? Are they shared at a specific different point of time?
Literature doesn't clearly answer my question...
I'd ... |
In SSI (Self-Sovereign Identity), anyone can generate their own DID (Decentralized ID). No authority or authorization is needed to create one. Since a public key pair is associated with DID, the person can prove the ownership by using the private key. DID document, which includes DID, is stored in a blockchain that pre... |
Can a fake SHA-256 checksum be created trivially for any file by attacker after padding some data after original file i.e. using length extension attack?
E.g:
Alice creates fake linux installation ISO file using length extension attack by padding extra data after ISO and calculates fake
SHA256 checksum of the ISO
Bo... |
I've created an AES implementation in Python as a learning experience (mainly for encrypting/decrypting files), and wanted to make sure that I haven't made any huge mistakes in my logic (of course, implementation is another story).
The block cipher mode of operation is CTR. The implementation supports AES-128, AES-192,... |
Suppose Alice wishes to authenticate herself to Bob, by proving she knows a secret that they share. With pseudorandom number generators (PRNGs) they could proceed as follows.
They both seed a PRNG with the shared secret $s$.
Bob picks sends Alice some random number $i \in \mathbb{N}$.
Alice proves she knows the share ... |
I want to use PKI to encrypt a message. How this generally done is to PKI encrypt an AES key and then encrypt the message. The problem(in my case) with this method is that you can also ask someone to just decrypt the key.
The reason this is a problem is because I want to encrypt something and give a package to person A... |
I have a known input and a known output but how would I go about working out what the cipher was used. Below are a few examples of input and output.
On the last one I noticed a repeating pattern. Would that point me in a particular direction?
|
If I am multiplying two numbers $m$ and $n$, where $n$ has $k$ digits and $m$ has at most $n/2$ digits, will it be considered polynomial time or exponential time in terms of $k$?
Addition (by proxy of mod): This multiplication's time will be exponential in $k$ (answering the above), yet polynomial in size of $m$. Will ... |
Assume I have a plaintext and a ciphertext, encrypted using some key and AES with CBC mode. I don't have a service, that I can send something to, so I can't use the Padding Oracle attack. Are there any ways to get the key? I also know that the message was encrypted twice using random words from a very big dictionary.
|
I am following a wiki diagram for CTR mode of operation in AES256. The documentation states that for it to work you need a random nonce with 8 bytes and then a counter of 8 bytes. So I guess you can randomly generate nonce for instance: SgVkYp3s. And then you just add a count to it. Then you iterate over all of your pl... |
I have some trouble understanding how Kernel Attack to MinRank is implemented.
MinRank: Let $k, n, r$ be positive integers, and let $M_0, M_1, \dots, M_k$ be $n \times n$ matrices with entries in a finite field $\mathbb{F}_q$. We want to find (if they exist) $\lambda_1, \dots, \lambda_k \in \mathbb{F}_q$ such that $E_\... |
I am interested in Mega.nz cloud storage.
It is using end-to-end encryption.
It says that it uses AES-128 to encrypt files
And there are more details in their white paper
But I saw that quantum computers could be dangerous for AES-128:
Grover's algorithm allows brute-forcing an n-bit key in $\mathcal{O}(2^{n/2})$ time... |
I am a bit new to encryption and I've seen a lot of recommendations to use a KDF for encryption and decryption. I'm a bit confused since I've been trying to encrypt the data using PBKDF2 algorithm and salt is generated using get_random_bytes, but when I try to decrypt the data I try to derive a new key using a new salt... |
Consider a trivial example where two semi-honest parties want to flip a biased coin. Since the sender is semi-honest, the sender can locally flip a biased coin and send it to the receiver. A natural question is: What does the sender's random tape look like in the above trivial real protocol?
I know that, in the 2-party... |
A general digital certificate issued by a CA might contain information about the individual/organization to whom the certificate belongs. As an example, consider this sample scenario:
This PKC contains identifying information of the individual to whom is this certificate is issued, i.e. the Name (Mario Rossi), Organiz... |
I like Applied Cryptography, and I am returning to cryptography after a while. So I am wondering if that book is up to date or can be complemented with other references.
I am looking for a book, authoritative, well documented. Possibly including code.
I would prefer to have a book as a reference, instead of asking naiv... |
In signature creation in ECDSA we use a nonce, commonly identified as $k$.
To create an ECDSA signature, we need to calculate two integers, commonly identified as $r$ and $s$.
$r$ is simply the X-coordinate of the base point multiplied by $k \bmod n$.
$s$ is the actual signature, so it's $s = k^{-1}\cdot(z+d\cdot r)\te... |
Hey for universal hashing we say the following:
Definition:
A randomized algorithm $H$ for constructing hash functions $h\colon U \to \{1,\ldots,M\}$
is universal if for all $x \neq y$ in $U$, we have
$\Pr_{h\gets H} [h(x) = h(y)] \leq 1/M$
I actually just can´t understand how the probability can be $1/M$ in any case. ... |
In Maurer, Ueli. "Secure multi-party computation made simple." Discrete Applied Mathematics 154.2 (2006): 370-381. I have found the following technique for $k$-out-of-$k$ linear secret sharing:
And the note regarding the domain says this:
Is using as domain $\mathbb{Z}_p$ (additive group of integers modulo $p$) with ... |
Coin-tossing protocol is defined as a protocol between at least 2 non-trusting parties that allows them to obtain an unbias random bit in such a way that no involved party can influence the output. Hence, does it pertains to the notion of secure computation?
|
Is there a difference in the security provided by a One Time signature vs a Many time Signature or a Few time signature? Or are they all just different ways of providing the same service?
|
I'm currently trying to implement a solution for Vehicular ad hoc networks based on cryptography. I've chosen to use python to implement the solution, but I don't know which libraries I have to use to implement the cryptographic functions (methods and modules). I've searched about it, but I didn't find good ones: most ... |
I tried writing two hashing function and compared it to MurmurHash64A. To my disappointment one was better but maybe 1.5x slower and the other was slightly faster but had more collisions when I truncated the bits to put in my hash table ((Hash64bit^(Hash64bit>>32)) & 0x9FFFFF). Apparently it didn't distribute well.
Fro... |
We modify Merkle-Damgård construction by setting $z_0:=L$ (the length of the message), computing $z_i:=h(z_{i-1}||x_i)$ for $i=1,...,B$ and defining $H(x):=z_B.$ Is this construction collision-resistant?
I think that it can not be collision resistant, because by adding the input length in the beginning after many steps... |
In a book about cryptography and elliptic curves, there was a mention that not all curves are secure, and a statement than in order to pick a secure curve the curve must satisfy 3 requirements.
The curve's equation is $y^2 = x^3 + ax + b\quad\pmod p$
with $4a^3 + 27b^2 \neq 0\quad\pmod p $
and the order $\#E(\mathbb F... |
They are asking me to deliver encrypted text in ISO/IEC 8859-1. I have always encoded it to hexadecimal or base64. This text will be sent in a file with plaintext and encrypted text. In my opinion it won't work because of the non-visible characters.
I also wonder if there are characters that exist in hexadecimal and no... |
For a secure, n-bit hash function, what are the “costs” to find a pre-image, weak collision, or strong collision?
|
Please bear with me on this, I'm not learnt in this field, just trying to ask questions about the security of my encryption method.
I'm trying to create a mentally computable human password manager method that can generate strong passwords using a set of operations and a master password, so that you only have to really... |
This Wikipedia article discusses one drawback of quantum key-distribution:
The main drawback of Quantum Key Distribution is that it usually relies on having an authenticated classical channel of communications. In modern cryptography, having an authenticated classical channel means that one has either already exchange... |
I am often confused by Poly-LWE and Ring-LWE, always thinking that they are different names for the same thing. In some literature, Poly-LWE is a simplified version of Ring-LWE? What is the difference?
|
I read in our university lecture on hashing that it would be good (even though it is way to space intensive) if we could take the set of all function from $U \rightarrow V$ to satisfy the following universal hashing condition: for all $\forall x,y\in U$ so that $x≠y$, we have $Pr[h(x)=h(y)]≤\frac{1}{|V|}$
I actually ... |
Seemingly, Niederreiter cryptosystem is faster than McEliece, and it can also be used to implement digital signature. Why isn't this scheme appear in NIST post quantum competition?
|
This paper proposed a new attack on the initial white-box AES implementation of Chow et al.
In order to determine the good solution, we use the
particular structure of the function $S_{0}$.
$S^{-1} \circ S_{0} \left( \cdot \right) = P_{0}\left( \cdot \right)\oplus k_{0} $
By definition of $P_{0}$, the above
function h... |
Do I understand correctly that XSalsa20 + Poly1305 provides authentication without a tag? If so, then how does that work?
I came to that conclusion by reading http://nacl.cr.yp.to/secretbox.html, "Secret-key authenticated encryption", where it states (as far as I understand) that the ciphertext has the same length as t... |
I am studying classical ciphers and have the following doubts:
Is the row and columnar transposition cipher the same?
It is similar since the process of encryption and decryption is the same for both(my opinion).
How did the author get the ciphertext using row transposition cipher? (link: http://williamstallings.com... |
Suppose you have the following set up for RLWE: $K$ is a cyclotomic field of degree $n$ over $\mathbb{Q}$, and $p\in\mathbb{Z}$ is a prime integer that splits as follows in $R = \mathcal{O}_K$: $p\mathcal{O}_K = \prod_{i=0}^{n-1}\mathfrak{p}^{e}_i$. Let $R_p = R/pR$ and $R^\vee$ denote the dual lattice. Let an RLWE sam... |
Assume given $g^X\equiv h\bmod p$ where $g$ is of order $\frac{\lambda(p)}2$ where $\lambda(p)$ is Carmichael Lambda function applied to prime $p$ (so $2$ is invertible in exponent) we can compute $X$ in polynomial time on an assumption $2$ is invertible in exponent (we can assume we take square roots and make the gene... |
Question:
Suppose that there are 10000 = 10^4 banks and 10 payment card organisations (PCOs).
How many secret keys will be needed if each PCO shares a unique secret key with each bank?
How many extra secret keys will be needed if every two banks share a unique secret key?
For question 1, I figured that if there are 1... |
This question Can Elgamal be made additively homomorphic and how could it be used for E-voting?
says ElGamal can be made homomorphic over multiplication. So you can have $(g^r, h^r g^m)$ (i.e., encrypting $g^m$) vice $(g^r, h^r m)$.
Then in this question Difference between Pedersen commitment and commitment based on El... |
SQUARE attack on AES128 requires a single delta set for 4-round variant, or I assume single delta set is enough since keyspace is reduced to few keys which can be easily brute-forced. However, as we increase round number to 5, we need 5 delta sets approximately, as proposed by AES proposal. And further, for 6-round var... |
Say Alice publishes $t$ unique signed messages with her private key $d$,
$$
m_1^d, m_2^d, m_3^d, ... , m_t^d \mod n
$$
For $t = 2$, we have $m_1^d, m_2^d \mod n$ and if we let $x \equiv m_1m_2 \mod n$ then we can produce a valid signature,
$$
x^d \equiv (m_1m_2)^d \equiv m_1^d\times m_2^d \mod n
$$
For $t$ signatures, ... |
Many lattice IBE scheme follow the scheme outlined in ABB10.
In ABB10, the ciphertext is
$c_0 = u^\top s + x$, where $u$ is a public parameter. (No consider message here.)
I want to ask:
Is it possible to make sure the ciphertext is generated following the scheme?
That is, can the sender provide a zero-knowledge proof ... |
In One-way Transport Layer Security (TLS), client who initiates the connection verifies the identity of the server or entity it is connecting to, but server not necessarily validates client identity.
In Two-way TLS connections, both client and server validates each other's certificate (public key) to achieve mutual aut... |
Given some input plaintext and output ciphertext, is there a group of crypto algorithms that mean that a change in the ending x bytes of the input plaintext makes some y change at the end of the ciphertext as well? The point is to conserve the visual pattern, but to still be encrypted.
|
There is an elliptic curve El Gamal digital signature scheme. Alice fixes an elliptic curve $E$, a prime $p$, a point $A$ on $E$, a secret integer $a$, and computes $B = aA$. She makes $(E, p, A, B)$ public. To sign a message m (which is an integer), she computes a point $R = (x, y)$ on $E$ and an integer $s$... |
Can every CCA-secure cryptosystem be used as a CMA-secure MAC?
I know that every CCA-secure system is CPA-secure, but I'm not sure about CMA. From what I understand: for a system to be CCA-secure, it must be both CPA and CMA-secure. So I feel if it is known that the system is CCA-secure then it might be used as a CMA-s... |
How to formally argue that there exists no efficient $A$ who can come up with a $e$ such that $$\begin{align}x&=PRF(e,0) \land \\ y &= PRF(e,1) \land \\ x &= H(y)\end{align}$$ where $H$ is a secure hash function and $|x|=|y|=\ell$?
Note that it's easy to argue that if $A$ just guesses randomly, the success probability ... |
I was reading my professors slides, I understand how meet in the middle works, but I have a few confusions. So we need two $\{(P_1, C_1), (P_2, C_2)\}$. Let $\lg{(k_1)} = \lg{(k_2)} = 56$, we generate $2^{56}$ of the $X = \{x_i = E_{k_{1,i}}(P_1)\}$ and $2^{56}$ of the $Y = \{y_i = D_{k_{2,i}}(C_1)\}$. So far it took u... |
Assume $S$ is a domain. $S' \subseteq S$ and all elements in $S'$ are invertible. $H:S'\rightarrow S$. If $H(x)$ is a one-way function, is $f(x)=H(x)\cdot x^{-1}$ a one-way function?
|
I was looking at this Nano ID page where they generate a 21 characters long ID and it would take 149 billions years to find a collision, so that seems secure enough.
However I found that most APIs use much longer tokens for authentication. For example, Dropbox uses a 64 characters long token (made of complete alphabet ... |
I didn't find a direct solution for it. Can I modify encrypted data without accessing it?
If there is an example, I would appreciate it.
|
I can not understand why collision resistance of a cryptographic hash function is not required for some applications. for example, if we store the trusted hash of a file or program, and later when we open the file and recalculate the hash and compare it to the trusted one, do we need it to be collision resistant?
|
I am wondering if someone can point me toward a block cipher that provides unconditional security for only a bounded number of encryptions. For example, you can encrypt $h > 1$ length $n>1$ blocks with unconditional proof of security, but encrypting more than $h$ blocks will break the security of the whole system (or ... |
Suppose I have a Pedersen Commitment $cm(x,r) = g^xh^r$ where $g,h$ are generators of group $G$ of prime order $p$. Based on $cm$, I want to create a commitment $cm' = (10\cdot x,r')$, without of course opening the original commitment, while knowing that $x$ is a relatively small value (e.g. less than 1 million) throug... |
Suppose a researcher discovers that $P=NP$, and has an efficient algorithm for some common $NP$-Complete problem. Given the implications for cryptography, what would be the most ethical way for them to reveal this knowledge to the world, without causing the downfall and destruction of technological civilization?
|
I am using the method presented in this paper to find the nonlinearity of the function
$$ f: \mathbb{F}^1_2 \to \mathbb{F}^1_2 \\ f(x) = x$$
The truth table is $f = [0 \space \space 1]$. Now, I read from the paper by Terry Ritter that
Nonlinearity is the number of bits which must change in the truth
table of a Boole... |
I have been doing some research on security, and I am confused on the bits of security vs collision resistance, and I was wondering if someone could clarify my understanding.
For instance, if you have an AES has a 128-bit block, being used with a 256-bit key, that provides 256 bits of security, because the key length d... |
I have been given a task to explain if - given a public key and a portion of a private key (over 300bits) with a remain unknown of 80 bits - the private key can be broken with an algorithm faster than with brute force.
I have been checking some stuff like index calculus and baby steps, but I don’t see any apparent diff... |
Securing and authenticating messages is easy thanks to computers. Lately I've been thinking about something like Vigenère cipher with a OTP, how secure it is, and how easy it is to implement without the aid of computers. However, one thing it doesn't provide is any authentication. Decrypting a Vigenère cipher with pen ... |
This post on geeksforgeeks.org about block cipher modes of operation, says that one of the advantages of the CBC is that it works well for input greater than b bits. I also saw that in the book "cryptography and network security by William Stallings". But neither of them said what exactly is that b bits. Can anyone exp... |
I have a rough idea of what is symmetric and asymmetric encryption, but I can't apply the idea to the SET protocol (Secure Electronic Transaction
Specification), so how the symmetric and asymmetric encryption are used in the SET protocol? Also I want to know more about the Preq messages.
|
By hand, I computed $f(x,y) = x \oplus xy = (0, 0, 1, 0)$ since, in ascending (lexicographical) order,
$f(0,0) = 0 \\ f(0,1) = 0 \\f(1,0) = 1 \\ f(1,1) = 0$
However, using the following code on sagemath
R.<x,y> = BooleanPolynomialRing(2)
B = BooleanFunction( x+x*y)
B.truth_table(format='int')
The answer is (0, 1, 0, ... |
In key management, one of the topics is key storage, I want to know where and how these keys(long-term and short-term) are stored?
For example I read that android password apps use KeyStore api to encrypt the the user passwords. I found the following steps for these kinds of apps:
1.Generate a random key when the a... |
So I'm trying to design/make my own encryption algorithm and I believe it to be ok. I'm not saying it's extra secure but I know it's not useless so, what I was wondering is if there are any specific tests I can carry out in order to try and get a better representation of how secure my algorithm is.
Here is some data fr... |
I've been looking all over the internet for an answer, and I must not know how to search because I've been really surprised that I haven't been able to find one. I'd also love to know what makes a block cipher a good candidate for being the basis of a hash function.
Thanks!
|
I am trying to do a known plaintext attack on DES-OFB through crack.sh. I have been having trouble lately. I keep getting blank text file back with no keys returned. Does anybody know if DES-OFB is supported by Crack.sh? I tried contacting them but did not get a response. Here is what I have last submitted.
$ ./des_kpt... |
To avoid the dummy padding block, CMAC uses 2 separate keys K1 & K2. If padding is required, the final block is padded & then XORed with K1. If no padding is required, then it's XORed with K2. I understand how this avoids the extension attack. However, at the verification side, how does Bob know whether the final block... |
In various messengers, we have end-to-end encryption, making it hard to know what the message said.
But do these messengers have to pad the message to some maximum length every time, in order to hide the length of the message?
In a block cipher, there is a minimum length that you have to pad to, right?
My question is h... |
(E,D) is a CPA-secure cipher defined over (K,M,C).H: C → T is collision resistant hash functions.
E(k,m):=E(k,m), H(c)), D=(k,c1,c2):=D(k,c1) if H(c1)==C2 otherwise Reject.
ps:the question is from the book <A Graduate Course in Applied Cryptography[Boneh]> exercise 9.2
can use cpa and cca to proof
|
One could use Falcon-512 for establishing a private and public key for an asymmetric context. Whereas in a symmetric context, we could use firesaber/saber/variants in order to obtain a shared secret that can later be used in an AES-GCM context. My question is: what encryption algorithm do we use when we want to encrypt... |
I’d like to decrypt a Playfair ciphertext; however, I need to find the key word first. Is it possible to use the Friedman test here to find the length of the key word?
My cipher has no J’s in it would this mean my Ni for J would be 0, or would I just leave the J column out?
|
According to Wikipedia block cipher modes of operation, simplified CFB supports random read access. but what about the real CFB where we have a shift register? below are pictures extracted from the book "Cryptography and Network Security by William Stallings" for CFB.
And
Does it support random read access? if yes, h... |
I need to sign some data using RSA. I have the digest that I can sign but the signature turns out different from the signing source data.
There is data in data.bin and its sha256 digest in digest.bin
$ xxd -p -c32 digest.bin
19d512fc649e1668eb84741284ad95ec03f3225719a83e40389dbade4eabe5ed
$ sha256sum data.bin
19d512fc... |
i'm studying RFC 5652 in order to know exactly how to encode/decode PKCS#7 ASN.1 data.
I don't understand how one can create a signature when the field "signedAttrs" is present:
The result of the message digest calculation process depends on
whether the signedAttrs field is present. When the field is absent,
the resu... |
EDIT:
My original problem was that if I have to encrypt large amounts of data, AES would expand the data even more, but this is not the case. This question states that AES does not expand data at all.
ORIGINAL QUESTION:
I have a list of data URIs containing image data that I need to encrypt and save to a file. On avera... |
In this article https://www.mdpi.com/2073-8994/12/10/1687/htm, specifically in the section 4.1 of the initialization phase,the following cryptographic hash functions have been chosen:
\begin{align}
h_1&: \mathbb G\to\mathbb Z_q^*\\
h_2&: \{0,1\}^*\times\{0,1\}^*\times\mathbb G\to\mathbb Z_q^*\\
h_3&: \{0,1\}^*\to\m... |
I have an exercise that says the following:
Let $p$ be an odd prime, and let $a$ and $b$ be generators $\mathbb{Z}_p^*$. Suppose that we have an efficient algorithm $A$ for computing discrete logarithms with base $a$. Show how this algorithm can be used to efficiently compute discrete logarithms with base $b$.
With co... |
I understand why $e$ must be co-prime to the totient of $N$, but I see in many explanations of RSA that $e$ should be less than $\varphi(N)$. Is there a reason for this? Is it for ease of a small number or is there some law in play here?
|
How the value of prime integer taken in Shamir's Secret sharing scheme. I have taken p which is greater than my secret and the no of shares. When i do calculation without modp then secret reconstruct happens successfully but when i do calculations modp then secret reconstruction is not happening.
Below is my example
Se... |
RSA as defined by PKCS#1v2.2 allows public exponent $e=n-2$. And textbook RSA was born with $e=n$ (see second bullet here).
Are these variants essentially as secure as (textbook) RSA with fixed $e$? With random $e$? Can we reduce the security of one to the security of the other, or of another variant of RSA?
Note: as ... |
I have a python project and for this project, I need to use Weierstrass-based ECDSA. On the web, I've found two libraries;
Library 1 is called fastecdsa:
Library 2 is called ECPy:
I couldn't see any security analysis and performance metrics for those libraries.
Is there any security and performance analysis of these... |
In cryptography, a block cipher mode of operation is an algorithm that uses a block cipher to provide information security such as confidentiality or authenticity. A block cipher by itself is only suitable for the secure cryptographic transformation (encryption or decryption) of one fixed-length group of bits called a ... |
If one have files $x_1, x_2, .., x_n$. What are the benefits of using hashing trees $-$ also known as Merkle trees $-$ (for example in git) instead of computing one hash value $h(x_1,x_2,..,x_n)$ ?
|
Let e be a bilinear pairing function and $g_1$ and $g_2$ be the generators of $G_1$ and $G_2$
Given $e(a,g_2^x), e(b,g_2^y), g_2^x,g_2^y$ is there a way to find out if $a = b$?
|
I've been looking into implementing cPace, and I saw that two cipher suites defined for it refered to draft-irtf-cfrg-hash-to-curve for its protocol definition. Part of cPace requires mapping a string hash to a point on the elliptic curve, so it uses the other standard's methods for doing that, in particular its choice... |
I have problem with multiplying bytes by 3 in MixColumns (as in Cryptography And Network Security)
$$\begin{bmatrix}02&03&01&01\\01&02&03&01\\01&01&02&03\\03&01&01&02\end{bmatrix}\times\begin{bmatrix}87\\6e\\46\\a6\end{bmatrix}\mapsto \begin{bmatrix}47\\37\\94\\ed\end{bmatrix}$$
87 = 10000111 => SHL = 00001110 => 00001... |
For odd prime $p$, I have been given a group $\mathbb{Z}_p^*$ of all invertible elements from $\mathbb{Z}_p$. Basically, $\mathbb{Z}_p^* = \{1,2,\ldots , p-1 \}$. I also have $a$ and $b$, which are two generators of $\mathbb{Z}_p^*$. My question is, by what modulo calculations with the discrete logarithm are performed ... |
I am trying to understand the security level of TinyJAMBU-128.
As shown in Table 4.1 page 12 of this document, TinyJAMBU-128 claims 112-bit security. However, it has a 128-bit key. How have we lost 16 bits of key? What is the obvious attack that has $2^{112}$ time complexity?
|
I was looking at the proof of a change of base formula for the discrete logarithm in this paper (page 6, 4th bullet indent).
In the intruduction, the paper states:
Let $F_q$ be a finite field of order $q$, where $q=p^n$ ($p$ prime), and let $F_q^* = F_q -\{0\}$. Given $g$, a primitive element of $F_q$, and an arbitrary... |
In NIST's Submission Requirements and Evaluation Criteria for the Lightweight Cryptography Standardization Process document it is stated that:
3.1 AEAD (Authenticated Encryption with Associated Data) Requirements
An AEAD algorithm shall not specify key lengths that are smaller than 128 bits. Cryptanalytic
attacks on t... |
The SIGMA protocol proposed in 2003 and used in TLS 1.3 and IKE stands for "SIGn-and-MAc" and can optionally protect identity using encryption.
The SIGMA-I variant illustrated below indicates that it uses a MAC-then-encrypt approach:
Here $\{\dots \}_{K} $ denotes encryption of the information between the brackets und... |
Reading through the NodeJS API docs I came across IV for the first time. From what I can tell it has the same role as a salt in password hashing? Are they equivalent?
|
I want to use AES CTR with a random IV, as this would be the easiest way for me. I have a cryptographic module, that supports true random number generation. Due to compatibility, I must use AES CTR. The module also supports a monolithic counter, but its max value is quite low and might be too low for my use-case.
RFC 3... |
Supposing a secure hash function $f(\cdot): \{0,1\}^* \rightarrow \{0,1\}^n$ satisfies pre-image resistance.
That is, given a hash value $y$ it should be difficult to find any message $x$ such that $y = f(x)$ within $O(2^{n})$ efforts.
The question is:
Given $y \in \{0,1\}^n$, if we find $x_1,x_2$ such that $f(x_1) + R... |
I want to implement AES-CBC mode with PKCS#7 padding, along with a way to validate a correct padding given the ciphertext. My initial understanding was that for an input of size n (where n is less than 16) PKCS#7 pads 16-n until the input becomes divisible by 16 (or equal to 16 in this case). But later I realized that ... |
I am wondering why CMS (PKCS#7) Signed Data contains always a different signature of the original data when the SHA256withRSA signature algorithm is used. (using Bouncy Castle by the way)
The SHA256withRSA is using the SHA-256 as a message digest algorithm and EMSA-PKCS1-v1_5 for encoding the message digest before sign... |
Let F be a secure pseudorandom function with 128-bit key and 256-bit block length. Which are the following functions G are secure pseudorandom generators? (Select all that apply.)
A. $G(x)=F_x(0...0)$, where $x$ is a $128$-bit input.
B. $G(x)=F_x(0...0)|| F_x(0...0)$, where $x$ is a $128$-bit input.
C. $G(x)=F_x(0...0... |
Stream ciphers are usually used for streaming data encryption, such as voice, and also for low layers data encryption. For example, MACSec uses AES-GCM encryption.
In L3 ad L4 security protocols (IPSec and SSL) block ciphers are preferred (AES-CBC).
Why are stream ciphers considered to be better than block ciphers in ... |
Consider the following ElGamal encryption (using a generator of $\mathbb Z^*_p$):
Key gen:
find a big prime $p$ and $g$ a generator of $\mathbb Z^*_p$.
choose $a\in \mathbb Z_{p-1}$ randomly and calculate $A\leftarrow g^a \bmod p$
the private key is $(p,g,a)$ and the public key is $(p,g,A)$
Encryption:
choose $b\in ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.