summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ec_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ec_local.h')
-rw-r--r--src/lib/libcrypto/ec/ec_local.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index 7a1f90886d..8153d4a96a 100644
--- a/src/lib/libcrypto/ec/ec_local.h
+++ b/src/lib/libcrypto/ec/ec_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_local.h,v 1.24 2023/07/05 08:39:40 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.25 2023/07/28 09:28:37 tb Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -323,8 +323,8 @@ struct ec_key_method_st {
323 int (*set_private)(EC_KEY *key, const BIGNUM *priv_key); 323 int (*set_private)(EC_KEY *key, const BIGNUM *priv_key);
324 int (*set_public)(EC_KEY *key, const EC_POINT *pub_key); 324 int (*set_public)(EC_KEY *key, const EC_POINT *pub_key);
325 int (*keygen)(EC_KEY *key); 325 int (*keygen)(EC_KEY *key);
326 int (*compute_key)(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, 326 int (*compute_key)(unsigned char **out, size_t *out_len,
327 void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)); 327 const EC_POINT *pub_key, const EC_KEY *ecdh);
328 int (*sign)(int type, const unsigned char *dgst, int dlen, unsigned char 328 int (*sign)(int type, const unsigned char *dgst, int dlen, unsigned char
329 *sig, unsigned int *siglen, const BIGNUM *kinv, 329 *sig, unsigned int *siglen, const BIGNUM *kinv,
330 const BIGNUM *r, EC_KEY *eckey); 330 const BIGNUM *r, EC_KEY *eckey);
@@ -342,8 +342,8 @@ struct ec_key_method_st {
342#define EC_KEY_METHOD_DYNAMIC 1 342#define EC_KEY_METHOD_DYNAMIC 1
343 343
344int ec_key_gen(EC_KEY *eckey); 344int ec_key_gen(EC_KEY *eckey);
345int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, EC_KEY *ecdh, 345int ecdh_compute_key(unsigned char **out, size_t *out_len,
346 void *(*KDF) (const void *in, size_t inlen, void *out, size_t *outlen)); 346 const EC_POINT *pub_key, const EC_KEY *ecdh);
347int ecdsa_verify(int type, const unsigned char *dgst, int dgst_len, 347int ecdsa_verify(int type, const unsigned char *dgst, int dgst_len,
348 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey); 348 const unsigned char *sigbuf, int sig_len, EC_KEY *eckey);
349int ecdsa_verify_sig(const unsigned char *dgst, int dgst_len, 349int ecdsa_verify_sig(const unsigned char *dgst, int dgst_len,