Debian Codegraph @

crt/s2n/crypto/s2n_fips.h

raw symbols SCIP
1 /*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
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);