diff options
author | Matt Caswell <matt@openssl.org> | 2020-04-07 11:10:02 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-04-09 16:10:00 +0100 |
commit | 5435044fd6007f8a649f8fc75a043221931d4bf1 (patch) | |
tree | 1418352b258f90206d4b12f28b787ef607a4ff70 /include | |
parent | bbe3ed06d7bed1bed75d4816665539c959741d2d (diff) |
Enable Ed25519 signing/verifying to use the libctx
Ed25519 needs to fetch a digest and so needs to use the correct libctx.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11496)
Diffstat (limited to 'include')
-rw-r--r-- | include/crypto/ecx.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/crypto/ecx.h b/include/crypto/ecx.h index 41020a22b3..0c6655ca79 100644 --- a/include/crypto/ecx.h +++ b/include/crypto/ecx.h @@ -83,9 +83,11 @@ void X25519_public_from_private(uint8_t out_public_value[32], const uint8_t private_key[32]); int ED25519_sign(uint8_t *out_sig, const uint8_t *message, size_t message_len, - const uint8_t public_key[32], const uint8_t private_key[32]); + const uint8_t public_key[32], const uint8_t private_key[32], + OPENSSL_CTX *libctx, const char *propq); int ED25519_verify(const uint8_t *message, size_t message_len, - const uint8_t signature[64], const uint8_t public_key[32]); + const uint8_t signature[64], const uint8_t public_key[32], + OPENSSL_CTX *libctx, const char *propq); int ED448_sign(OPENSSL_CTX *ctx, uint8_t *out_sig, const uint8_t *message, size_t message_len, const uint8_t public_key[57], |