| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 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 |
|
| 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; |