This repository has been archived by the owner on Mar 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: use library-provided AES key and block size macros
The file test_aes.c uses NUM_OF_NIST_KEYS for both the size of an AES key and the size of an AES block. The two happen to be the same since tinycrypt hard-codes AES-128, but that should not be assumed. To fix that, replace NUM_OF_NIST_KEYS with either TC_AES_BLOCK_SIZE or TC_AES_KEY_SIZE, depending on the case. Signed-off-by: Marti Bolivar <[email protected]>
- Loading branch information
Marti Bolivar
committed
Jan 26, 2017
1 parent
c7b1dca
commit e12af48
Showing
1 changed file
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters