diff options
author | jsing <> | 2025-09-08 12:46:38 +0000 |
---|---|---|
committer | jsing <> | 2025-09-08 12:46:38 +0000 |
commit | 27935bc83495bf29902f88b49a448b5fba6cb8ac (patch) | |
tree | 52ce7a77bea87859671f865f9fdb9a70cb74bb4b /src/lib/libc/stdlib/labs.c | |
parent | 731703a848224f9ac266b1a4d87d2d47caf9c57d (diff) | |
download | openbsd-27935bc83495bf29902f88b49a448b5fba6cb8ac.tar.gz openbsd-27935bc83495bf29902f88b49a448b5fba6cb8ac.tar.bz2 openbsd-27935bc83495bf29902f88b49a448b5fba6cb8ac.zip |
Validate AES_set_{encrypt,decrypt}_key() inputs at API boundary.
Every aes_set_{encrypt,decrypt}_key_internal() implementation is currently
required to check the inputs and return appropriate error codes. Pull the
input validation up to the API boundary, setting key->rounds at the same
time. Additionally, call aes_set_encrypt_key_internal() directly from
aes_set_decrypt_key_internal(), rather than going back through the public
API.
ok tb@
Diffstat (limited to 'src/lib/libc/stdlib/labs.c')
0 files changed, 0 insertions, 0 deletions