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

Random initialization Vector (IV) with Cipher Block Chaining (CBC) Mode algorithm #3

Open
GokhanArik opened this issue Sep 24, 2015 · 1 comment

Comments

@GokhanArik
Copy link

byte[] iv = new byte[writer.getBlockSize()];

I was told that we should use random number for iv size. Do you confirm that? What should be limits of the random size?

@sveinungkb
Copy link
Owner

The IV is hashed with SHA-256, so regardless of what you pass in it will be 256 bits which is the entropy size for the IV for this AES configuration.

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

2 participants