diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec_pmeth.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_pmeth.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/libcrypto/ec/ec_pmeth.c b/src/lib/libcrypto/ec/ec_pmeth.c index 3637d6bba6..80c09b1e21 100644 --- a/src/lib/libcrypto/ec/ec_pmeth.c +++ b/src/lib/libcrypto/ec/ec_pmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_pmeth.c,v 1.14 2022/11/19 07:00:57 tb Exp $ */ | 1 | /* $OpenBSD: ec_pmeth.c,v 1.15 2022/11/19 07:29:29 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2006. | 3 | * project 2006. |
4 | */ | 4 | */ |
@@ -94,7 +94,7 @@ typedef struct { | |||
94 | } EC_PKEY_CTX; | 94 | } EC_PKEY_CTX; |
95 | 95 | ||
96 | static int | 96 | static int |
97 | pkey_ec_init(EVP_PKEY_CTX * ctx) | 97 | pkey_ec_init(EVP_PKEY_CTX *ctx) |
98 | { | 98 | { |
99 | EC_PKEY_CTX *dctx; | 99 | EC_PKEY_CTX *dctx; |
100 | 100 | ||
@@ -112,7 +112,7 @@ pkey_ec_init(EVP_PKEY_CTX * ctx) | |||
112 | } | 112 | } |
113 | 113 | ||
114 | static int | 114 | static int |
115 | pkey_ec_copy(EVP_PKEY_CTX * dst, EVP_PKEY_CTX * src) | 115 | pkey_ec_copy(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src) |
116 | { | 116 | { |
117 | EC_PKEY_CTX *dctx, *sctx; | 117 | EC_PKEY_CTX *dctx, *sctx; |
118 | if (!pkey_ec_init(dst)) | 118 | if (!pkey_ec_init(dst)) |
@@ -147,7 +147,7 @@ pkey_ec_copy(EVP_PKEY_CTX * dst, EVP_PKEY_CTX * src) | |||
147 | } | 147 | } |
148 | 148 | ||
149 | static void | 149 | static void |
150 | pkey_ec_cleanup(EVP_PKEY_CTX * ctx) | 150 | pkey_ec_cleanup(EVP_PKEY_CTX *ctx) |
151 | { | 151 | { |
152 | EC_PKEY_CTX *dctx = ctx->data; | 152 | EC_PKEY_CTX *dctx = ctx->data; |
153 | 153 | ||
@@ -161,7 +161,7 @@ pkey_ec_cleanup(EVP_PKEY_CTX * ctx) | |||
161 | } | 161 | } |
162 | 162 | ||
163 | static int | 163 | static int |
164 | pkey_ec_sign(EVP_PKEY_CTX * ctx, unsigned char *sig, size_t * siglen, | 164 | pkey_ec_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, |
165 | const unsigned char *tbs, size_t tbslen) | 165 | const unsigned char *tbs, size_t tbslen) |
166 | { | 166 | { |
167 | int ret, type; | 167 | int ret, type; |
@@ -189,7 +189,7 @@ pkey_ec_sign(EVP_PKEY_CTX * ctx, unsigned char *sig, size_t * siglen, | |||
189 | } | 189 | } |
190 | 190 | ||
191 | static int | 191 | static int |
192 | pkey_ec_verify(EVP_PKEY_CTX * ctx, | 192 | pkey_ec_verify(EVP_PKEY_CTX *ctx, |
193 | const unsigned char *sig, size_t siglen, | 193 | const unsigned char *sig, size_t siglen, |
194 | const unsigned char *tbs, size_t tbslen) | 194 | const unsigned char *tbs, size_t tbslen) |
195 | { | 195 | { |
@@ -208,7 +208,7 @@ pkey_ec_verify(EVP_PKEY_CTX * ctx, | |||
208 | } | 208 | } |
209 | 209 | ||
210 | static int | 210 | static int |
211 | pkey_ec_derive(EVP_PKEY_CTX * ctx, unsigned char *key, size_t * keylen) | 211 | pkey_ec_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen) |
212 | { | 212 | { |
213 | int ret; | 213 | int ret; |
214 | size_t outlen; | 214 | size_t outlen; |
@@ -284,7 +284,7 @@ pkey_ec_kdf_derive(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen) | |||
284 | } | 284 | } |
285 | 285 | ||
286 | static int | 286 | static int |
287 | pkey_ec_ctrl(EVP_PKEY_CTX * ctx, int type, int p1, void *p2) | 287 | pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) |
288 | { | 288 | { |
289 | EC_PKEY_CTX *dctx = ctx->data; | 289 | EC_PKEY_CTX *dctx = ctx->data; |
290 | EC_GROUP *group; | 290 | EC_GROUP *group; |
@@ -411,7 +411,7 @@ pkey_ec_ctrl(EVP_PKEY_CTX * ctx, int type, int p1, void *p2) | |||
411 | } | 411 | } |
412 | 412 | ||
413 | static int | 413 | static int |
414 | pkey_ec_ctrl_str(EVP_PKEY_CTX * ctx, const char *type, const char *value) | 414 | pkey_ec_ctrl_str(EVP_PKEY_CTX *ctx, const char *type, const char *value) |
415 | { | 415 | { |
416 | if (!strcmp(type, "ec_paramgen_curve")) { | 416 | if (!strcmp(type, "ec_paramgen_curve")) { |
417 | int nid; | 417 | int nid; |
@@ -450,7 +450,7 @@ pkey_ec_ctrl_str(EVP_PKEY_CTX * ctx, const char *type, const char *value) | |||
450 | } | 450 | } |
451 | 451 | ||
452 | static int | 452 | static int |
453 | pkey_ec_paramgen(EVP_PKEY_CTX * ctx, EVP_PKEY * pkey) | 453 | pkey_ec_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) |
454 | { | 454 | { |
455 | EC_KEY *ec = NULL; | 455 | EC_KEY *ec = NULL; |
456 | EC_PKEY_CTX *dctx = ctx->data; | 456 | EC_PKEY_CTX *dctx = ctx->data; |
@@ -471,7 +471,7 @@ pkey_ec_paramgen(EVP_PKEY_CTX * ctx, EVP_PKEY * pkey) | |||
471 | } | 471 | } |
472 | 472 | ||
473 | static int | 473 | static int |
474 | pkey_ec_keygen(EVP_PKEY_CTX * ctx, EVP_PKEY * pkey) | 474 | pkey_ec_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) |
475 | { | 475 | { |
476 | EC_KEY *ec = NULL; | 476 | EC_KEY *ec = NULL; |
477 | EC_PKEY_CTX *dctx = ctx->data; | 477 | EC_PKEY_CTX *dctx = ctx->data; |