aboutsummaryrefslogtreecommitdiff
path: root/aes_keywrap.c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2018-08-16 17:40:44 -0400
committerPaul Selkirk <paul@psgd.org>2018-08-16 17:40:44 -0400
commitef175c10a47afba83935918e26900d38eec565cb (patch)
tree4a5dd49df95a6f17f465864b380fd39b681361d8 /aes_keywrap.c
parent255ebc59bf1000af6715217679bc82d5bc4d536b (diff)
Correct the limit on memory banks in the keywrap core.
Diffstat (limited to 'aes_keywrap.c')
-rw-r--r--aes_keywrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aes_keywrap.c b/aes_keywrap.c
index 77146e6..8ef018b 100644
--- a/aes_keywrap.c
+++ b/aes_keywrap.c
@@ -144,8 +144,8 @@ static hal_error_t do_keywrap_core(const hal_core_t *core, uint8_t * const C, co
hal_assert(core != NULL && C != NULL && n > 0);
- /* The core is currently limited to 4 banks of 512 bytes, which is way too small. */
- if (n == 0 || n > 4 * 64)
+ /* The core is limited to 128 banks of 512 bytes/64 blocks */
+ if (n == 0 || n > 128 * 64)
return HAL_ERROR_BAD_ARGUMENTS;
/* write the AIV to A */