instruction
stringlengths
32
27.2k
What is the size of key material required for generating MAC keys, encryption keys and IV when use TLS_DHE_RSA_WITH_AES_256_CBC_SHA ? How to calculate it?
Up to now, the pairs of strings that create an MD5 collision that have been discovered all contain non-ASCII (binary) characters. Are there two known ASCII-only strings which have the same MD5 hash value? For instance the set of characters [0-9A-Za-z]?
I have been studing ECDSA signature/verify for a while. By my understanding: the standard ECDSA signature/verify process (which we find on text book) are like below: - A sender combines message and its ECC public key (pk), do hash, then using ECC sk (private key) to generate signature; it then append the signature wit...
Let $S$ be the set of $k$ congruences of the type $g_{i}^{x_i} \equiv h_i \pmod{n_i}, \quad \forall i,1\leq i \leq k$ What would be the best way to describe such set $S$ with a term in literature. The goal is that the reader immediately thinks about this set of congruences when reading the term. Would it be a collecti...
I want to "translate" a text so that its encrypted form should be pronounceable text. Is there any crypto technique that can make encrypted text look as another language? (yet, difficult to decrypt).
Sorry if I'm not using the right terminology, as I'm new to crypto. I want to know the most effective way to protect a database against brute force attacks in the case of a small dictionary. For instance, suppose I have a user database, and that I want to protect a certain attribute/field of my users that has a small c...
I understand that RSASSA-PSS is not deterministic. But I see that in message encoding, MGF and SHA functions are deterministic. So even if I keep default salt length, it produces different signature. Where is the randomness introduced?
I am considering the SIS problem of finding $x\in \mathbb{Z}^m$ such that for random $A\in\mathbb{Z}_q^{n\times m}$, $Ax=0$ and $\lVert x\rVert < \beta$ for some $p$-norm and bound $\beta < q$. High density is when $n\log_2(q) \ll m$, or more generally when input is significantly larger than output. General methodology...
I'm implementing Pollard's kangaroo algorithm as described here. Wikipedia's description of the protocol says that you should have "a pseudorandom map $f:G\rightarrow S$." Does anyone know what happens if you weaken the properties of the map? I'm trying to implement this (don't worry, it's for research--nothing nefari...
I just came to learn about Deffie Hellman Key Exchange. And a little bit about RSA. I came to DH from something about SSL. From what I understood before is that SSL uses DH and TLS uses RSA, but after some research, came to know DH and RSA are both secure/insecure, slow/fast in their own ways, and Both SSL and TLS can ...
I want to encrypt a list of unique values and I want the property of when I encrypt the same value I get the same ciphertext (determinism). The adversary only observes the ciphertexts of a unique set of plaintext values. In this context would the following encryption algorithm be secure: I generate the sha256 hash of ...
My use case guarantees that all plaintext values are unique. In this case, is it safe to use a fixed IV with AES-GCM to carry our encryption/decryption?
I recently came to know that there is a notion called "information-theoretic private information retrieval". The assumption is that multiple non-colluding servers have same data set and a client wants to retrieve a specific element (or multiple elements) in the data set by taking location(s) or keyword(s) as input with...
Why perfectly secrecy needs the key space to be as large as the message space? I think the definition (1) $\Pr[M=m\mathrel|C=c]= Pr[M=m]$ still holds. Let $M(c)$ be the set of messages that can be decrypted from $c$. We know that $|M(c)| \leq |K| < |M|$ where $K$ and $M$ are the key and message space, and we can infe...
If I want to verify a root of a polynomial that has degree $n$, I must to compute the $x^n, x^{n-1}...x, 1$.It seems to be inefficient. Is there any method to do this without computing many power?
This is so trivial that authors usually don't bother to give an explicit proof. But for me there is some vagueness. We say that two ensembles $X_n$ and $Y_n$ are statistically close, if $$ \Delta(n) = 1/2 \sum_{\alpha}|\mathbb{P}[X_n = \alpha] - \mathbb{P}[Y_n = \alpha]| $$ is negligible in n. The probability is taken...
For my networks project I have decided to implement a youtube-based secret key generator used in creating a self-synchronizing stream cipher hash function. Basically all the youtube video comments corresponding to a pseudo-random number being input to the search bar will be stored in a csv file, a file descriptor moved...
Are there any known and feasible ECDSA attacks on secp256k1 which can reduce the bit security of the algorithm? For example from 256 bits of security down to 192 bits?
I'm trying to confirm a vulnerability in a signing scheme I'm helping with. To do this I need to simulate a rogue key attack on a BLS aggregate signature using the golang bn256 library https://godoc.org/golang.org/x/crypto/bn256 This requires computing the inverse of a public key. I'm not a crypto expert but do have a ...
Statistical closeness implies computational indistinguishability was recently posed. It revolves around a numeric value $\Delta(n)$ of the statistical difference between a pair of distribution ensembles, as:- $$ \Delta(n) = 1/2 \sum_{\alpha}|\mathbb{P}[X_n = \alpha] - \mathbb{P}[Y_n = \alpha]| $$ But statistical dista...
I am developing for a low-power embedded system. It has two ARM9 processors at 48 MHz each. One of the processors has access to 6 MiB of "fast" memory as well as access to 26 MiB of "slow" memory. The other processor does not have direct access to memory, so it's going to be pretty much useless in this scenario (I keep...
S2K, specified in RFC 4880 § 3.7.1.3, is a KDF designed for the OpenPGP standard which concatenates a password and salt and feeds this, repeating, into a hash function for a configurable number of bytes. PBKDF2, specified in RFC 2898 § 5.2, is a KDF which uses a hash function in HMAC mode and iterates it a configurable...
Been playing around with the inner workings of onion routing and I have a problem. If I wanted to send the 2nd node of a relay network an ephemeral ECC public key, it has to go through node 1, so that node 2 does not know the IP of the client. Once the shared secret is calculated, an encrypted connection from the clien...
Assuming I encrypt data with AES-128 and a random 8-byte key x in the following way: ciphertext = AES_128_ECB_ENC(plaintext, x||x) So basically taking the 8 byte key twice to form the 128-bit AES key. Would it make it easier to guess x than the naive (max) $2^{64}$ tries, assuming you know a single plaintext-ciphertext...
There exists a FOX family of block ciphers (Wikipedia article: IDEA NXT). This cipher uses a function called "f32" which operates on three 32-bit words and outputs one 32-bit word. This function exhibits very high diffusion properties and builds the core of the corresponding variant of the cipher. Do there exist othe...
It is only recently that I entered cyber security field.. and one of the main foundations is nothing but Cryptography. Something which always fascinated me was the 'Chain of Trust' which is holding on crucial Mathematical theories on which robust protocols such as TLS are built. I decided to demystify this subject by g...
My understanding is that the sampling precision in Gaussian Noise sampler is related to security. But not sure about why is that? I read that when the samples are floating-point numbers and precision after the decimal point is equivalent to 72 bits that can be correlated to 128-bit security. However, certain schemes u...
I have no mathematical knowledge about this, but I just read in RFC 7748 the following: Designers using these curves should be aware that for each public key, there are several publicly computable public keys that are equivalent to it, i.e., they produce the same shared secrets. Thus using a public key as an identifi...
in case i cannot do PSK (give the same key to both sides via physical means). i saw tls1.3 still support DH (doesnt matter that it is DHE or ECDH). isnt that makes it a weak key exchange? do they rely on seperate key exchange algo.? (like PAK - x.1035)
I understand that the discrete log problem is defined as $G^y \bmod p = x$ Speaking generally, $G$ here is a generator for the group $\mathbb{Z}_p^*$, where $G$ is able to generate each element in the group for a given prime modulus. My question is, in the context of elliptic curve cryptography, is the group the entire...
I'm developing a network where two parties that want to join both compute ephemeral ECC keys for a key exchange, to create an encrypted connection. I plan to authenticate these keys by signing them with a pre-shared ECC key. However, how should these PSKs be transmitted in a secure way to prevent MITM attacks that chan...
I've been studying homomorphic encryption. From their instantiations, i read Labeled Homomorphic Encryption (labHE) scheme 1 where it combines the notion of homomorphic encryption with labeled program. Can someone please explain to me: What is a labeled program, and it's implications on crypto. Furthermore, I need to ...
I was thinking last night about whether or not a HMAC-Encrypt-HMAC would be secure if you used the same HMAC key. Here is the full recipe: Compute a HMAC on the data to encrypt, and append it to the data. Encrypt the data with AES_CTR_256. Compute another HMAC, this time on the encrypted message+HMAC combo, and append...
All practical probabilistic proof/argument systems I know of are based upon polynomial identity testing in finite fields. These constructions include QAPs, STARKs, GKR and many variants. In particular, they all rely on the Schwartz-Zippel lemma, and thus they all take place in a polynomial setting. There are constructi...
Which HMAC scheme is more secure? Or are they of the same level of security? Scheme One Compute a HMAC on the data to encrypt (cleartext/plaintext) Encrypt the data with AES_CTR_256, and append above HMAC to end of ciphertext Scheme Two Compute a HMAC on the data to encrypt (cleartext/plaintext) Encrypt the data ...
Imagine that I want to change the key in order to prevent side-channel attacks on key and to protect against big load on the one key. It is desirable that key change procedure would look like random function from key space to itself. I want to consider the function of the type: $$ F : KeySpace \to KeySpace$$ $$ F(k) =...
In some homomorphic encryption schemes (e.g Multi-key fully homomorphic encryption report, Computing Blindfolded: New Developments in Fully Homomorphic Encryption), it defines an encryption key, a decryption key, and an evaluation key to perform an evaluation f on the encrypted data. Could you please explain what is th...
I'm looking for a generalisation of Yao's millionaire problem: $N$ parties want to know whether they are the richest one. If they are not, then they just know they are not the richest party - but do not know the identity of the richest one. Ideally, in case of equality, all richest members would know they are the riche...
As I understand it, a hashing algorithm is some kind of encryption, just a specific kind of it. So is it wrong to say "I encrypted this value." if I "only" hash it? I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?
I plan to do a clean install of ArchLinux with Full Disk Encryption (with LUKS) but I'm not sure to understand the default KDF choice (PBKDF2+SHA-256). I didn't manage to find any pieces of evidence that make PBKDF2 more recommendable than Argon2id. Can someone explain to me ? In the cryptsetup FAQ, the maintainer says...
Let PKE $\Pi' = (Gen', Enc', Dec')$ and it is secure in the sense of $S'$. Let PKE $\Pi'' = (Gen'', Enc'', Dec'')$ and it is secure in the sense of $S''$. $S'$ and $S''$ may be separation which means that $S' \not\Rightarrow S''$ and $S'' \not\Rightarrow S'$. For example, $S' = \text{IND-CCA}, S'' = \text{NM-CPA}$ or $...
I am using Argon2 to convert an ECDH exchange result into the correct format for AES-256 encryption. However the library that I am using for Argon2 requires a salt. Are there any weaknesses of using a static, hard-coded salt for the Argon2 key format conversion?
So my question is as follows: We know that we can prove in zero-knowledge equality of discrete logs, for example to prove equality of committed values we can prove in ZK for $g^xh^y$ and $g^{x'}h^{y'}$ that $x = x'$ using a Sigma protocol. Is there a way to prove equality when one committed value is the output of a has...
Design, Analysis and Application of Embedded Resistive RAM-based Strong Arbiter PUF Can anyone explain the Global column and Local Column and the fig.5(a) and how MUX logic is related to fig. 5(a) and how the formula for the configurable stage in Table 2 is related to fig.6.
I am reverse engineering the firmware of a particular router/modem. I am focusing on the functionality to export the router configuration. I an searching for a way to decrypt the configuration backup file. I have the source code of the open source parts of the firmware and the binaries of the closed source parts for an...
Let's say we have a point on an elliptic curve $p=(x, y)$ which is not the point-at-infinity. Can there be some other point $\hat{p} = (\hat{x}, y)$ that is also on the curve and that has the same y-coordinate, but a different x-coordinate (i.e. $x \neq \hat{x}$)? Clearly, if the elliptic curve is over the real numbers...
The ATmega2560 is slow - it's a single core, 16MHz 8-bit AVR. Despite that, I need to use some encryption on it, and since it is limited to a few blocks, AES-256 can be used. However, the key derivation is a problem. A computer can easily do a PBKDF2-HMAC-SHA256 with a million iterations in less than a few seconds. The...
I know that modern wpa2 wifis use AES key to encrypt data. a client who has the password, can obtain psk/pmk use it for handshaking . so what is the purpose of ptk, and how AES key is generated?
I've read/skimmed a few documents about the AES family of encryption, but haven't seen anything about what exactly it protects against. There are many ways to "encrypt" things, and not all of them provide the same set of guarantees. For example: Can an attacker, knowing the plaintext, alter the ciphertext in a way s...
I have a "Encrypt-then-Mac" C# implementation of "AE_AES_256_CBC_HMAC_SHA_512" WITHOUT associated data, only authentication. In my code, I follow these steps to encrypt strings: Generate a crypt random salt of 32 bytes using RNGCryptoServiceProvider; Generate an auth random salt of 32 bytes using RNGCryptoServiceProvi...
I'm studying the CL (Camenisch-Lysyanskaya) signature: Jan Camenisch and Anna Lysyanskaya, A signature scheme with efficient protocol, in proceedings of SCN 2002. However, I cannot understand the relationship between special RSA modulus and quadratic residue. What is the relationship between Special RSA modulus and qu...
I am a newbie to crypto and just one quick question on the s-box and p-box of DES. I understood that the s-box is where the security comes from and NSA has somehow decided how it should be filled in. But my question is that, can we really change the content of the s-box or p-box? Would that break the security somehow?...
This question is related to my other question, but also this entropy calculation question as well as this article about PBKDF2. It may also be considered as a duplicate of this question, although in our current case the password's entropy isn't as high. If a low iteration count is used, it can allow for fast brute-...
Does anyone know of any VDF, that can be calculated by someone holding some private key in t sequential steps and is quickly verifiable in exponentially reduced step by anyone using some public key and the proof that does not leak the key ? Like opposite of RSA timelock question. A link to some paper would help. can so...
For example, given $E(m_1)$ and $E(m_2)$ to the cloud. How does it calculate $E(m{_1}^{m_2})$? Is it related to the claim that any computable function can be represented as a circuit containing or xor (additive) and and (multiplicative) gates? If so, what's the approach?
Note: I realize in ChaCha20 the nonce should be random and unique each time follow certain constraints but am trying to determine whether there could be a safe way to use it just once if other constraints were in place as follows: Could the nonce be entirely deterministic and derived from the key so long as the key is ...
From this link Generation of a cyclic group of prime order we know how to generate a prime order group. This illustrates why a prime order group is important. But why is modulus a prime number also important? In the theory of RSA, the modulus $N=pq$, and $\operatorname{totient}(N)=(p-1)(q-1)$, if we can find a factor...
Which version of ChaCha is more secure? XChaCha20-Poly1305-IETF ChaCha20-IETF-Poly1305 ChaCha20-Poly1305 I am looking for 256bit strength for large datasets. I am having trouble disambiguating the delta between these ciphers available in libSodium.
Assuming that I am able to read the plaintext as well as the output of round 1 of an AES-128 encryption: Is it possible (if yes: how?) to obtain the RoundKey with a lower complexity than brute-force search? Would this key be unique? (I currently think so)? The output of round 1 is: r1out = MIX(SHIFT(SUB(plaintext xor r...
Most MACs other than GMAC (and Poly1305?) are not parallelizable. Examples include CMAC and HMAC. Could these be securely parallelized by computing multiple MACs in parallel and then combining the result? This is sort of academic, just curious though. Let's say you have a message being that you split into four parts su...
In AES, the encryption and decryption functions ordered in a symmetric way, I mean the same order of functions are used inside the round structure of both encryption and decryption (subbytes, shiftrows, mixcolumn, addroundkey) (see The Design of Rijndael List 3.8 page 49) but how does it actually make the algorithm bet...
I've just been looking into RSA encryption with C++ and am wanting to make a program that can en/decrypt files of my own custom file extension. Obviously I need to choose two primes numbers (for my p and q values) to encrypt and decrypt this file, but I am curious as to how I could stop these values being pulled out of...
Searchable encryption can be separated into sequential scan and indexing. Besides increasing search speed, why do we use indexing in searchable encryption? As an end-user, we do not usually make a keyword list of our document. So, if we don't build an index for our document, is there a method to do searchable encryptio...
In this answer, it is mentioned that Easier instantiation of random oracles. Some security proofs rely on the so-called random oracle model to prove the security of a given scheme. Normally you'd use some artificial construction around a fixed-size hash function to get the desired output size, but with XOFs you can j...
Is there a gap between classical attacks and quantum attacks against some post-quantum security assumptions? (I'm particularly interested in asymmetric cryptography.) I understand that there is no polynomial-time algorithm against these problems (otherwise it will no longer be considered as a PQ security assumption). B...
In wikipedia on Digital_signature: but rather, the message to be signed is first hashed to produce a short digest, that is then padded to larger width comparable to N, then signed with the reverse trapdoor function I could not find the term reverse trapdoor function neither by web search not here on SE, what does...
I am looking for a proof of knowledge as such: $PK\{ (x,r) : C = g^xh^r \land V = g^x\}$ Where $C, V, g$ and $h$ are public information and $x$ and $r$ is known only to the prover. I.e. I have a Pedersen commit and a public key and I want to prove in zero knowledge that the committed value is the private key. Is there ...
The precomp.c file in Kyber NIST round 1 submission has three tables, could you please let me know how to generate these three tables? If I want to understand how these tables work, which paper should I read? The code with the constants in the tables follows below: /* Precomputed constants for the forward NTT and inver...
In a recent press release issued by Treadwell Stanton DuPont, the claim is made that their research laboratories have successfully broken all 64 rounds of the SHA256 hashing algorithm. They further claim that they achieved this milestone a year ago (late 2018). "While we have successfully broken all 64 rounds of pre-i...
I am currently trying to create a secure key exchange between two parties. I have a good implementation of PGP that works well for my app, but my DH is really slow and doesn't work well; so I was thinking that maybe I could perform the key exchange with PGP. My idea is this: Party 1 -> public key -> Party 2 Party 2 -...
I have three nodes in a network: $\mathcal{S}$,$\mathcal{T}$,$\mathcal{R}$. $\mathcal{S}$ supplies data $x$ to $\mathcal{T}$. $x$ is signed so $\mathcal{T}$ knows it actually comes from $\mathcal{S}$. $\mathcal{T}$ computes $f(x)=y$ and sends $y$ to $\mathcal{R}$. $\mathcal{R}$ uses the result $y$ in some computation....
There are a number of pages on web to tell how to sign apk file for Android. But none I've found telling how it works under-the-hood. The (e.g from here https://github.com/appium/sign) command is java -jar SignApk.jar testkey.x509.pem testkey.pk8 my.apk my.s.apk and it has two files with keys - .pem (certificate) and ....
After reading many posts, I am still confused about the differences between these two. Let me know if my understanding is correct: MAC is encrypted string that is generated using a secret key and a message, and it's used to check no-repudiation. HMAC is a MAC that is generated using a hash function and it's used to the...
Is there a way to commit to a degree of a polynomial without committing to every single one of its coefficients? The problem I am trying to solve is to prove that two polynomials are the same in a more efficient way than to prove that every coefficient of the two polynomials is the same. My idea is that if you can pro...
Alice can retrieve asymmetric encrypted messages (let's call one of them C1 and the Message itself M) for her from an untrusted environment (let's call it Eve). She owns her private key K1 and has published her public key P1. Bob is just like Alice and uses Eve's platform. He owns his private key K2 and his published p...
Is there a way to take key material (for example 256 random bits for an AES key) and "expand" it over to a larger amount of data? Or can I go the opposite way and take a large amount of random data and Xor it down to 256 bits and use that (this looks like secret-sharing, but I do not know if anything changes because th...
I don't know how blockchain keypairs are programmatically generated, and equally important - how they are able to verify their keypair using a private key to a remote server - while keeping their private key entirely private. How are blockchain keypairs generated, and private keys kept hidden by the remote server that ...
In the Key encapsulation article of Wikipedia, the RSA-KEM is described shortly, as follows; Generate a random element $1<m<n$ then drive your symmetric key by $M=\text{KDF}(m)$ Then compute the ciphertext and transmit $c \equiv m^e \pmod{n}$ The reciever decrypts $m \equiv c^d \pmod{n}$ and apply $M=\text{KDF}(m)$ t...
Prove that for any symmetric-key encrytion scheme $\Pi=(Gen, Enc, Dec)$ with message space $M$ and key space $K$, there exist $m_0, m_1 \in M$ such that $\Delta(Enc(K, m_0), Enc(K, m_1))\ge 1-\frac{|K|}{|M|}$. I know that $\Delta(X,Y)=\max\limits_{T\subseteq S}(Pr(X\in T)-Pr(Y\in T))$, but I have no idea about the ine...
I had this article given to me by my teacher, and I would like to enhance it. It's titled Modified El Gamal Algorithm for Multiple Senders and Single Receiver Encryption. I planned on having the algorithm accommodate multiple senders and receivers. But I got really confused, and I would like to ask for some help in the...
In Trapdoors for Hard Lattices and New Cryptographic Constructions by Gentry et. al, they discuss SamplePre and in Trapdoors for Lattices: Simpler, Tighter, Faster, Smaller by Micciancio et.al, they discuss SampleD. But still, I cannot understand whether the functionality id same or different. Can you explain?
I generated a 2048-bit RSA key with ssh-keygen. When running: openssl rsa -in key -noout -text The result is: Private-Key: (2048 bit) modulus: 00:cb:df:46:64:71:ec:0e:f2:40:d2:65:da:6f:17: 80:70:ad:30:31:eb:c4:a1:ff:f5:ec:d3:c7:f1:b1: af:bc:e9:98:56:df:ee:d6:c3:d0:1c:1b:67:9a:a8: ac:46:32:22:f0:97:10:2...
This is more steganography, not cyptography, but I don't know where else to post this. Are you familiar with ELS (Equidistant Letter Sequence) codes that some have said are found in the Bible? I know the Bible codes are probably fake, but I am wondering if it is possible for humans to encode ELS codes in natural soundi...
I'm given a Plaintext/Ciphertext pair, a Ciphertext to break, and the IV. One thing of note is that the same IV is used for both DES Encryptions, so $$C = E_{K_2}(E_{K_1}(P, IV), IV)$$ I have limited resources, so brute-forcing a Meet-in-the-Middle attack of complexity $2^{56}$ is unfeasible. What other options do I ha...
RC4 uses two 8-bit indices. One, $j$, is key-dependent and secret, and the other, $i$, increments by one for each byte output. The $i$ index is typically considered to be public, but what if the RC4 keystream starts at an unknown position, putting $i$ anywhere in the range of $0$ to $255$ with equal probability? I can ...
The Pollard p-1 factorization method states if $\gcd(2^{B!}-1,n)=p$ where $p>1$ and $B$ bounds the prime factors of $p$, then $p$ is a prime factor of $n$. Shouldn't it be $\gcd(a^{B!}-1,n)$ for any arbitrary $a$? Why are we choosing $a=2$? Is it because it is computationally cheaper to compute powers of $2$? ( left ...
What is the difference between "asymmetric cryptography" and "asymmetric key cryptosystem" terminology?
As it known, Homomorphic encryption can be used for privacy-preserving outsourced storage and computation. In various constructions, the computations are represented as either Boolean or arithmetic circuits and can use garbled circuits. My problem is that I couldn't find explicit documentation on how to outsource the f...
I'm interested in some sort of "compendium" on lattice-based crypto. There are a bunch of maths behind FALCON and other stuff. A lot of articles are devoted to lattice crypto, but not of them are of paramount importance. The other problem is that there are papers that are obviously influential, but they are hard to und...
I've 8 bytes before encryption (for example: 01 02 03 04 05 06 07 08) and 8 bytes after DES encryption: 08 07 06 06 05 04 03 02 01. Is it possible to calculate the key?
Are there public key schemes that have perfect secrecy? The perfect secrecy notion is defined for symmetric key encryption. If P is a message and C the corresponding ciphertext then the cipher has perfect secrecy if pr(P|C)=pr(P). This equivalently means in terms of entropy that the conditional entropy H(P|C)=H(P). Ori...
I'm a Mathematics Major, and I currently enjoy the mathematical aspects of cryptography. I intend to pursue a career in cryptography research. https://www.csit.gov.sg/join-us/job-opportunities/job-detail/cryptologist However, although I'm comfortable with the mathematical aspects of it, I lack sufficient training in ...
I'm taking a course on cryptography and I have some confusions concerning the materials in our notes. Say we have the field $GF(2^8)$, we create a substitution algorithm (the S Box in AES) so we need a bijective function that maps from $GF(2^8)$ onto itself. The total number of one-to-one functions is 256! because $| ...
While doing the Kasiski examination I came to a problem. If there is the following group of letters in the cipher: AA and later on a group AAA is found. Does it count as two repeats or just one? And if one, then when does it start, with the first A or with the second?
Is there any reason to choose, say ECB over CBC? Or GCM over AEX? Or CTR over CFB? Is there a best AES mode of operation? And, when required, which is the best padding to use?
Is it possible to find what is the key with only plaintext and ciphertext? For example, My plaintext is: hi My ciphertext is: 0x1db5
I understand that WAGE cipher uses duplex/sponge mode with stream based cipher for Authenticated encryption with associated data (AEAD) and NORX uses duplex/sponge mode with LRX structure , so , Is it possible to design AEAD cipher using duplex/sponge mode with ARX structure (Chacha20)? what are the advantages/disadv...
So before I start I'm learning how this algorithm still works so my first question is for the x,y, and z steps (of getting the keystream I believe). The formula is t = y 20 XOR y 21 for y. There is one for x which I believe is the XOR of 13,16,17, and 18. Then z is the XOR of 7,20,21, and 22. Now my question is do thes...
Can anybody explain to me why AES in XTS mode is supposedly insecure for data stream encryption? I have been unable to find a clear explanation for this.
I know we should ideally never reuse the IV (Depending upon the mode of encryption used), but is it possible to have a protocol which uses the same IV for the message stream and is as safe as one which has a new IV every time?