diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/Symbols.list | 23 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/evp.h | 77 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/pmeth_lib.c | 162 |
3 files changed, 2 insertions, 260 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index ba54a932ee..a7181eb38e 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
| @@ -1341,29 +1341,6 @@ EVP_PKEY_get_raw_public_key | |||
| 1341 | EVP_PKEY_id | 1341 | EVP_PKEY_id |
| 1342 | EVP_PKEY_keygen | 1342 | EVP_PKEY_keygen |
| 1343 | EVP_PKEY_keygen_init | 1343 | EVP_PKEY_keygen_init |
| 1344 | EVP_PKEY_meth_add0 | ||
| 1345 | EVP_PKEY_meth_copy | ||
| 1346 | EVP_PKEY_meth_find | ||
| 1347 | EVP_PKEY_meth_free | ||
| 1348 | EVP_PKEY_meth_get0_info | ||
| 1349 | EVP_PKEY_meth_new | ||
| 1350 | EVP_PKEY_meth_set_check | ||
| 1351 | EVP_PKEY_meth_set_cleanup | ||
| 1352 | EVP_PKEY_meth_set_copy | ||
| 1353 | EVP_PKEY_meth_set_ctrl | ||
| 1354 | EVP_PKEY_meth_set_decrypt | ||
| 1355 | EVP_PKEY_meth_set_derive | ||
| 1356 | EVP_PKEY_meth_set_encrypt | ||
| 1357 | EVP_PKEY_meth_set_init | ||
| 1358 | EVP_PKEY_meth_set_keygen | ||
| 1359 | EVP_PKEY_meth_set_param_check | ||
| 1360 | EVP_PKEY_meth_set_paramgen | ||
| 1361 | EVP_PKEY_meth_set_public_check | ||
| 1362 | EVP_PKEY_meth_set_sign | ||
| 1363 | EVP_PKEY_meth_set_signctx | ||
| 1364 | EVP_PKEY_meth_set_verify | ||
| 1365 | EVP_PKEY_meth_set_verify_recover | ||
| 1366 | EVP_PKEY_meth_set_verifyctx | ||
| 1367 | EVP_PKEY_missing_parameters | 1344 | EVP_PKEY_missing_parameters |
| 1368 | EVP_PKEY_new | 1345 | EVP_PKEY_new |
| 1369 | EVP_PKEY_new_CMAC_key | 1346 | EVP_PKEY_new_CMAC_key |
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 90e29bd0d8..eba3ab3869 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp.h,v 1.126 2024/03/02 10:03:13 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.127 2024/03/02 10:04:40 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -1004,14 +1004,6 @@ const EVP_PKEY_ASN1_METHOD *EVP_PKEY_get0_asn1(const EVP_PKEY *pkey); | |||
| 1004 | */ | 1004 | */ |
| 1005 | #define EVP_PKEY_FLAG_SIGCTX_CUSTOM 4 | 1005 | #define EVP_PKEY_FLAG_SIGCTX_CUSTOM 4 |
| 1006 | 1006 | ||
| 1007 | const EVP_PKEY_METHOD *EVP_PKEY_meth_find(int type); | ||
| 1008 | EVP_PKEY_METHOD *EVP_PKEY_meth_new(int id, int flags); | ||
| 1009 | void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags, | ||
| 1010 | const EVP_PKEY_METHOD *meth); | ||
| 1011 | void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src); | ||
| 1012 | void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth); | ||
| 1013 | int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); | ||
| 1014 | |||
| 1015 | EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e); | 1007 | EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e); |
| 1016 | EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e); | 1008 | EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e); |
| 1017 | EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx); | 1009 | EVP_PKEY_CTX *EVP_PKEY_CTX_dup(EVP_PKEY_CTX *ctx); |
| @@ -1074,73 +1066,6 @@ EVP_PKEY_gen_cb *EVP_PKEY_CTX_get_cb(EVP_PKEY_CTX *ctx); | |||
| 1074 | 1066 | ||
| 1075 | int EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx); | 1067 | int EVP_PKEY_CTX_get_keygen_info(EVP_PKEY_CTX *ctx, int idx); |
| 1076 | 1068 | ||
| 1077 | void EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth, | ||
| 1078 | int (*init)(EVP_PKEY_CTX *ctx)); | ||
| 1079 | |||
| 1080 | void EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth, | ||
| 1081 | int (*copy)(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src)); | ||
| 1082 | |||
| 1083 | void EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth, | ||
| 1084 | void (*cleanup)(EVP_PKEY_CTX *ctx)); | ||
| 1085 | |||
| 1086 | void EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth, | ||
| 1087 | int (*paramgen_init)(EVP_PKEY_CTX *ctx), | ||
| 1088 | int (*paramgen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)); | ||
| 1089 | |||
| 1090 | void EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth, | ||
| 1091 | int (*keygen_init)(EVP_PKEY_CTX *ctx), | ||
| 1092 | int (*keygen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)); | ||
| 1093 | |||
| 1094 | void EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth, | ||
| 1095 | int (*sign_init)(EVP_PKEY_CTX *ctx), | ||
| 1096 | int (*sign)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | ||
| 1097 | const unsigned char *tbs, size_t tbslen)); | ||
| 1098 | |||
| 1099 | void EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth, | ||
| 1100 | int (*verify_init)(EVP_PKEY_CTX *ctx), | ||
| 1101 | int (*verify)(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, | ||
| 1102 | const unsigned char *tbs, size_t tbslen)); | ||
| 1103 | |||
| 1104 | void EVP_PKEY_meth_set_verify_recover(EVP_PKEY_METHOD *pmeth, | ||
| 1105 | int (*verify_recover_init)(EVP_PKEY_CTX *ctx), | ||
| 1106 | int (*verify_recover)(EVP_PKEY_CTX *ctx, unsigned char *sig, | ||
| 1107 | size_t *siglen, const unsigned char *tbs, size_t tbslen)); | ||
| 1108 | |||
| 1109 | void EVP_PKEY_meth_set_signctx(EVP_PKEY_METHOD *pmeth, | ||
| 1110 | int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), | ||
| 1111 | int (*signctx)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | ||
| 1112 | EVP_MD_CTX *mctx)); | ||
| 1113 | |||
| 1114 | void EVP_PKEY_meth_set_verifyctx(EVP_PKEY_METHOD *pmeth, | ||
| 1115 | int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), | ||
| 1116 | int (*verifyctx)(EVP_PKEY_CTX *ctx, const unsigned char *sig, int siglen, | ||
| 1117 | EVP_MD_CTX *mctx)); | ||
| 1118 | |||
| 1119 | void EVP_PKEY_meth_set_encrypt(EVP_PKEY_METHOD *pmeth, | ||
| 1120 | int (*encrypt_init)(EVP_PKEY_CTX *ctx), | ||
| 1121 | int (*encryptfn)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | ||
| 1122 | const unsigned char *in, size_t inlen)); | ||
| 1123 | |||
| 1124 | void EVP_PKEY_meth_set_decrypt(EVP_PKEY_METHOD *pmeth, | ||
| 1125 | int (*decrypt_init)(EVP_PKEY_CTX *ctx), | ||
| 1126 | int (*decrypt)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | ||
| 1127 | const unsigned char *in, size_t inlen)); | ||
| 1128 | |||
| 1129 | void EVP_PKEY_meth_set_derive(EVP_PKEY_METHOD *pmeth, | ||
| 1130 | int (*derive_init)(EVP_PKEY_CTX *ctx), | ||
| 1131 | int (*derive)(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen)); | ||
| 1132 | |||
| 1133 | void EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth, | ||
| 1134 | int (*ctrl)(EVP_PKEY_CTX *ctx, int type, int p1, void *p2), | ||
| 1135 | int (*ctrl_str)(EVP_PKEY_CTX *ctx, const char *type, const char *value)); | ||
| 1136 | |||
| 1137 | void EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth, | ||
| 1138 | int (*check)(EVP_PKEY *pkey)); | ||
| 1139 | void EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth, | ||
| 1140 | int (*public_check)(EVP_PKEY *pkey)); | ||
| 1141 | void EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth, | ||
| 1142 | int (*param_check)(EVP_PKEY *pkey)); | ||
| 1143 | |||
| 1144 | /* Authenticated Encryption with Additional Data. | 1069 | /* Authenticated Encryption with Additional Data. |
| 1145 | * | 1070 | * |
| 1146 | * AEAD couples confidentiality and integrity in a single primtive. AEAD | 1071 | * AEAD couples confidentiality and integrity in a single primtive. AEAD |
diff --git a/src/lib/libcrypto/evp/pmeth_lib.c b/src/lib/libcrypto/evp/pmeth_lib.c index 67ab72eff3..a0d57594d8 100644 --- a/src/lib/libcrypto/evp/pmeth_lib.c +++ b/src/lib/libcrypto/evp/pmeth_lib.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: pmeth_lib.c,v 1.37 2024/01/13 12:46:59 tb Exp $ */ | 1 | /* $OpenBSD: pmeth_lib.c,v 1.38 2024/03/02 10:04:40 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 | */ |
| @@ -347,163 +347,3 @@ EVP_PKEY_CTX_get_app_data(EVP_PKEY_CTX *ctx) | |||
| 347 | { | 347 | { |
| 348 | return ctx->app_data; | 348 | return ctx->app_data; |
| 349 | } | 349 | } |
| 350 | |||
| 351 | /* | ||
| 352 | * Remove all the functions below in the next major bump | ||
| 353 | */ | ||
| 354 | |||
| 355 | const EVP_PKEY_METHOD * | ||
| 356 | EVP_PKEY_meth_find(int type) | ||
| 357 | { | ||
| 358 | EVPerror(ERR_R_DISABLED); | ||
| 359 | return NULL; | ||
| 360 | } | ||
| 361 | |||
| 362 | EVP_PKEY_METHOD* | ||
| 363 | EVP_PKEY_meth_new(int id, int flags) | ||
| 364 | { | ||
| 365 | EVPerror(ERR_R_DISABLED); | ||
| 366 | return NULL; | ||
| 367 | } | ||
| 368 | |||
| 369 | void | ||
| 370 | EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags, const EVP_PKEY_METHOD *meth) | ||
| 371 | { | ||
| 372 | } | ||
| 373 | |||
| 374 | void | ||
| 375 | EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src) | ||
| 376 | { | ||
| 377 | } | ||
| 378 | |||
| 379 | void | ||
| 380 | EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth) | ||
| 381 | { | ||
| 382 | } | ||
| 383 | |||
| 384 | int | ||
| 385 | EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth) | ||
| 386 | { | ||
| 387 | EVPerror(ERR_R_DISABLED); | ||
| 388 | return 0; | ||
| 389 | } | ||
| 390 | |||
| 391 | void | ||
| 392 | EVP_PKEY_meth_set_init(EVP_PKEY_METHOD *pmeth, | ||
| 393 | int (*init)(EVP_PKEY_CTX *ctx)) | ||
| 394 | { | ||
| 395 | } | ||
| 396 | |||
| 397 | void | ||
| 398 | EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth, | ||
| 399 | int (*copy)(EVP_PKEY_CTX *dst, EVP_PKEY_CTX *src)) | ||
| 400 | { | ||
| 401 | } | ||
| 402 | |||
| 403 | void | ||
| 404 | EVP_PKEY_meth_set_cleanup(EVP_PKEY_METHOD *pmeth, | ||
| 405 | void (*cleanup)(EVP_PKEY_CTX *ctx)) | ||
| 406 | { | ||
| 407 | } | ||
| 408 | |||
| 409 | void | ||
| 410 | EVP_PKEY_meth_set_paramgen(EVP_PKEY_METHOD *pmeth, | ||
| 411 | int (*paramgen_init)(EVP_PKEY_CTX *ctx), | ||
| 412 | int (*paramgen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)) | ||
| 413 | { | ||
| 414 | } | ||
| 415 | |||
| 416 | void | ||
| 417 | EVP_PKEY_meth_set_keygen(EVP_PKEY_METHOD *pmeth, | ||
| 418 | int (*keygen_init)(EVP_PKEY_CTX *ctx), | ||
| 419 | int (*keygen)(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey)) | ||
| 420 | { | ||
| 421 | } | ||
| 422 | |||
| 423 | void | ||
| 424 | EVP_PKEY_meth_set_sign(EVP_PKEY_METHOD *pmeth, | ||
| 425 | int (*sign_init)(EVP_PKEY_CTX *ctx), | ||
| 426 | int (*sign)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | ||
| 427 | const unsigned char *tbs, size_t tbslen)) | ||
| 428 | { | ||
| 429 | } | ||
| 430 | |||
| 431 | void | ||
| 432 | EVP_PKEY_meth_set_verify(EVP_PKEY_METHOD *pmeth, | ||
| 433 | int (*verify_init)(EVP_PKEY_CTX *ctx), | ||
| 434 | int (*verify)(EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, | ||
| 435 | const unsigned char *tbs, size_t tbslen)) | ||
| 436 | { | ||
| 437 | } | ||
| 438 | |||
| 439 | void | ||
| 440 | EVP_PKEY_meth_set_verify_recover(EVP_PKEY_METHOD *pmeth, | ||
| 441 | int (*verify_recover_init)(EVP_PKEY_CTX *ctx), | ||
| 442 | int (*verify_recover)(EVP_PKEY_CTX *ctx, | ||
| 443 | unsigned char *sig, size_t *siglen, | ||
| 444 | const unsigned char *tbs, size_t tbslen)) | ||
| 445 | { | ||
| 446 | } | ||
| 447 | |||
| 448 | void | ||
| 449 | EVP_PKEY_meth_set_signctx(EVP_PKEY_METHOD *pmeth, | ||
| 450 | int (*signctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), | ||
| 451 | int (*signctx)(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | ||
| 452 | EVP_MD_CTX *mctx)) | ||
| 453 | { | ||
| 454 | } | ||
| 455 | |||
| 456 | void | ||
| 457 | EVP_PKEY_meth_set_verifyctx(EVP_PKEY_METHOD *pmeth, | ||
| 458 | int (*verifyctx_init)(EVP_PKEY_CTX *ctx, EVP_MD_CTX *mctx), | ||
| 459 | int (*verifyctx)(EVP_PKEY_CTX *ctx, const unsigned char *sig, int siglen, | ||
| 460 | EVP_MD_CTX *mctx)) | ||
| 461 | { | ||
| 462 | } | ||
| 463 | |||
| 464 | void | ||
| 465 | EVP_PKEY_meth_set_encrypt(EVP_PKEY_METHOD *pmeth, | ||
| 466 | int (*encrypt_init)(EVP_PKEY_CTX *ctx), | ||
| 467 | int (*encryptfn)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | ||
| 468 | const unsigned char *in, size_t inlen)) | ||
| 469 | { | ||
| 470 | } | ||
| 471 | |||
| 472 | void | ||
| 473 | EVP_PKEY_meth_set_decrypt(EVP_PKEY_METHOD *pmeth, | ||
| 474 | int (*decrypt_init)(EVP_PKEY_CTX *ctx), | ||
| 475 | int (*decrypt)(EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, | ||
| 476 | const unsigned char *in, size_t inlen)) | ||
| 477 | { | ||
| 478 | } | ||
| 479 | |||
| 480 | void | ||
| 481 | EVP_PKEY_meth_set_derive(EVP_PKEY_METHOD *pmeth, | ||
| 482 | int (*derive_init)(EVP_PKEY_CTX *ctx), | ||
| 483 | int (*derive)(EVP_PKEY_CTX *ctx, unsigned char *key, size_t *keylen)) | ||
| 484 | { | ||
| 485 | } | ||
| 486 | |||
| 487 | void | ||
| 488 | EVP_PKEY_meth_set_ctrl(EVP_PKEY_METHOD *pmeth, | ||
| 489 | int (*ctrl)(EVP_PKEY_CTX *ctx, int type, int p1, void *p2), | ||
| 490 | int (*ctrl_str)(EVP_PKEY_CTX *ctx, const char *type, const char *value)) | ||
| 491 | { | ||
| 492 | } | ||
| 493 | |||
| 494 | void | ||
| 495 | EVP_PKEY_meth_set_check(EVP_PKEY_METHOD *pmeth, int (*check)(EVP_PKEY *pkey)) | ||
| 496 | { | ||
| 497 | } | ||
| 498 | |||
| 499 | void | ||
| 500 | EVP_PKEY_meth_set_public_check(EVP_PKEY_METHOD *pmeth, | ||
| 501 | int (*public_check)(EVP_PKEY *pkey)) | ||
| 502 | { | ||
| 503 | } | ||
| 504 | |||
| 505 | void | ||
| 506 | EVP_PKEY_meth_set_param_check(EVP_PKEY_METHOD *pmeth, | ||
| 507 | int (*param_check)(EVP_PKEY *pkey)) | ||
| 508 | { | ||
| 509 | } | ||
