summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/cipher_method_lib.c
diff options
context:
space:
mode:
authortb <>2023-12-20 10:35:25 +0000
committertb <>2023-12-20 10:35:25 +0000
commita9a5598c7249fefcb98e69b5a75ee16d3c01d5ee (patch)
tree4b8deba64a935d81b714b45fdd6ed99942ce2021 /src/lib/libcrypto/evp/cipher_method_lib.c
parentc0cd30c4ff668c8c13b4ff65ea9d6c956cb08b27 (diff)
downloadopenbsd-a9a5598c7249fefcb98e69b5a75ee16d3c01d5ee.tar.gz
openbsd-a9a5598c7249fefcb98e69b5a75ee16d3c01d5ee.tar.bz2
openbsd-a9a5598c7249fefcb98e69b5a75ee16d3c01d5ee.zip
Simplify EVP_DecryptUpdate() a bit
This time the block size is called b and there's some awful length fiddling with fix_len, which until recently also served as store for the return value for do_cipher()... If we land on a block boundary, we keep the last block decrypted and don't count it as part of the output. So in the next call we need to feed it back in. Feeding it back in counts as output written this time around, so instead of remembering that we need to adjust outl, keep a tally of the bytes written. This way we can also do some overflow and underflow checking. ok jsing
Diffstat (limited to 'src/lib/libcrypto/evp/cipher_method_lib.c')
0 files changed, 0 insertions, 0 deletions