We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
use go version - 1.4
According to the doc
either 16, 24, or 32
but in the NewCFBEncrypter and NewCBCEncrypter, just compare the length of iv with block.BlockSize(), the return is a const 16.
NewCFBEncrypter
NewCBCEncrypter
16
Because of the iv must be the same length as the Block's block size, the AES key must be 16 bytes?
the iv must be the same length as the Block's block size
The text was updated successfully, but these errors were encountered:
You've confused key and IV, they are not the same thing. key can be 16/24/32 bytes for AES, but IV must be 16-byte to match the block size.
http://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Cipher-block_chaining_.28CBC.29
Working as intended.
Sorry, something went wrong.
No branches or pull requests
use go version - 1.4
According to the doc
either 16, 24, or 32
bytes ...but in the
NewCFBEncrypter
andNewCBCEncrypter
, just compare the length of iv with block.BlockSize(), the return is a const16
.Because of
the iv must be the same length as the Block's block size
, the AES key must be 16 bytes?The text was updated successfully, but these errors were encountered: