diff options
author | slontis <shane.lontis@oracle.com> | 2023-03-23 11:07:03 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-04-14 13:11:24 +1000 |
commit | 8b7b9aac444625195486efd10273694830c41398 (patch) | |
tree | 1b92a8eb655852c28aeb2db41f67c2120539bf00 /include | |
parent | efbff4de3e259cee71a4e1bbd86b30ebd86bbdae (diff) | |
download | openssl-new-8b7b9aac444625195486efd10273694830c41398.tar.gz |
Fix a HPKE API to put libctx, propq as last (optional parameters).
This keeps the interface consistent with other HPKE API's.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20583)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/hpke.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/openssl/hpke.h b/include/openssl/hpke.h index 7b1419e66c..26149b0ac1 100644 --- a/include/openssl/hpke.h +++ b/include/openssl/hpke.h @@ -138,11 +138,11 @@ int OSSL_HPKE_CTX_set_seq(OSSL_HPKE_CTX *ctx, uint64_t seq); int OSSL_HPKE_CTX_get_seq(OSSL_HPKE_CTX *ctx, uint64_t *seq); int OSSL_HPKE_suite_check(OSSL_HPKE_SUITE suite); -int OSSL_HPKE_get_grease_value(OSSL_LIB_CTX *libctx, const char *propq, - const OSSL_HPKE_SUITE *suite_in, +int OSSL_HPKE_get_grease_value(const OSSL_HPKE_SUITE *suite_in, OSSL_HPKE_SUITE *suite, unsigned char *enc, size_t *enclen, - unsigned char *ct, size_t ctlen); + unsigned char *ct, size_t ctlen, + OSSL_LIB_CTX *libctx, const char *propq); int OSSL_HPKE_str2suite(const char *str, OSSL_HPKE_SUITE *suite); size_t OSSL_HPKE_get_ciphertext_size(OSSL_HPKE_SUITE suite, size_t clearlen); size_t OSSL_HPKE_get_public_encap_size(OSSL_HPKE_SUITE suite); |