Relative Content

Tag Archive for c++encryptionaescrypto++

Why am I getting this key size error in my AES GCM file encryption/decryption program?

I get the output of the key and iv, including the key and iv size which is 32 for key and 12 for the iv. However, at the setKeyWithIV line the error message is thrown. I think this is due to the key being cofused with the iv as the error says that 12 is not a valid key length. Im not sure how to fix this nor can i find any information about it on the CryptoPP site. When I Run the following program, I get the following error message:

some bytes are not being encrypted

I have code using the Crypto++ library where I am encrypting some bytes, I am having a problem where some bytes are not being encrypted.