diff options
author | Toomas Soome <tsoome@me.com> | 2021-12-26 00:22:32 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2022-01-25 21:22:13 +0200 |
commit | 5528cade4e43d027d848fdca33cccc9faa97823b (patch) | |
tree | eccab56dc58fa18b4d72b172d6b83cf9a9b60871 /usr/src | |
parent | f4203ebbfd2dce9537b7614c6e37240f406907e8 (diff) | |
download | illumos-gate-5528cade4e43d027d848fdca33cccc9faa97823b.tar.gz |
14388 des: with mismatched bound
Reviewed by: C Fraire <cfraire@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/common/crypto/des/des_impl.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/usr/src/common/crypto/des/des_impl.c b/usr/src/common/crypto/des/des_impl.c index c88d558b6d..171d2365f4 100644 --- a/usr/src/common/crypto/des/des_impl.c +++ b/usr/src/common/crypto/des/des_impl.c @@ -499,9 +499,12 @@ des_crypt_impl(uint64_t *ks, uint64_t block, int one_or_three) } #endif /* !sun4u */ +/* + * block and out_block are assumed to be uint8_t [DES_BLOCK_LEN]. + */ int -des3_crunch_block(const void *cookie, const uint8_t block[DES_BLOCK_LEN], - uint8_t out_block[DES_BLOCK_LEN], boolean_t decrypt) +des3_crunch_block(const void *cookie, const uint8_t *block, + uint8_t *out_block, boolean_t decrypt) { keysched3_t *ksch = (keysched3_t *)cookie; @@ -558,9 +561,12 @@ des3_crunch_block(const void *cookie, const uint8_t block[DES_BLOCK_LEN], return (CRYPTO_SUCCESS); } +/* + * block and out_block are assumed to be uint8_t [DES_BLOCK_LEN]. + */ int -des_crunch_block(const void *cookie, const uint8_t block[DES_BLOCK_LEN], - uint8_t out_block[DES_BLOCK_LEN], boolean_t decrypt) +des_crunch_block(const void *cookie, const uint8_t *block, + uint8_t *out_block, boolean_t decrypt) { keysched_t *ksch = (keysched_t *)cookie; |