[Cryptech-Commits] [sw/libhal] branch js_keywrap updated: Correct the limit on memory banks in the keywrap core.

git at cryptech.is git at cryptech.is
Thu Aug 16 21:40:57 UTC 2018


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch js_keywrap
in repository sw/libhal.

The following commit(s) were added to refs/heads/js_keywrap by this push:
     new ef175c1  Correct the limit on memory banks in the keywrap core.
ef175c1 is described below

commit ef175c10a47afba83935918e26900d38eec565cb
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Thu Aug 16 17:40:44 2018 -0400

    Correct the limit on memory banks in the keywrap core.
---
 aes_keywrap.c | 4 ++--
 1 file 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 */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list