New answers tagged

5

You did not clearly read the documentation of your library. With the cipher.encryptor() you open streaming and it is only finalized with the finalize() method. This operation is important to process large files and streamings. One can divide the input into chunks, call update() method many times to process chunks. One can call this as a session of the $(IV,...


4

You're encrypting only one message here, namely secret messageI'll give you 100 and that's my last offer. You chose AES-CTR without authentication. In this mode, AES is used to generate a stream of pseudorandom bits that is simply xored with the plaintext bits one by one. So when you pass the first 14 bytes of the ciphertext to the decryption function, you ...


2

First of all, you seem to be talking about semantic security for a cipher. So I'll answer from that perspective. There is no security requirement for a MAC to be indistinguishable for identical messages after all. So, from that perspective, your intuition is correct. However, generally we perform encrypt-then-MAC, and in that case the IV should be included ...


Top 50 recent answers are included