Debian Codegraph @

crt/s2n/tls/s2n_certificate_keys.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 #pragma once
17
18 #include <stdint.h>
19
20 struct s2n_certificate_key {
21 const char *name;
22 uint16_t public_key_libcrypto_nid;
23
24 /* modulus for RSA key, size for EC key */
25 uint16_t bits;
26 };
27
28 struct s2n_certificate_key_preferences {
29 uint8_t count;
30 const struct s2n_certificate_key *const *certificate_keys;
31 };
32
33 extern const struct s2n_certificate_key s2n_rsa_rsae_1024;
34 extern const struct s2n_certificate_key s2n_rsa_rsae_2048;
35 extern const struct s2n_certificate_key s2n_rsa_rsae_3072;
36 extern const struct s2n_certificate_key s2n_rsa_rsae_4096;
37
38 extern const struct s2n_certificate_key s2n_rsa_pss_1024;
39 extern const struct s2n_certificate_key s2n_rsa_pss_2048;
40 extern const struct s2n_certificate_key s2n_rsa_pss_3072;
41 extern const struct s2n_certificate_key s2n_rsa_pss_4096;
42
43 extern const struct s2n_certificate_key s2n_ec_p256;
44 extern const struct s2n_certificate_key s2n_ec_p384;
45 extern const struct s2n_certificate_key s2n_ec_p521;
46
47 extern struct s2n_certificate_key_preferences s2n_certificate_key_preferences_20250429;
48 extern struct s2n_certificate_key_preferences s2n_certificate_key_preferences_20260219;
49 extern struct s2n_certificate_key_preferences s2n_certificate_key_preferences_20260220;