summaryrefslogtreecommitdiff
path: root/aes-encrypt.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-06-25 22:35:05 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-06-25 22:35:05 +0200
commit47fd6eb8c6eda430b66de3cc2ac25499edb09c85 (patch)
treeac3271fe98b7d7dfeca57f712a17150c889d52d8 /aes-encrypt.c
parentdc2227ac29e5fe56c445dd4499dadd1af0441750 (diff)
downloadnettle-47fd6eb8c6eda430b66de3cc2ac25499edb09c85.tar.gz
New interface for AES-256. Also deleted old aes-meta.c.
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 c4e3713e..8d55ca18 100644
--- a/aes-encrypt.c
+++ b/aes-encrypt.c
@@ -63,3 +63,13 @@ aes192_encrypt(const struct aes192_ctx *ctx,
_aes_encrypt(_AES192_ROUNDS, ctx->keys, &_aes_encrypt_table,
length, dst, src);
}
+
+void
+aes256_encrypt(const struct aes256_ctx *ctx,
+ size_t length, uint8_t *dst,
+ const uint8_t *src)
+{
+ assert(!(length % AES_BLOCK_SIZE) );
+ _aes_encrypt(_AES256_ROUNDS, ctx->keys, &_aes_encrypt_table,
+ length, dst, src);
+}