summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/objects/objects.h
diff options
context:
space:
mode:
authortb <>2026-01-30 13:51:44 +0000
committertb <>2026-01-30 13:51:44 +0000
commit9e1ab34f681a4aaf84ec91a6d2b36c59c85b73d7 (patch)
tree88f090f3d76a8e7a24103c7723e4c55bb7000c2c /src/lib/libcrypto/objects/objects.h
parentd08c52f7b1df87a6d0b5aa0f42fdeee3f3c0e6b9 (diff)
downloadopenbsd-9e1ab34f681a4aaf84ec91a6d2b36c59c85b73d7.tar.gz
openbsd-9e1ab34f681a4aaf84ec91a6d2b36c59c85b73d7.tar.bz2
openbsd-9e1ab34f681a4aaf84ec91a6d2b36c59c85b73d7.zip
EVP_SealInit(): minor cleanup.
Explicitly compare pointers against NULL, turn the function into single exit, add hint at why npubk <= 0 or pubk == NULL are a success path: The documentation briefly explains that EVP_OpenInit() and EVP_SealInit() is able to initialize the EVP_CIPHER_CTX in two steps exactly like the EVP_CipherInit_ex() API they wrap: the first call with non-NULL cipher (aka type) only sets the cipher on the ctx, then it returns to allow callers to customize the EVP_CIPHER_CTX, and a second call with cipher == NULL skips the initialization and finishes the ctx setup by setting key and iv. Prompted by a report by Niels Dossche. ok jsing kenjiro
Diffstat (limited to 'src/lib/libcrypto/objects/objects.h')
0 files changed, 0 insertions, 0 deletions