diff options
| author | tb <> | 2026-01-30 13:51:44 +0000 |
|---|---|---|
| committer | tb <> | 2026-01-30 13:51:44 +0000 |
| commit | 9e1ab34f681a4aaf84ec91a6d2b36c59c85b73d7 (patch) | |
| tree | 88f090f3d76a8e7a24103c7723e4c55bb7000c2c /src/lib/libssl/test/testssl | |
| parent | d08c52f7b1df87a6d0b5aa0f42fdeee3f3c0e6b9 (diff) | |
| download | openbsd-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/libssl/test/testssl')
0 files changed, 0 insertions, 0 deletions
