diff options
author | Michael Brown | 2009-02-18 22:56:02 +0100 |
---|---|---|
committer | Michael Brown | 2009-02-18 23:17:41 +0100 |
commit | a3219b24a8ea4699e7b04cf1f1131aade9fcd855 (patch) | |
tree | df3d4cc515e6a02203e8560ff881351daf48111d /src/crypto/axtls_aes.c | |
parent | [crypto] Move AES_convert_key() hack into axtls_aes.c (diff) | |
download | ipxe-a3219b24a8ea4699e7b04cf1f1131aade9fcd855.tar.gz ipxe-a3219b24a8ea4699e7b04cf1f1131aade9fcd855.tar.xz ipxe-a3219b24a8ea4699e7b04cf1f1131aade9fcd855.zip |
[crypto] Split crypto_algorithm into {digest,cipher,pubkey}_algorithm
The various types of cryptographic algorithm are fundamentally
different, and it was probably a mistake to try to handle them via a
single common type.
pubkey_algorithm is a placeholder type for now.
Diffstat (limited to 'src/crypto/axtls_aes.c')
-rw-r--r-- | src/crypto/axtls_aes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crypto/axtls_aes.c b/src/crypto/axtls_aes.c index 278f9334..a19ad3c4 100644 --- a/src/crypto/axtls_aes.c +++ b/src/crypto/axtls_aes.c @@ -59,12 +59,12 @@ static void aes_cbc_decrypt ( void *ctx, const void *data, void *dst, AES_cbc_decrypt ( &aesctx->ctx, data, dst, len ); } -struct crypto_algorithm aes_cbc_algorithm = { +struct cipher_algorithm aes_cbc_algorithm = { .name = "aes_cbc", .ctxsize = sizeof ( struct aes_cbc_context ), .blocksize = 16, .setkey = aes_cbc_setkey, .setiv = aes_cbc_setiv, - .encode = aes_cbc_encrypt, - .decode = aes_cbc_decrypt, + .encrypt = aes_cbc_encrypt, + .decrypt = aes_cbc_decrypt, }; |