diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-06-25 21:40:49 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-06-25 21:40:49 +0200 |
commit | bb2131cbf83b57550d3af9d7c66e52c61db8cf60 (patch) | |
tree | 0a68cbb78048ef6b504c77e63b8a38ac6d1eb40b /aes-decrypt.c | |
parent | b27be3a688b814832b965b15680f9ccd053a0753 (diff) | |
download | nettle-bb2131cbf83b57550d3af9d7c66e52c61db8cf60.tar.gz |
New interface for AES-128.
Diffstat (limited to 'aes-decrypt.c')
-rw-r--r-- | aes-decrypt.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/aes-decrypt.c b/aes-decrypt.c index d08eac34..e8696bf5 100644 --- a/aes-decrypt.c +++ b/aes-decrypt.c @@ -345,3 +345,13 @@ aes_decrypt(const struct aes_ctx *ctx, _aes_decrypt(ctx->rounds, ctx->keys, &_aes_decrypt_table, length, dst, src); } + +void +aes128_decrypt(const struct aes128_ctx *ctx, + size_t length, uint8_t *dst, + const uint8_t *src) +{ + assert(!(length % AES_BLOCK_SIZE) ); + _aes_decrypt(_AES128_ROUNDS, ctx->keys, &_aes_decrypt_table, + length, dst, src); +} |