summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ppccap.c
diff options
context:
space:
mode:
authortb <>2024-01-04 09:47:54 +0000
committertb <>2024-01-04 09:47:54 +0000
commit5476a9d1ff0475bb9440b5e67a3837b7ed91fd7c (patch)
treebfe6ee8e2ba60c88926a794b82a3568c4d257a07 /src/lib/libcrypto/ppccap.c
parent1c6d12a18927be32f24e3dd8c0cb0d33de676d66 (diff)
downloadopenbsd-5476a9d1ff0475bb9440b5e67a3837b7ed91fd7c.tar.gz
openbsd-5476a9d1ff0475bb9440b5e67a3837b7ed91fd7c.tar.bz2
openbsd-5476a9d1ff0475bb9440b5e67a3837b7ed91fd7c.zip
Improve length checks for oiv and iv
There are two unsigned char arrays of size EVP_MAX_IV_LENGTH to store the IVs of block ciphers. In most modes, only iv is used, but in some modes iv is modified and oiv is used to store the original IV. At the moment nothing enforces that they are of the same length. Therefore make sure the correct one or both are checked before writing to or reading from them. ok miod
Diffstat (limited to 'src/lib/libcrypto/ppccap.c')
0 files changed, 0 insertions, 0 deletions