Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid size of IV in cipher block modes #25

Open
azadkuh opened this issue Dec 3, 2019 · 0 comments
Open

invalid size of IV in cipher block modes #25

azadkuh opened this issue Dec 3, 2019 · 0 comments

Comments

@azadkuh
Copy link

azadkuh commented Dec 3, 2019

in cipher block modes: iv

The size of the IV should be the same as the cipher block size, e.g. 128-bits for AES, Serpent and Camellia.

not every block mode requires that the sizeof(iv) = sizeof(cipher block), for instance:

  • gcm and ccm accept variable IV size and some libraries suggest different recommended IV size (12bytes for [aes|aria|camellia]+[gcm|ccm] where block size is 16bytes)

  • aes+ecb may be used without any IV (size=0, IV is not being used internally), but other ciphers like [camellia|des|3des|blowfish|aria]+ecb requires that sizeof(iv) = sizeof(cipher block)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant