diff options
Diffstat (limited to 'src/lib/libcrypto/evp/pmeth_gn.c')
| -rw-r--r-- | src/lib/libcrypto/evp/pmeth_gn.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/pmeth_gn.c b/src/lib/libcrypto/evp/pmeth_gn.c index d31bb7c0b4..2b835cd8fe 100644 --- a/src/lib/libcrypto/evp/pmeth_gn.c +++ b/src/lib/libcrypto/evp/pmeth_gn.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pmeth_gn.c,v 1.11 2022/11/26 16:08:53 tb Exp $ */ | 1 | /* $OpenBSD: pmeth_gn.c,v 1.12 2023/07/07 13:54:46 beck 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 | */ |
| @@ -85,6 +85,7 @@ EVP_PKEY_paramgen_init(EVP_PKEY_CTX *ctx) | |||
| 85 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 85 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 86 | return ret; | 86 | return ret; |
| 87 | } | 87 | } |
| 88 | LCRYPTO_ALIAS(EVP_PKEY_paramgen_init); | ||
| 88 | 89 | ||
| 89 | int | 90 | int |
| 90 | EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) | 91 | EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) |
| @@ -114,6 +115,7 @@ EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) | |||
| 114 | } | 115 | } |
| 115 | return ret; | 116 | return ret; |
| 116 | } | 117 | } |
| 118 | LCRYPTO_ALIAS(EVP_PKEY_paramgen); | ||
| 117 | 119 | ||
| 118 | int | 120 | int |
| 119 | EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx) | 121 | EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx) |
| @@ -132,6 +134,7 @@ EVP_PKEY_keygen_init(EVP_PKEY_CTX *ctx) | |||
| 132 | ctx->operation = EVP_PKEY_OP_UNDEFINED; | 134 | ctx->operation = EVP_PKEY_OP_UNDEFINED; |
| 133 | return ret; | 135 | return ret; |
| 134 | } | 136 | } |
| 137 | LCRYPTO_ALIAS(EVP_PKEY_keygen_init); | ||
| 135 | 138 | ||
| 136 | int | 139 | int |
| 137 | EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) | 140 | EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) |
| @@ -160,18 +163,21 @@ EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) | |||
| 160 | } | 163 | } |
| 161 | return ret; | 164 | return ret; |
| 162 | } | 165 | } |
| 166 | LCRYPTO_ALIAS(EVP_PKEY_keygen); | ||
| 163 | 167 | ||
| 164 | void | 168 | void |
| 165 | EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb) | 169 | EVP_PKEY_CTX_set_cb(EVP_PKEY_CTX *ctx, EVP_PKEY_gen_cb *cb) |
| 166 | { | 170 | { |
| 167 | ctx->pkey_gencb = cb; | 171 | ctx->pkey_gencb = cb; |
| 168 | } | 172 | } |
| 173 | LCRYPTO_ALIAS(EVP_PKEY_CTX_set_cb); | ||
| 169 | 174 | ||
| 170 | EVP_PKEY_gen_cb * | 175 | EVP_PKEY_gen_cb * |
| 171 | EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx) | 176 | EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx) |
| 172 | { | 177 | { |
| 173 | return ctx->pkey_gencb; | 178 | return ctx->pkey_gencb; |
| 174 | } | 179 | } |
| 180 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_cb); | ||
| 175 | 181 | ||
| 176 | /* "translation callback" to call EVP_PKEY_CTX callbacks using BN_GENCB | 182 | /* "translation callback" to call EVP_PKEY_CTX callbacks using BN_GENCB |
| 177 | * style callbacks. | 183 | * style callbacks. |
| @@ -201,6 +207,7 @@ EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx) | |||
| 201 | return 0; | 207 | return 0; |
| 202 | return ctx->keygen_info[idx]; | 208 | return ctx->keygen_info[idx]; |
| 203 | } | 209 | } |
| 210 | LCRYPTO_ALIAS(EVP_PKEY_CTX_get_keygen_info); | ||
| 204 | 211 | ||
| 205 | EVP_PKEY * | 212 | EVP_PKEY * |
| 206 | EVP_PKEY_new_mac_key(int type, ENGINE *e, const unsigned char *key, int keylen) | 213 | EVP_PKEY_new_mac_key(int type, ENGINE *e, const unsigned char *key, int keylen) |
| @@ -223,6 +230,7 @@ merr: | |||
| 223 | EVP_PKEY_CTX_free(mac_ctx); | 230 | EVP_PKEY_CTX_free(mac_ctx); |
| 224 | return mac_key; | 231 | return mac_key; |
| 225 | } | 232 | } |
| 233 | LCRYPTO_ALIAS(EVP_PKEY_new_mac_key); | ||
| 226 | 234 | ||
| 227 | int | 235 | int |
| 228 | EVP_PKEY_check(EVP_PKEY_CTX *ctx) | 236 | EVP_PKEY_check(EVP_PKEY_CTX *ctx) |
| @@ -244,6 +252,7 @@ EVP_PKEY_check(EVP_PKEY_CTX *ctx) | |||
| 244 | 252 | ||
| 245 | return pkey->ameth->pkey_check(pkey); | 253 | return pkey->ameth->pkey_check(pkey); |
| 246 | } | 254 | } |
| 255 | LCRYPTO_ALIAS(EVP_PKEY_check); | ||
| 247 | 256 | ||
| 248 | int | 257 | int |
| 249 | EVP_PKEY_public_check(EVP_PKEY_CTX *ctx) | 258 | EVP_PKEY_public_check(EVP_PKEY_CTX *ctx) |
| @@ -265,6 +274,7 @@ EVP_PKEY_public_check(EVP_PKEY_CTX *ctx) | |||
| 265 | 274 | ||
| 266 | return pkey->ameth->pkey_public_check(pkey); | 275 | return pkey->ameth->pkey_public_check(pkey); |
| 267 | } | 276 | } |
| 277 | LCRYPTO_ALIAS(EVP_PKEY_public_check); | ||
| 268 | 278 | ||
| 269 | int | 279 | int |
| 270 | EVP_PKEY_param_check(EVP_PKEY_CTX *ctx) | 280 | EVP_PKEY_param_check(EVP_PKEY_CTX *ctx) |
| @@ -286,3 +296,4 @@ EVP_PKEY_param_check(EVP_PKEY_CTX *ctx) | |||
| 286 | 296 | ||
| 287 | return pkey->ameth->pkey_param_check(pkey); | 297 | return pkey->ameth->pkey_param_check(pkey); |
| 288 | } | 298 | } |
| 299 | LCRYPTO_ALIAS(EVP_PKEY_param_check); | ||
