diff options
| author | tb <> | 2024-01-04 17:38:36 +0000 |
|---|---|---|
| committer | tb <> | 2024-01-04 17:38:36 +0000 |
| commit | ffc98932e7dd8da47a52971639e2eb8ada5f7097 (patch) | |
| tree | 0099e9b3077e473a202c464efd1bf63a3d98814a /src | |
| parent | 744f9b9df3bd01a4f216013bf31f8d1151043177 (diff) | |
| download | openbsd-ffc98932e7dd8da47a52971639e2eb8ada5f7097.tar.gz openbsd-ffc98932e7dd8da47a52971639e2eb8ada5f7097.tar.bz2 openbsd-ffc98932e7dd8da47a52971639e2eb8ada5f7097.zip | |
Remove unused app_data from EVP_CIPHER
The EVP_CIPHER structs are static const data that the library returns when
you call EVP_aes_128_cbc(), for example. It makes no sense whatsoever to
hang user data off such a struct, but it's been there since forever.
ok jsing
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/evp/e_aes.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_bf.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_camellia.c | 20 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_cast.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_des.c | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_des3.c | 12 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_gost2814789.c | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_idea.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_null.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_rc2.c | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_rc4.c | 4 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_rc4_hmac_md5.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_sm4.c | 7 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/e_xcbc_d.c | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/evp_local.h | 3 |
15 files changed, 15 insertions, 84 deletions
diff --git a/src/lib/libcrypto/evp/e_aes.c b/src/lib/libcrypto/evp/e_aes.c index eb7f520282..6ef3fb37c0 100644 --- a/src/lib/libcrypto/evp/e_aes.c +++ b/src/lib/libcrypto/evp/e_aes.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_aes.c,v 1.55 2023/11/18 09:37:15 tb Exp $ */ | 1 | /* $OpenBSD: e_aes.c,v 1.56 2024/01/04 17:38:36 tb Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -2550,7 +2550,6 @@ static const EVP_CIPHER aes_128_wrap = { | |||
| 2550 | .set_asn1_parameters = NULL, | 2550 | .set_asn1_parameters = NULL, |
| 2551 | .get_asn1_parameters = NULL, | 2551 | .get_asn1_parameters = NULL, |
| 2552 | .ctrl = aes_wrap_ctrl, | 2552 | .ctrl = aes_wrap_ctrl, |
| 2553 | .app_data = NULL, | ||
| 2554 | }; | 2553 | }; |
| 2555 | 2554 | ||
| 2556 | const EVP_CIPHER * | 2555 | const EVP_CIPHER * |
| @@ -2572,7 +2571,6 @@ static const EVP_CIPHER aes_192_wrap = { | |||
| 2572 | .set_asn1_parameters = NULL, | 2571 | .set_asn1_parameters = NULL, |
| 2573 | .get_asn1_parameters = NULL, | 2572 | .get_asn1_parameters = NULL, |
| 2574 | .ctrl = aes_wrap_ctrl, | 2573 | .ctrl = aes_wrap_ctrl, |
| 2575 | .app_data = NULL, | ||
| 2576 | }; | 2574 | }; |
| 2577 | 2575 | ||
| 2578 | const EVP_CIPHER * | 2576 | const EVP_CIPHER * |
| @@ -2594,7 +2592,6 @@ static const EVP_CIPHER aes_256_wrap = { | |||
| 2594 | .set_asn1_parameters = NULL, | 2592 | .set_asn1_parameters = NULL, |
| 2595 | .get_asn1_parameters = NULL, | 2593 | .get_asn1_parameters = NULL, |
| 2596 | .ctrl = aes_wrap_ctrl, | 2594 | .ctrl = aes_wrap_ctrl, |
| 2597 | .app_data = NULL, | ||
| 2598 | }; | 2595 | }; |
| 2599 | 2596 | ||
| 2600 | const EVP_CIPHER * | 2597 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_bf.c b/src/lib/libcrypto/evp/e_bf.c index 9146a531e4..90a589c608 100644 --- a/src/lib/libcrypto/evp/e_bf.c +++ b/src/lib/libcrypto/evp/e_bf.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_bf.c,v 1.17 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_bf.c,v 1.18 2024/01/04 17:38:36 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 | * |
| @@ -170,7 +170,6 @@ static const EVP_CIPHER bf_cbc = { | |||
| 170 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 170 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 171 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 171 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 172 | .ctrl = NULL, | 172 | .ctrl = NULL, |
| 173 | .app_data = NULL, | ||
| 174 | }; | 173 | }; |
| 175 | 174 | ||
| 176 | const EVP_CIPHER * | 175 | const EVP_CIPHER * |
| @@ -192,7 +191,6 @@ static const EVP_CIPHER bf_cfb64 = { | |||
| 192 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 191 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 193 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 192 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 194 | .ctrl = NULL, | 193 | .ctrl = NULL, |
| 195 | .app_data = NULL, | ||
| 196 | }; | 194 | }; |
| 197 | 195 | ||
| 198 | const EVP_CIPHER * | 196 | const EVP_CIPHER * |
| @@ -214,7 +212,6 @@ static const EVP_CIPHER bf_ofb = { | |||
| 214 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 212 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 215 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 213 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 216 | .ctrl = NULL, | 214 | .ctrl = NULL, |
| 217 | .app_data = NULL, | ||
| 218 | }; | 215 | }; |
| 219 | 216 | ||
| 220 | const EVP_CIPHER * | 217 | const EVP_CIPHER * |
| @@ -236,7 +233,6 @@ static const EVP_CIPHER bf_ecb = { | |||
| 236 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 233 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 237 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 234 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 238 | .ctrl = NULL, | 235 | .ctrl = NULL, |
| 239 | .app_data = NULL, | ||
| 240 | }; | 236 | }; |
| 241 | 237 | ||
| 242 | const EVP_CIPHER * | 238 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_camellia.c b/src/lib/libcrypto/evp/e_camellia.c index cec7649e3f..6d9bedbbcd 100644 --- a/src/lib/libcrypto/evp/e_camellia.c +++ b/src/lib/libcrypto/evp/e_camellia.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_camellia.c,v 1.18 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_camellia.c,v 1.19 2024/01/04 17:38:36 tb Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2006 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -171,7 +171,6 @@ static const EVP_CIPHER camellia_128_cbc = { | |||
| 171 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 171 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 172 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 172 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 173 | .ctrl = NULL, | 173 | .ctrl = NULL, |
| 174 | .app_data = NULL, | ||
| 175 | }; | 174 | }; |
| 176 | 175 | ||
| 177 | const EVP_CIPHER * | 176 | const EVP_CIPHER * |
| @@ -193,7 +192,6 @@ static const EVP_CIPHER camellia_128_cfb128 = { | |||
| 193 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 192 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 194 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 193 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 195 | .ctrl = NULL, | 194 | .ctrl = NULL, |
| 196 | .app_data = NULL, | ||
| 197 | }; | 195 | }; |
| 198 | 196 | ||
| 199 | const EVP_CIPHER * | 197 | const EVP_CIPHER * |
| @@ -215,7 +213,6 @@ static const EVP_CIPHER camellia_128_ofb = { | |||
| 215 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 213 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 216 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 214 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 217 | .ctrl = NULL, | 215 | .ctrl = NULL, |
| 218 | .app_data = NULL, | ||
| 219 | }; | 216 | }; |
| 220 | 217 | ||
| 221 | const EVP_CIPHER * | 218 | const EVP_CIPHER * |
| @@ -237,7 +234,6 @@ static const EVP_CIPHER camellia_128_ecb = { | |||
| 237 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 234 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 238 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 235 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 239 | .ctrl = NULL, | 236 | .ctrl = NULL, |
| 240 | .app_data = NULL, | ||
| 241 | }; | 237 | }; |
| 242 | 238 | ||
| 243 | const EVP_CIPHER * | 239 | const EVP_CIPHER * |
| @@ -329,7 +325,6 @@ static const EVP_CIPHER camellia_192_cbc = { | |||
| 329 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 325 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 330 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 326 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 331 | .ctrl = NULL, | 327 | .ctrl = NULL, |
| 332 | .app_data = NULL, | ||
| 333 | }; | 328 | }; |
| 334 | 329 | ||
| 335 | const EVP_CIPHER * | 330 | const EVP_CIPHER * |
| @@ -351,7 +346,6 @@ static const EVP_CIPHER camellia_192_cfb128 = { | |||
| 351 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 346 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 352 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 347 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 353 | .ctrl = NULL, | 348 | .ctrl = NULL, |
| 354 | .app_data = NULL, | ||
| 355 | }; | 349 | }; |
| 356 | 350 | ||
| 357 | const EVP_CIPHER * | 351 | const EVP_CIPHER * |
| @@ -373,7 +367,6 @@ static const EVP_CIPHER camellia_192_ofb = { | |||
| 373 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 367 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 374 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 368 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 375 | .ctrl = NULL, | 369 | .ctrl = NULL, |
| 376 | .app_data = NULL, | ||
| 377 | }; | 370 | }; |
| 378 | 371 | ||
| 379 | const EVP_CIPHER * | 372 | const EVP_CIPHER * |
| @@ -395,7 +388,6 @@ static const EVP_CIPHER camellia_192_ecb = { | |||
| 395 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 388 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 396 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 389 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 397 | .ctrl = NULL, | 390 | .ctrl = NULL, |
| 398 | .app_data = NULL, | ||
| 399 | }; | 391 | }; |
| 400 | 392 | ||
| 401 | const EVP_CIPHER * | 393 | const EVP_CIPHER * |
| @@ -487,7 +479,6 @@ static const EVP_CIPHER camellia_256_cbc = { | |||
| 487 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 479 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 488 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 480 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 489 | .ctrl = NULL, | 481 | .ctrl = NULL, |
| 490 | .app_data = NULL, | ||
| 491 | }; | 482 | }; |
| 492 | 483 | ||
| 493 | const EVP_CIPHER * | 484 | const EVP_CIPHER * |
| @@ -509,7 +500,6 @@ static const EVP_CIPHER camellia_256_cfb128 = { | |||
| 509 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 500 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 510 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 501 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 511 | .ctrl = NULL, | 502 | .ctrl = NULL, |
| 512 | .app_data = NULL, | ||
| 513 | }; | 503 | }; |
| 514 | 504 | ||
| 515 | const EVP_CIPHER * | 505 | const EVP_CIPHER * |
| @@ -531,7 +521,6 @@ static const EVP_CIPHER camellia_256_ofb = { | |||
| 531 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 521 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 532 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 522 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 533 | .ctrl = NULL, | 523 | .ctrl = NULL, |
| 534 | .app_data = NULL, | ||
| 535 | }; | 524 | }; |
| 536 | 525 | ||
| 537 | const EVP_CIPHER * | 526 | const EVP_CIPHER * |
| @@ -553,7 +542,6 @@ static const EVP_CIPHER camellia_256_ecb = { | |||
| 553 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 542 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 554 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 543 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 555 | .ctrl = NULL, | 544 | .ctrl = NULL, |
| 556 | .app_data = NULL, | ||
| 557 | }; | 545 | }; |
| 558 | 546 | ||
| 559 | const EVP_CIPHER * | 547 | const EVP_CIPHER * |
| @@ -597,7 +585,6 @@ static const EVP_CIPHER camellia_128_cfb1 = { | |||
| 597 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 585 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 598 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 586 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 599 | .ctrl = NULL, | 587 | .ctrl = NULL, |
| 600 | .app_data = NULL, | ||
| 601 | }; | 588 | }; |
| 602 | 589 | ||
| 603 | const EVP_CIPHER * | 590 | const EVP_CIPHER * |
| @@ -641,7 +628,6 @@ static const EVP_CIPHER camellia_192_cfb1 = { | |||
| 641 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 628 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 642 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 629 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 643 | .ctrl = NULL, | 630 | .ctrl = NULL, |
| 644 | .app_data = NULL, | ||
| 645 | }; | 631 | }; |
| 646 | 632 | ||
| 647 | const EVP_CIPHER * | 633 | const EVP_CIPHER * |
| @@ -685,7 +671,6 @@ static const EVP_CIPHER camellia_256_cfb1 = { | |||
| 685 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 671 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 686 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 672 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 687 | .ctrl = NULL, | 673 | .ctrl = NULL, |
| 688 | .app_data = NULL, | ||
| 689 | }; | 674 | }; |
| 690 | 675 | ||
| 691 | const EVP_CIPHER * | 676 | const EVP_CIPHER * |
| @@ -728,7 +713,6 @@ static const EVP_CIPHER camellia_128_cfb8 = { | |||
| 728 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 713 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 729 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 714 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 730 | .ctrl = NULL, | 715 | .ctrl = NULL, |
| 731 | .app_data = NULL, | ||
| 732 | }; | 716 | }; |
| 733 | 717 | ||
| 734 | const EVP_CIPHER * | 718 | const EVP_CIPHER * |
| @@ -770,7 +754,6 @@ static const EVP_CIPHER camellia_192_cfb8 = { | |||
| 770 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 754 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 771 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 755 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 772 | .ctrl = NULL, | 756 | .ctrl = NULL, |
| 773 | .app_data = NULL, | ||
| 774 | }; | 757 | }; |
| 775 | 758 | ||
| 776 | const EVP_CIPHER * | 759 | const EVP_CIPHER * |
| @@ -812,7 +795,6 @@ static const EVP_CIPHER camellia_256_cfb8 = { | |||
| 812 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 795 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 813 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 796 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 814 | .ctrl = NULL, | 797 | .ctrl = NULL, |
| 815 | .app_data = NULL, | ||
| 816 | }; | 798 | }; |
| 817 | 799 | ||
| 818 | const EVP_CIPHER * | 800 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_cast.c b/src/lib/libcrypto/evp/e_cast.c index a0e52dfdf4..5c3e504835 100644 --- a/src/lib/libcrypto/evp/e_cast.c +++ b/src/lib/libcrypto/evp/e_cast.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_cast.c,v 1.16 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_cast.c,v 1.17 2024/01/04 17:38:36 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 | * |
| @@ -170,7 +170,6 @@ static const EVP_CIPHER cast5_cbc = { | |||
| 170 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 170 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 171 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 171 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 172 | .ctrl = NULL, | 172 | .ctrl = NULL, |
| 173 | .app_data = NULL, | ||
| 174 | }; | 173 | }; |
| 175 | 174 | ||
| 176 | const EVP_CIPHER * | 175 | const EVP_CIPHER * |
| @@ -192,7 +191,6 @@ static const EVP_CIPHER cast5_cfb64 = { | |||
| 192 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 191 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 193 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 192 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 194 | .ctrl = NULL, | 193 | .ctrl = NULL, |
| 195 | .app_data = NULL, | ||
| 196 | }; | 194 | }; |
| 197 | 195 | ||
| 198 | const EVP_CIPHER * | 196 | const EVP_CIPHER * |
| @@ -214,7 +212,6 @@ static const EVP_CIPHER cast5_ofb = { | |||
| 214 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 212 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 215 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 213 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 216 | .ctrl = NULL, | 214 | .ctrl = NULL, |
| 217 | .app_data = NULL, | ||
| 218 | }; | 215 | }; |
| 219 | 216 | ||
| 220 | const EVP_CIPHER * | 217 | const EVP_CIPHER * |
| @@ -236,7 +233,6 @@ static const EVP_CIPHER cast5_ecb = { | |||
| 236 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 233 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 237 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 234 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 238 | .ctrl = NULL, | 235 | .ctrl = NULL, |
| 239 | .app_data = NULL, | ||
| 240 | }; | 236 | }; |
| 241 | 237 | ||
| 242 | const EVP_CIPHER * | 238 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_des.c b/src/lib/libcrypto/evp/e_des.c index 64d098ca14..7a0b24c1ab 100644 --- a/src/lib/libcrypto/evp/e_des.c +++ b/src/lib/libcrypto/evp/e_des.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_des.c,v 1.22 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_des.c,v 1.23 2024/01/04 17:38:36 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 | * |
| @@ -234,7 +234,6 @@ static const EVP_CIPHER des_cbc = { | |||
| 234 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 234 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 235 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 235 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 236 | .ctrl = des_ctrl, | 236 | .ctrl = des_ctrl, |
| 237 | .app_data = NULL, | ||
| 238 | }; | 237 | }; |
| 239 | 238 | ||
| 240 | const EVP_CIPHER * | 239 | const EVP_CIPHER * |
| @@ -256,7 +255,6 @@ static const EVP_CIPHER des_cfb64 = { | |||
| 256 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 255 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 257 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 256 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 258 | .ctrl = des_ctrl, | 257 | .ctrl = des_ctrl, |
| 259 | .app_data = NULL, | ||
| 260 | }; | 258 | }; |
| 261 | 259 | ||
| 262 | const EVP_CIPHER * | 260 | const EVP_CIPHER * |
| @@ -278,7 +276,6 @@ static const EVP_CIPHER des_ofb = { | |||
| 278 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 276 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 279 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 277 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 280 | .ctrl = des_ctrl, | 278 | .ctrl = des_ctrl, |
| 281 | .app_data = NULL, | ||
| 282 | }; | 279 | }; |
| 283 | 280 | ||
| 284 | const EVP_CIPHER * | 281 | const EVP_CIPHER * |
| @@ -300,7 +297,6 @@ static const EVP_CIPHER des_ecb = { | |||
| 300 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 297 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 301 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 298 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 302 | .ctrl = des_ctrl, | 299 | .ctrl = des_ctrl, |
| 303 | .app_data = NULL, | ||
| 304 | }; | 300 | }; |
| 305 | 301 | ||
| 306 | const EVP_CIPHER * | 302 | const EVP_CIPHER * |
| @@ -322,7 +318,6 @@ static const EVP_CIPHER des_cfb1 = { | |||
| 322 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 318 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 323 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 319 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 324 | .ctrl = des_ctrl, | 320 | .ctrl = des_ctrl, |
| 325 | .app_data = NULL, | ||
| 326 | }; | 321 | }; |
| 327 | 322 | ||
| 328 | const EVP_CIPHER * | 323 | const EVP_CIPHER * |
| @@ -344,7 +339,6 @@ static const EVP_CIPHER des_cfb8 = { | |||
| 344 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 339 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 345 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 340 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 346 | .ctrl = des_ctrl, | 341 | .ctrl = des_ctrl, |
| 347 | .app_data = NULL, | ||
| 348 | }; | 342 | }; |
| 349 | 343 | ||
| 350 | const EVP_CIPHER * | 344 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_des3.c b/src/lib/libcrypto/evp/e_des3.c index 3e6c5234cb..f283be2912 100644 --- a/src/lib/libcrypto/evp/e_des3.c +++ b/src/lib/libcrypto/evp/e_des3.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_des3.c,v 1.28 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_des3.c,v 1.29 2024/01/04 17:38:36 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 | * |
| @@ -266,7 +266,6 @@ static const EVP_CIPHER des_ede_cbc = { | |||
| 266 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 266 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 267 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 267 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 268 | .ctrl = des3_ctrl, | 268 | .ctrl = des3_ctrl, |
| 269 | .app_data = NULL, | ||
| 270 | }; | 269 | }; |
| 271 | 270 | ||
| 272 | const EVP_CIPHER * | 271 | const EVP_CIPHER * |
| @@ -288,7 +287,6 @@ static const EVP_CIPHER des_ede_cfb64 = { | |||
| 288 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 287 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 289 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 288 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 290 | .ctrl = des3_ctrl, | 289 | .ctrl = des3_ctrl, |
| 291 | .app_data = NULL, | ||
| 292 | }; | 290 | }; |
| 293 | 291 | ||
| 294 | const EVP_CIPHER * | 292 | const EVP_CIPHER * |
| @@ -310,7 +308,6 @@ static const EVP_CIPHER des_ede_ofb = { | |||
| 310 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 308 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 311 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 309 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 312 | .ctrl = des3_ctrl, | 310 | .ctrl = des3_ctrl, |
| 313 | .app_data = NULL, | ||
| 314 | }; | 311 | }; |
| 315 | 312 | ||
| 316 | const EVP_CIPHER * | 313 | const EVP_CIPHER * |
| @@ -332,7 +329,6 @@ static const EVP_CIPHER des_ede_ecb = { | |||
| 332 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 329 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 333 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 330 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 334 | .ctrl = des3_ctrl, | 331 | .ctrl = des3_ctrl, |
| 335 | .app_data = NULL, | ||
| 336 | }; | 332 | }; |
| 337 | 333 | ||
| 338 | const EVP_CIPHER * | 334 | const EVP_CIPHER * |
| @@ -360,7 +356,6 @@ static const EVP_CIPHER des_ede3_cbc = { | |||
| 360 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 356 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 361 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 357 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 362 | .ctrl = des3_ctrl, | 358 | .ctrl = des3_ctrl, |
| 363 | .app_data = NULL, | ||
| 364 | }; | 359 | }; |
| 365 | 360 | ||
| 366 | const EVP_CIPHER * | 361 | const EVP_CIPHER * |
| @@ -382,7 +377,6 @@ static const EVP_CIPHER des_ede3_cfb64 = { | |||
| 382 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 377 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 383 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 378 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 384 | .ctrl = des3_ctrl, | 379 | .ctrl = des3_ctrl, |
| 385 | .app_data = NULL, | ||
| 386 | }; | 380 | }; |
| 387 | 381 | ||
| 388 | const EVP_CIPHER * | 382 | const EVP_CIPHER * |
| @@ -404,7 +398,6 @@ static const EVP_CIPHER des_ede3_ofb = { | |||
| 404 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 398 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 405 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 399 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 406 | .ctrl = des3_ctrl, | 400 | .ctrl = des3_ctrl, |
| 407 | .app_data = NULL, | ||
| 408 | }; | 401 | }; |
| 409 | 402 | ||
| 410 | const EVP_CIPHER * | 403 | const EVP_CIPHER * |
| @@ -426,7 +419,6 @@ static const EVP_CIPHER des_ede3_ecb = { | |||
| 426 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 419 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 427 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 420 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 428 | .ctrl = des3_ctrl, | 421 | .ctrl = des3_ctrl, |
| 429 | .app_data = NULL, | ||
| 430 | }; | 422 | }; |
| 431 | 423 | ||
| 432 | const EVP_CIPHER * | 424 | const EVP_CIPHER * |
| @@ -449,7 +441,6 @@ static const EVP_CIPHER des_ede3_cfb1 = { | |||
| 449 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 441 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 450 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 442 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 451 | .ctrl = des3_ctrl, | 443 | .ctrl = des3_ctrl, |
| 452 | .app_data = NULL, | ||
| 453 | }; | 444 | }; |
| 454 | 445 | ||
| 455 | const EVP_CIPHER * | 446 | const EVP_CIPHER * |
| @@ -472,7 +463,6 @@ static const EVP_CIPHER des_ede3_cfb8 = { | |||
| 472 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 463 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 473 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 464 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 474 | .ctrl = des3_ctrl, | 465 | .ctrl = des3_ctrl, |
| 475 | .app_data = NULL, | ||
| 476 | }; | 466 | }; |
| 477 | 467 | ||
| 478 | const EVP_CIPHER * | 468 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_gost2814789.c b/src/lib/libcrypto/evp/e_gost2814789.c index 359cf5e4ca..48619d109d 100644 --- a/src/lib/libcrypto/evp/e_gost2814789.c +++ b/src/lib/libcrypto/evp/e_gost2814789.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_gost2814789.c,v 1.13 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_gost2814789.c,v 1.14 2024/01/04 17:38:36 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
| 4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
| @@ -260,7 +260,6 @@ static const EVP_CIPHER gost2814789_ecb = { | |||
| 260 | .set_asn1_parameters = gost2814789_set_asn1_params, | 260 | .set_asn1_parameters = gost2814789_set_asn1_params, |
| 261 | .get_asn1_parameters = gost2814789_get_asn1_params, | 261 | .get_asn1_parameters = gost2814789_get_asn1_params, |
| 262 | .ctrl = gost2814789_ctl, | 262 | .ctrl = gost2814789_ctl, |
| 263 | .app_data = NULL, | ||
| 264 | }; | 263 | }; |
| 265 | 264 | ||
| 266 | const EVP_CIPHER * | 265 | const EVP_CIPHER * |
| @@ -282,7 +281,6 @@ static const EVP_CIPHER gost2814789_cfb64 = { | |||
| 282 | .set_asn1_parameters = gost2814789_set_asn1_params, | 281 | .set_asn1_parameters = gost2814789_set_asn1_params, |
| 283 | .get_asn1_parameters = gost2814789_get_asn1_params, | 282 | .get_asn1_parameters = gost2814789_get_asn1_params, |
| 284 | .ctrl = gost2814789_ctl, | 283 | .ctrl = gost2814789_ctl, |
| 285 | .app_data = NULL, | ||
| 286 | }; | 284 | }; |
| 287 | 285 | ||
| 288 | const EVP_CIPHER * | 286 | const EVP_CIPHER * |
| @@ -304,7 +302,6 @@ static const EVP_CIPHER gost2814789_cnt = { | |||
| 304 | .set_asn1_parameters = gost2814789_set_asn1_params, | 302 | .set_asn1_parameters = gost2814789_set_asn1_params, |
| 305 | .get_asn1_parameters = gost2814789_get_asn1_params, | 303 | .get_asn1_parameters = gost2814789_get_asn1_params, |
| 306 | .ctrl = gost2814789_ctl, | 304 | .ctrl = gost2814789_ctl, |
| 307 | .app_data = NULL, | ||
| 308 | }; | 305 | }; |
| 309 | 306 | ||
| 310 | const EVP_CIPHER * | 307 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_idea.c b/src/lib/libcrypto/evp/e_idea.c index b2129dc990..025a1f5087 100644 --- a/src/lib/libcrypto/evp/e_idea.c +++ b/src/lib/libcrypto/evp/e_idea.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_idea.c,v 1.20 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_idea.c,v 1.21 2024/01/04 17:38:36 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 | * |
| @@ -189,7 +189,6 @@ static const EVP_CIPHER idea_cbc = { | |||
| 189 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 189 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 190 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 190 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 191 | .ctrl = NULL, | 191 | .ctrl = NULL, |
| 192 | .app_data = NULL, | ||
| 193 | }; | 192 | }; |
| 194 | 193 | ||
| 195 | const EVP_CIPHER * | 194 | const EVP_CIPHER * |
| @@ -211,7 +210,6 @@ static const EVP_CIPHER idea_cfb64 = { | |||
| 211 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 210 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 212 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 211 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 213 | .ctrl = NULL, | 212 | .ctrl = NULL, |
| 214 | .app_data = NULL, | ||
| 215 | }; | 213 | }; |
| 216 | 214 | ||
| 217 | const EVP_CIPHER * | 215 | const EVP_CIPHER * |
| @@ -233,7 +231,6 @@ static const EVP_CIPHER idea_ofb = { | |||
| 233 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 231 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 234 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 232 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 235 | .ctrl = NULL, | 233 | .ctrl = NULL, |
| 236 | .app_data = NULL, | ||
| 237 | }; | 234 | }; |
| 238 | 235 | ||
| 239 | const EVP_CIPHER * | 236 | const EVP_CIPHER * |
| @@ -255,7 +252,6 @@ static const EVP_CIPHER idea_ecb = { | |||
| 255 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, | 252 | .set_asn1_parameters = EVP_CIPHER_set_asn1_iv, |
| 256 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, | 253 | .get_asn1_parameters = EVP_CIPHER_get_asn1_iv, |
| 257 | .ctrl = NULL, | 254 | .ctrl = NULL, |
| 258 | .app_data = NULL, | ||
| 259 | }; | 255 | }; |
| 260 | 256 | ||
| 261 | const EVP_CIPHER * | 257 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_null.c b/src/lib/libcrypto/evp/e_null.c index f30c207ff6..d3364de1c5 100644 --- a/src/lib/libcrypto/evp/e_null.c +++ b/src/lib/libcrypto/evp/e_null.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_null.c,v 1.18 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_null.c,v 1.19 2024/01/04 17:38:36 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 | * |
| @@ -80,7 +80,6 @@ static const EVP_CIPHER n_cipher = { | |||
| 80 | NULL, | 80 | NULL, |
| 81 | NULL, | 81 | NULL, |
| 82 | NULL, | 82 | NULL, |
| 83 | NULL | ||
| 84 | }; | 83 | }; |
| 85 | 84 | ||
| 86 | const EVP_CIPHER * | 85 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_rc2.c b/src/lib/libcrypto/evp/e_rc2.c index d859ad2a15..6f8c051cff 100644 --- a/src/lib/libcrypto/evp/e_rc2.c +++ b/src/lib/libcrypto/evp/e_rc2.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_rc2.c,v 1.25 2023/12/02 19:06:22 tb Exp $ */ | 1 | /* $OpenBSD: e_rc2.c,v 1.26 2024/01/04 17:38:36 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 | * |
| @@ -172,7 +172,6 @@ static const EVP_CIPHER rc2_cbc = { | |||
| 172 | .set_asn1_parameters = rc2_set_asn1_type_and_iv, | 172 | .set_asn1_parameters = rc2_set_asn1_type_and_iv, |
| 173 | .get_asn1_parameters = rc2_get_asn1_type_and_iv, | 173 | .get_asn1_parameters = rc2_get_asn1_type_and_iv, |
| 174 | .ctrl = rc2_ctrl, | 174 | .ctrl = rc2_ctrl, |
| 175 | .app_data = NULL, | ||
| 176 | }; | 175 | }; |
| 177 | 176 | ||
| 178 | const EVP_CIPHER * | 177 | const EVP_CIPHER * |
| @@ -194,7 +193,6 @@ static const EVP_CIPHER rc2_cfb64 = { | |||
| 194 | .set_asn1_parameters = rc2_set_asn1_type_and_iv, | 193 | .set_asn1_parameters = rc2_set_asn1_type_and_iv, |
| 195 | .get_asn1_parameters = rc2_get_asn1_type_and_iv, | 194 | .get_asn1_parameters = rc2_get_asn1_type_and_iv, |
| 196 | .ctrl = rc2_ctrl, | 195 | .ctrl = rc2_ctrl, |
| 197 | .app_data = NULL, | ||
| 198 | }; | 196 | }; |
| 199 | 197 | ||
| 200 | const EVP_CIPHER * | 198 | const EVP_CIPHER * |
| @@ -216,7 +214,6 @@ static const EVP_CIPHER rc2_ofb = { | |||
| 216 | .set_asn1_parameters = rc2_set_asn1_type_and_iv, | 214 | .set_asn1_parameters = rc2_set_asn1_type_and_iv, |
| 217 | .get_asn1_parameters = rc2_get_asn1_type_and_iv, | 215 | .get_asn1_parameters = rc2_get_asn1_type_and_iv, |
| 218 | .ctrl = rc2_ctrl, | 216 | .ctrl = rc2_ctrl, |
| 219 | .app_data = NULL, | ||
| 220 | }; | 217 | }; |
| 221 | 218 | ||
| 222 | const EVP_CIPHER * | 219 | const EVP_CIPHER * |
| @@ -238,7 +235,6 @@ static const EVP_CIPHER rc2_ecb = { | |||
| 238 | .set_asn1_parameters = rc2_set_asn1_type_and_iv, | 235 | .set_asn1_parameters = rc2_set_asn1_type_and_iv, |
| 239 | .get_asn1_parameters = rc2_get_asn1_type_and_iv, | 236 | .get_asn1_parameters = rc2_get_asn1_type_and_iv, |
| 240 | .ctrl = rc2_ctrl, | 237 | .ctrl = rc2_ctrl, |
| 241 | .app_data = NULL, | ||
| 242 | }; | 238 | }; |
| 243 | 239 | ||
| 244 | const EVP_CIPHER * | 240 | const EVP_CIPHER * |
| @@ -262,7 +258,6 @@ static const EVP_CIPHER r2_64_cbc_cipher = { | |||
| 262 | rc2_set_asn1_type_and_iv, | 258 | rc2_set_asn1_type_and_iv, |
| 263 | rc2_get_asn1_type_and_iv, | 259 | rc2_get_asn1_type_and_iv, |
| 264 | rc2_ctrl, | 260 | rc2_ctrl, |
| 265 | NULL | ||
| 266 | }; | 261 | }; |
| 267 | 262 | ||
| 268 | static const EVP_CIPHER r2_40_cbc_cipher = { | 263 | static const EVP_CIPHER r2_40_cbc_cipher = { |
| @@ -276,7 +271,6 @@ static const EVP_CIPHER r2_40_cbc_cipher = { | |||
| 276 | rc2_set_asn1_type_and_iv, | 271 | rc2_set_asn1_type_and_iv, |
| 277 | rc2_get_asn1_type_and_iv, | 272 | rc2_get_asn1_type_and_iv, |
| 278 | rc2_ctrl, | 273 | rc2_ctrl, |
| 279 | NULL | ||
| 280 | }; | 274 | }; |
| 281 | 275 | ||
| 282 | const EVP_CIPHER * | 276 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_rc4.c b/src/lib/libcrypto/evp/e_rc4.c index 2503d37049..4588dfc719 100644 --- a/src/lib/libcrypto/evp/e_rc4.c +++ b/src/lib/libcrypto/evp/e_rc4.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_rc4.c,v 1.17 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_rc4.c,v 1.18 2024/01/04 17:38:36 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 | * |
| @@ -93,7 +93,6 @@ static const EVP_CIPHER r4_cipher = { | |||
| 93 | NULL, | 93 | NULL, |
| 94 | NULL, | 94 | NULL, |
| 95 | NULL, | 95 | NULL, |
| 96 | NULL | ||
| 97 | }; | 96 | }; |
| 98 | 97 | ||
| 99 | static const EVP_CIPHER r4_40_cipher = { | 98 | static const EVP_CIPHER r4_40_cipher = { |
| @@ -107,7 +106,6 @@ static const EVP_CIPHER r4_40_cipher = { | |||
| 107 | NULL, | 106 | NULL, |
| 108 | NULL, | 107 | NULL, |
| 109 | NULL, | 108 | NULL, |
| 110 | NULL | ||
| 111 | }; | 109 | }; |
| 112 | 110 | ||
| 113 | const EVP_CIPHER * | 111 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_rc4_hmac_md5.c b/src/lib/libcrypto/evp/e_rc4_hmac_md5.c index bcf8daea60..a9301dcdc9 100644 --- a/src/lib/libcrypto/evp/e_rc4_hmac_md5.c +++ b/src/lib/libcrypto/evp/e_rc4_hmac_md5.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_rc4_hmac_md5.c,v 1.12 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_rc4_hmac_md5.c,v 1.13 2024/01/04 17:38:36 tb Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 2011 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2011 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -296,7 +296,6 @@ static EVP_CIPHER r4_hmac_md5_cipher = { | |||
| 296 | NULL, | 296 | NULL, |
| 297 | NULL, | 297 | NULL, |
| 298 | rc4_hmac_md5_ctrl, | 298 | rc4_hmac_md5_ctrl, |
| 299 | NULL | ||
| 300 | }; | 299 | }; |
| 301 | 300 | ||
| 302 | const EVP_CIPHER * | 301 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_sm4.c b/src/lib/libcrypto/evp/e_sm4.c index 9db45a87f6..85b4d3ca04 100644 --- a/src/lib/libcrypto/evp/e_sm4.c +++ b/src/lib/libcrypto/evp/e_sm4.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_sm4.c,v 1.11 2024/01/02 19:54:43 tb Exp $ */ | 1 | /* $OpenBSD: e_sm4.c,v 1.12 2024/01/04 17:38:36 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2017, 2019 Ribose Inc | 3 | * Copyright (c) 2017, 2019 Ribose Inc |
| 4 | * | 4 | * |
| @@ -157,7 +157,6 @@ static const EVP_CIPHER sm4_cbc = { | |||
| 157 | .set_asn1_parameters = NULL, | 157 | .set_asn1_parameters = NULL, |
| 158 | .get_asn1_parameters = NULL, | 158 | .get_asn1_parameters = NULL, |
| 159 | .ctrl = NULL, | 159 | .ctrl = NULL, |
| 160 | .app_data = NULL, | ||
| 161 | }; | 160 | }; |
| 162 | 161 | ||
| 163 | const EVP_CIPHER * | 162 | const EVP_CIPHER * |
| @@ -179,7 +178,6 @@ static const EVP_CIPHER sm4_cfb128 = { | |||
| 179 | .set_asn1_parameters = NULL, | 178 | .set_asn1_parameters = NULL, |
| 180 | .get_asn1_parameters = NULL, | 179 | .get_asn1_parameters = NULL, |
| 181 | .ctrl = NULL, | 180 | .ctrl = NULL, |
| 182 | .app_data = NULL, | ||
| 183 | }; | 181 | }; |
| 184 | 182 | ||
| 185 | const EVP_CIPHER * | 183 | const EVP_CIPHER * |
| @@ -201,7 +199,6 @@ static const EVP_CIPHER sm4_ofb = { | |||
| 201 | .set_asn1_parameters = NULL, | 199 | .set_asn1_parameters = NULL, |
| 202 | .get_asn1_parameters = NULL, | 200 | .get_asn1_parameters = NULL, |
| 203 | .ctrl = NULL, | 201 | .ctrl = NULL, |
| 204 | .app_data = NULL, | ||
| 205 | }; | 202 | }; |
| 206 | 203 | ||
| 207 | const EVP_CIPHER * | 204 | const EVP_CIPHER * |
| @@ -223,7 +220,6 @@ static const EVP_CIPHER sm4_ecb = { | |||
| 223 | .set_asn1_parameters = NULL, | 220 | .set_asn1_parameters = NULL, |
| 224 | .get_asn1_parameters = NULL, | 221 | .get_asn1_parameters = NULL, |
| 225 | .ctrl = NULL, | 222 | .ctrl = NULL, |
| 226 | .app_data = NULL, | ||
| 227 | }; | 223 | }; |
| 228 | 224 | ||
| 229 | const EVP_CIPHER * | 225 | const EVP_CIPHER * |
| @@ -256,7 +252,6 @@ static const EVP_CIPHER sm4_ctr_mode = { | |||
| 256 | .set_asn1_parameters = NULL, | 252 | .set_asn1_parameters = NULL, |
| 257 | .get_asn1_parameters = NULL, | 253 | .get_asn1_parameters = NULL, |
| 258 | .ctrl = NULL, | 254 | .ctrl = NULL, |
| 259 | .app_data = NULL, | ||
| 260 | }; | 255 | }; |
| 261 | 256 | ||
| 262 | const EVP_CIPHER * | 257 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/e_xcbc_d.c b/src/lib/libcrypto/evp/e_xcbc_d.c index 32f9f2eaa8..5a3d535661 100644 --- a/src/lib/libcrypto/evp/e_xcbc_d.c +++ b/src/lib/libcrypto/evp/e_xcbc_d.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_xcbc_d.c,v 1.15 2023/07/07 19:37:53 beck Exp $ */ | 1 | /* $OpenBSD: e_xcbc_d.c,v 1.16 2024/01/04 17:38:36 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 | * |
| @@ -94,7 +94,6 @@ static const EVP_CIPHER d_xcbc_cipher = { | |||
| 94 | EVP_CIPHER_set_asn1_iv, | 94 | EVP_CIPHER_set_asn1_iv, |
| 95 | EVP_CIPHER_get_asn1_iv, | 95 | EVP_CIPHER_get_asn1_iv, |
| 96 | NULL, | 96 | NULL, |
| 97 | NULL | ||
| 98 | }; | 97 | }; |
| 99 | 98 | ||
| 100 | const EVP_CIPHER * | 99 | const EVP_CIPHER * |
diff --git a/src/lib/libcrypto/evp/evp_local.h b/src/lib/libcrypto/evp/evp_local.h index 52fa8e1e52..42839f39bd 100644 --- a/src/lib/libcrypto/evp/evp_local.h +++ b/src/lib/libcrypto/evp/evp_local.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp_local.h,v 1.12 2024/01/04 17:01:26 tb Exp $ */ | 1 | /* $OpenBSD: evp_local.h,v 1.13 2024/01/04 17:38:36 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 2000. | 3 | * project 2000. |
| 4 | */ | 4 | */ |
| @@ -223,7 +223,6 @@ struct evp_cipher_st { | |||
| 223 | int (*set_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *); /* Populate a ASN1_TYPE with parameters */ | 223 | int (*set_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *); /* Populate a ASN1_TYPE with parameters */ |
| 224 | int (*get_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *); /* Get parameters from a ASN1_TYPE */ | 224 | int (*get_asn1_parameters)(EVP_CIPHER_CTX *, ASN1_TYPE *); /* Get parameters from a ASN1_TYPE */ |
| 225 | int (*ctrl)(EVP_CIPHER_CTX *, int type, int arg, void *ptr); /* Miscellaneous operations */ | 225 | int (*ctrl)(EVP_CIPHER_CTX *, int type, int arg, void *ptr); /* Miscellaneous operations */ |
| 226 | void *app_data; /* Application data */ | ||
| 227 | } /* EVP_CIPHER */; | 226 | } /* EVP_CIPHER */; |
| 228 | 227 | ||
| 229 | struct evp_cipher_ctx_st { | 228 | struct evp_cipher_ctx_st { |
