|
475 | 475 | extern int wolfCrypt_FIPS_first(void); |
476 | 476 | extern int wolfCrypt_FIPS_last(void); |
477 | 477 | #if FIPS_VERSION3_GE(6,0,0) |
| 478 | +#ifndef NO_AES |
478 | 479 | extern int wolfCrypt_FIPS_AES_sanity(void); |
| 480 | +#if defined(WOLFSSL_CMAC) && defined(WOLFSSL_AES_DIRECT) |
479 | 481 | extern int wolfCrypt_FIPS_CMAC_sanity(void); |
| 482 | +#endif |
| 483 | +#endif |
| 484 | +#ifndef NO_DH |
480 | 485 | extern int wolfCrypt_FIPS_DH_sanity(void); |
| 486 | +#endif |
| 487 | +#ifdef HAVE_ECC |
481 | 488 | extern int wolfCrypt_FIPS_ECC_sanity(void); |
| 489 | +#endif |
| 490 | +#ifdef HAVE_ED25519 |
482 | 491 | extern int wolfCrypt_FIPS_ED25519_sanity(void); |
| 492 | +#endif |
| 493 | +#ifdef HAVE_ED448 |
483 | 494 | extern int wolfCrypt_FIPS_ED448_sanity(void); |
| 495 | +#endif |
484 | 496 | extern int wolfCrypt_FIPS_HMAC_sanity(void); |
| 497 | +#ifndef NO_KDF |
485 | 498 | extern int wolfCrypt_FIPS_KDF_sanity(void); |
| 499 | +#endif |
| 500 | +#ifdef HAVE_PBKDF2 |
486 | 501 | extern int wolfCrypt_FIPS_PBKDF_sanity(void); |
| 502 | +#endif |
| 503 | +#ifdef HAVE_HASHDRBG |
487 | 504 | extern int wolfCrypt_FIPS_DRBG_sanity(void); |
| 505 | +#endif |
| 506 | +#ifndef NO_RSA |
488 | 507 | extern int wolfCrypt_FIPS_RSA_sanity(void); |
| 508 | +#endif |
| 509 | +#ifndef NO_SHA |
489 | 510 | extern int wolfCrypt_FIPS_SHA_sanity(void); |
| 511 | +#endif |
| 512 | +#ifndef NO_SHA256 |
490 | 513 | extern int wolfCrypt_FIPS_SHA256_sanity(void); |
| 514 | +#endif |
| 515 | +#ifdef WOLFSSL_SHA512 |
491 | 516 | extern int wolfCrypt_FIPS_SHA512_sanity(void); |
| 517 | +#endif |
| 518 | +#ifdef WOLFSSL_SHA3 |
492 | 519 | extern int wolfCrypt_FIPS_SHA3_sanity(void); |
| 520 | +#endif |
493 | 521 | extern int wolfCrypt_FIPS_FT_sanity(void); |
494 | 522 | extern int wc_RunAllCast_fips(void); |
495 | 523 | #endif |
|
660 | 688 | typeof(wolfCrypt_FIPS_first) *wolfCrypt_FIPS_first; |
661 | 689 | typeof(wolfCrypt_FIPS_last) *wolfCrypt_FIPS_last; |
662 | 690 | #if FIPS_VERSION3_GE(6,0,0) |
| 691 | +#ifndef NO_AES |
663 | 692 | typeof(wolfCrypt_FIPS_AES_sanity) *wolfCrypt_FIPS_AES_sanity; |
| 693 | +#if defined(WOLFSSL_CMAC) && defined(WOLFSSL_AES_DIRECT) |
664 | 694 | typeof(wolfCrypt_FIPS_CMAC_sanity) *wolfCrypt_FIPS_CMAC_sanity; |
| 695 | +#endif |
| 696 | +#endif |
| 697 | +#ifndef NO_DH |
665 | 698 | typeof(wolfCrypt_FIPS_DH_sanity) *wolfCrypt_FIPS_DH_sanity; |
| 699 | +#endif |
| 700 | +#ifdef HAVE_ECC |
666 | 701 | typeof(wolfCrypt_FIPS_ECC_sanity) *wolfCrypt_FIPS_ECC_sanity; |
| 702 | +#endif |
| 703 | +#ifdef HAVE_ED25519 |
667 | 704 | typeof(wolfCrypt_FIPS_ED25519_sanity) *wolfCrypt_FIPS_ED25519_sanity; |
| 705 | +#endif |
| 706 | +#ifdef HAVE_ED448 |
668 | 707 | typeof(wolfCrypt_FIPS_ED448_sanity) *wolfCrypt_FIPS_ED448_sanity; |
| 708 | +#endif |
669 | 709 | typeof(wolfCrypt_FIPS_HMAC_sanity) *wolfCrypt_FIPS_HMAC_sanity; |
| 710 | +#ifndef NO_KDF |
670 | 711 | typeof(wolfCrypt_FIPS_KDF_sanity) *wolfCrypt_FIPS_KDF_sanity; |
| 712 | +#endif |
| 713 | +#ifdef HAVE_PBKDF2 |
671 | 714 | typeof(wolfCrypt_FIPS_PBKDF_sanity) *wolfCrypt_FIPS_PBKDF_sanity; |
| 715 | +#endif |
| 716 | +#ifdef HAVE_HASHDRBG |
672 | 717 | typeof(wolfCrypt_FIPS_DRBG_sanity) *wolfCrypt_FIPS_DRBG_sanity; |
| 718 | +#endif |
| 719 | +#ifndef NO_RSA |
673 | 720 | typeof(wolfCrypt_FIPS_RSA_sanity) *wolfCrypt_FIPS_RSA_sanity; |
| 721 | +#endif |
| 722 | +#ifndef NO_SHA |
674 | 723 | typeof(wolfCrypt_FIPS_SHA_sanity) *wolfCrypt_FIPS_SHA_sanity; |
| 724 | +#endif |
| 725 | +#ifndef NO_SHA256 |
675 | 726 | typeof(wolfCrypt_FIPS_SHA256_sanity) *wolfCrypt_FIPS_SHA256_sanity; |
| 727 | +#endif |
| 728 | +#ifdef WOLFSSL_SHA512 |
676 | 729 | typeof(wolfCrypt_FIPS_SHA512_sanity) *wolfCrypt_FIPS_SHA512_sanity; |
| 730 | +#endif |
| 731 | +#ifdef WOLFSSL_SHA3 |
677 | 732 | typeof(wolfCrypt_FIPS_SHA3_sanity) *wolfCrypt_FIPS_SHA3_sanity; |
| 733 | +#endif |
678 | 734 | typeof(wolfCrypt_FIPS_FT_sanity) *wolfCrypt_FIPS_FT_sanity; |
679 | 735 | typeof(wc_RunAllCast_fips) *wc_RunAllCast_fips; |
680 | 736 | #endif |
|
0 commit comments