Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
3 votes
Accepted

Statistical differences between ciphertexts generated by AES in ECB vs CBC mode?

I believe if you impose the restriction that there are no duplicate blocks, then the answer should be: no, you can't distinguish between them. If you were able to do so then I believe that would lead ...
swineone's user avatar
  • 870
2 votes
Accepted

Is using KDF more insecure that generating key directly? (AES 256 CBC)

KDF's aren't inherently insecure. However, password based encryption is generally thought to be insecure within many situations. Users do generally not enter passwords that have enough bits to avoid ...
Maarten Bodewes's user avatar
  • 92.9k
2 votes
Accepted

When using AES, is doing encryption followed by decryption with the same key efficient?

Is there a penalty cost by doing encryption and then decryption with the same key compared with two times encryption with the same key?.... I am assuming that using the instructions AES-NI is possible ...
kelalaka's user avatar
  • 48.7k
1 vote
Accepted

Is AES-CTR mode with predictable IV vulnerable to CPA attacks?

No, it is not. In the CBC mode, the predictable IV works since the first plaintext $P_0$ is x-ored with the nonce/IV and then encrypted $(C_0 = E_k(P_0 \oplus IV)$. The nonce/IV prediction helps play ...
kelalaka's user avatar
  • 48.7k

Only top scored, non community-wiki answers of a minimum length are eligible