diff options
author | tb <> | 2023-12-15 13:33:10 +0000 |
---|---|---|
committer | tb <> | 2023-12-15 13:33:10 +0000 |
commit | 150cb2d757cac1a44068bbda820f9aefd1c67494 (patch) | |
tree | e0584621de6e2cb27a3101e4eb6ac7acf12dc8c1 /src/lib/libc/stdlib/system.c | |
parent | 21316bd190bc144c08df39f1ffe220ce6e2aa856 (diff) | |
download | openbsd-150cb2d757cac1a44068bbda820f9aefd1c67494.tar.gz openbsd-150cb2d757cac1a44068bbda820f9aefd1c67494.tar.bz2 openbsd-150cb2d757cac1a44068bbda820f9aefd1c67494.zip |
Document EVP_Cipher() in code
EVP_Cipher() is an implementation detail of EVP_Cipher{Update,Final}().
Behavior depends on EVP_CIPH_FLAG_CUSTOM_CIPHER being set on ctx->cipher.
If the flag is set, do_cipher() operates in update mode if in != NULL and
in final mode if in == NULL. It returns the number of bytes written to out
(which may be 0) or -1 on error.
If the flag is not set, do_cipher() assumes properly aligned data and that
padding is handled correctly by the caller. Most do_cipher() methods will
silently produce garbage and succeed. Returns 1 on success, 0 on error.
ok jsing
Diffstat (limited to 'src/lib/libc/stdlib/system.c')
0 files changed, 0 insertions, 0 deletions