Skip to content
Snippets Groups Projects
Commit 3a661f1e authored by Daniel P. Berrangé's avatar Daniel P. Berrangé
Browse files

crypto: add sanity checking of plaintext/ciphertext length


When encrypting/decrypting data, the plaintext/ciphertext
buffers are required to be a multiple of the cipher block
size. If this is not done, nettle will abort and gcrypt
will report an error. To get consistent behaviour add
explicit checks upfront for the buffer sizes.

Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
parent eb2a770b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment