Skip to content
Snippets Groups Projects
Commit ef186f4b authored by Richard Henderson's avatar Richard Henderson Committed by Daniel P. Berrangé
Browse files

crypto/builtin: Split and simplify AES_encrypt_cbc


Split into encrypt/decrypt functions, dropping the "enc" argument.
Now that the function is private to this file, we know that "len"
is a multiple of AES_BLOCK_SIZE.  So drop the odd block size code.

Name the functions do_aes_*crypt_cbc to match the *_ecb functions.
Reorder and re-type the arguments to match as well.

Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Signed-off-by: default avatarDaniel P. Berrangé <berrange@redhat.com>
parent a2d76b6b
No related branches found
No related tags found
Loading
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