| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#include <stdbool.h> |
| 17 |
|
| 18 |
#include "api/s2n.h" |
| 19 |
#include "tls/s2n_kem.h" |
| 20 |
#include "utils/s2n_result.h" |
| 21 |
|
| 22 |
#pragma once |
| 23 |
|
| 24 |
int s2n_fips_init(void); |
| 25 |
bool s2n_is_in_fips_mode(void); |
| 26 |
|
| 27 |
struct s2n_cipher_suite; |
| 28 |
S2N_RESULT s2n_fips_validate_cipher_suite(const struct s2n_cipher_suite *cipher_suite, bool *valid); |
| 29 |
struct s2n_signature_scheme; |
| 30 |
S2N_RESULT s2n_fips_validate_signature_scheme(const struct s2n_signature_scheme *sig_alg, bool *valid); |
| 31 |
struct s2n_ecc_named_curve; |
| 32 |
S2N_RESULT s2n_fips_validate_curve(const struct s2n_ecc_named_curve *curve, bool *valid); |
| 33 |
S2N_RESULT s2n_fips_validate_hybrid_group(const struct s2n_kem_group *hybrid_group, bool *valid); |
| 34 |
S2N_RESULT s2n_fips_validate_version(uint8_t version, bool *valid); |