summaryrefslogtreecommitdiff
path: root/aes-encrypt.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-06-25 22:19:36 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-06-25 22:19:36 +0200
commitdc2227ac29e5fe56c445dd4499dadd1af0441750 (patch)
treebfbdd403c46c0e7b458f0b2abad6f2fa267c8b5a /aes-encrypt.c
parentbb2131cbf83b57550d3af9d7c66e52c61db8cf60 (diff)
downloadnettle-dc2227ac29e5fe56c445dd4499dadd1af0441750.tar.gz
New interface for AES-192.
Diffstat (limited to 'aes-encrypt.c')
-rw-r--r--aes-encrypt.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/aes-encrypt.c b/aes-encrypt.c
index 643276af..c4e3713e 100644
--- a/aes-encrypt.c
+++ b/aes-encrypt.c
@@ -53,3 +53,13 @@ aes128_encrypt(const struct aes128_ctx *ctx,
_aes_encrypt(_AES128_ROUNDS, ctx->keys, &_aes_encrypt_table,
length, dst, src);
}
+
+void
+aes192_encrypt(const struct aes192_ctx *ctx,
+ size_t length, uint8_t *dst,
+ const uint8_t *src)
+{
+ assert(!(length % AES_BLOCK_SIZE) );
+ _aes_encrypt(_AES192_ROUNDS, ctx->keys, &_aes_encrypt_table,
+ length, dst, src);
+}