summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-04-30 14:01:52 +0200
committerRichard Levitte <levitte@openssl.org>2019-04-30 15:30:30 +0200
commitf79858ac4d90a450d0620d1ecb713bc35d7d9f8d (patch)
treee38fe9bf3e271d1da32f63797ab910306e38b565 /include
parentFIPS: Fix compiler errors in rsa_chk.c when building with `-DFIPS_MODE` (diff)
downloadopenssl-f79858ac4d90a450d0620d1ecb713bc35d7d9f8d.tar.xz
openssl-f79858ac4d90a450d0620d1ecb713bc35d7d9f8d.zip
Replumbing: make the oneshot proider cipher function like the others
The OP_cipher_final function takes a return output size and an output buffer size argument. The oneshot OP_cipher_cipher function should do the same. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8849)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/core_numbers.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/openssl/core_numbers.h b/include/openssl/core_numbers.h
index d58888607e..74b3fdfda9 100644
--- a/include/openssl/core_numbers.h
+++ b/include/openssl/core_numbers.h
@@ -140,8 +140,9 @@ OSSL_CORE_MAKE_FUNC(int, OP_cipher_update,
OSSL_CORE_MAKE_FUNC(int, OP_cipher_final,
(void *, unsigned char *out, size_t *outl, size_t outsize))
OSSL_CORE_MAKE_FUNC(int, OP_cipher_cipher,
- (void *, unsigned char *out, const unsigned char *in,
- size_t inl))
+ (void *,
+ unsigned char *out, size_t *outl, size_t outsize,
+ const unsigned char *in, size_t inl))
OSSL_CORE_MAKE_FUNC(void, OP_cipher_freectx, (void *vctx))
OSSL_CORE_MAKE_FUNC(void *, OP_cipher_dupctx, (void *vctx))
OSSL_CORE_MAKE_FUNC(size_t, OP_cipher_key_length, (void))