summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/labs.c
diff options
context:
space:
mode:
authorjsing <>2025-09-08 12:46:38 +0000
committerjsing <>2025-09-08 12:46:38 +0000
commit27935bc83495bf29902f88b49a448b5fba6cb8ac (patch)
tree52ce7a77bea87859671f865f9fdb9a70cb74bb4b /src/lib/libc/stdlib/labs.c
parent731703a848224f9ac266b1a4d87d2d47caf9c57d (diff)
downloadopenbsd-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