From f60585cc3e4dd441f239f41a5af7faadf7754ad8 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Wed, 28 Jun 2017 01:26:24 -0500 Subject: [PATCH] Add note about context size. --- aes.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aes.h b/aes.h index 9085e38..cb57b3e 100644 --- a/aes.h +++ b/aes.h @@ -21,7 +21,11 @@ struct aes_context { unsigned char reserved2[16*13]; }; -/* The context structure must be in bank 0, preferably page-aligned. */ +/* + * The context structure must be in bank 0, preferably page-aligned. + * Note that a 256-byte (one page) context structure is sufficient for + * AES-128 and AES-192. The full length is needed only for AES-256. + */ /* * AES key expansion functions