forked from open-quantum-safe/openssl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqsc.h
135 lines (129 loc) · 5.64 KB
/
qsc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
///// OQS_TEMPLATE_FRAGMENT_OQS_CURVE_ID_NAME_STR_START
#define QSC_KEMS \
{ 0x0200, "frodo640aes" }, \
{ 0x2F00, "p256_frodo640aes" }, \
{ 0x0201, "frodo640shake" }, \
{ 0x2F01, "p256_frodo640shake" }, \
{ 0x0202, "frodo976aes" }, \
{ 0x2F02, "p384_frodo976aes" }, \
{ 0x0203, "frodo976shake" }, \
{ 0x2F03, "p384_frodo976shake" }, \
{ 0x0204, "frodo1344aes" }, \
{ 0x2F04, "p521_frodo1344aes" }, \
{ 0x0205, "frodo1344shake" }, \
{ 0x2F05, "p521_frodo1344shake" }, \
{ 0x023A, "kyber512" }, \
{ 0x2F3A, "p256_kyber512" }, \
{ 0x023C, "kyber768" }, \
{ 0x2F3C, "p384_kyber768" }, \
{ 0x023D, "kyber1024" }, \
{ 0x2F3D, "p521_kyber1024" }, \
{ 0x0214, "ntru_hps2048509" }, \
{ 0x2F14, "p256_ntru_hps2048509" }, \
{ 0x0215, "ntru_hps2048677" }, \
{ 0x2F15, "p384_ntru_hps2048677" }, \
{ 0x0216, "ntru_hps4096821" }, \
{ 0x2F16, "p521_ntru_hps4096821" }, \
{ 0x0245, "ntru_hps40961229" }, \
{ 0x2F45, "p521_ntru_hps40961229" }, \
{ 0x0217, "ntru_hrss701" }, \
{ 0x2F17, "p384_ntru_hrss701" }, \
{ 0x0246, "ntru_hrss1373" }, \
{ 0x2F46, "p521_ntru_hrss1373" }, \
{ 0x0218, "lightsaber" }, \
{ 0x2F18, "p256_lightsaber" }, \
{ 0x0219, "saber" }, \
{ 0x2F19, "p384_saber" }, \
{ 0x021A, "firesaber" }, \
{ 0x2F1A, "p521_firesaber" }, \
{ 0x021B, "sidhp434" }, \
{ 0x2F1B, "p256_sidhp434" }, \
{ 0x021C, "sidhp503" }, \
{ 0x2F1C, "p256_sidhp503" }, \
{ 0x021D, "sidhp610" }, \
{ 0x2F1D, "p384_sidhp610" }, \
{ 0x021E, "sidhp751" }, \
{ 0x2F1E, "p521_sidhp751" }, \
{ 0x021F, "sikep434" }, \
{ 0x2F1F, "p256_sikep434" }, \
{ 0x0220, "sikep503" }, \
{ 0x2F20, "p256_sikep503" }, \
{ 0x0221, "sikep610" }, \
{ 0x2F21, "p384_sikep610" }, \
{ 0x0222, "sikep751" }, \
{ 0x2F22, "p521_sikep751" }, \
{ 0x0238, "bikel1" }, \
{ 0x2F38, "p256_bikel1" }, \
{ 0x023B, "bikel3" }, \
{ 0x2F3B, "p384_bikel3" }, \
{ 0x023E, "kyber90s512" }, \
{ 0x2F3E, "p256_kyber90s512" }, \
{ 0x023F, "kyber90s768" }, \
{ 0x2F3F, "p384_kyber90s768" }, \
{ 0x0240, "kyber90s1024" }, \
{ 0x2F40, "p521_kyber90s1024" }, \
{ 0x022C, "hqc128" }, \
{ 0x2F2C, "p256_hqc128" }, \
{ 0x022D, "hqc192" }, \
{ 0x2F2D, "p384_hqc192" }, \
{ 0x022E, "hqc256" }, \
{ 0x2F2E, "p521_hqc256" }, \
{ 0x022F, "ntrulpr653" }, \
{ 0x2F2F, "p256_ntrulpr653" }, \
{ 0x0230, "ntrulpr761" }, \
{ 0x2F43, "p256_ntrulpr761" }, \
{ 0x0231, "ntrulpr857" }, \
{ 0x2F31, "p384_ntrulpr857" }, \
{ 0x0241, "ntrulpr1277" }, \
{ 0x2F41, "p521_ntrulpr1277" }, \
{ 0x0232, "sntrup653" }, \
{ 0x2F32, "p256_sntrup653" }, \
{ 0x0233, "sntrup761" }, \
{ 0x2F44, "p256_sntrup761" }, \
{ 0x0234, "sntrup857" }, \
{ 0x2F34, "p384_sntrup857" }, \
{ 0x0242, "sntrup1277" }, \
{ 0x2F42, "p521_sntrup1277" }, \
///// OQS_TEMPLATE_FRAGMENT_OQS_CURVE_ID_NAME_STR_END
///// OQS_TEMPLATE_FRAGMENT_ASSIGN_SIG_OIDS_START
#define QSC_SIGS \
oid_add_from_string("dilithium2", "1.3.6.1.4.1.2.267.7.4.4"); \
oid_add_from_string("p256_dilithium2", "1.3.9999.2.7.1"); \
oid_add_from_string("rsa3072_dilithium2", "1.3.9999.2.7.2"); \
oid_add_from_string("dilithium3", "1.3.6.1.4.1.2.267.7.6.5"); \
oid_add_from_string("p384_dilithium3", "1.3.9999.2.7.3"); \
oid_add_from_string("dilithium5", "1.3.6.1.4.1.2.267.7.8.7"); \
oid_add_from_string("p521_dilithium5", "1.3.9999.2.7.4"); \
oid_add_from_string("dilithium2_aes", "1.3.6.1.4.1.2.267.11.4.4"); \
oid_add_from_string("p256_dilithium2_aes", "1.3.9999.2.11.1"); \
oid_add_from_string("rsa3072_dilithium2_aes", "1.3.9999.2.11.2"); \
oid_add_from_string("dilithium3_aes", "1.3.6.1.4.1.2.267.11.6.5"); \
oid_add_from_string("p384_dilithium3_aes", "1.3.9999.2.11.3"); \
oid_add_from_string("dilithium5_aes", "1.3.6.1.4.1.2.267.11.8.7"); \
oid_add_from_string("p521_dilithium5_aes", "1.3.9999.2.11.4"); \
oid_add_from_string("falcon512", "1.3.9999.3.1"); \
oid_add_from_string("p256_falcon512", "1.3.9999.3.2"); \
oid_add_from_string("rsa3072_falcon512", "1.3.9999.3.3"); \
oid_add_from_string("falcon1024", "1.3.9999.3.4"); \
oid_add_from_string("p521_falcon1024", "1.3.9999.3.5"); \
oid_add_from_string("picnicl1full", "1.3.6.1.4.1.311.89.2.1.7"); \
oid_add_from_string("p256_picnicl1full", "1.3.6.1.4.1.311.89.2.1.8"); \
oid_add_from_string("rsa3072_picnicl1full", "1.3.6.1.4.1.311.89.2.1.9"); \
oid_add_from_string("picnic3l1", "1.3.6.1.4.1.311.89.2.1.21"); \
oid_add_from_string("p256_picnic3l1", "1.3.6.1.4.1.311.89.2.1.22"); \
oid_add_from_string("rsa3072_picnic3l1", "1.3.6.1.4.1.311.89.2.1.23"); \
oid_add_from_string("rainbowIclassic", "1.3.9999.5.1.1.1"); \
oid_add_from_string("p256_rainbowIclassic", "1.3.9999.5.1.2.1"); \
oid_add_from_string("rsa3072_rainbowIclassic", "1.3.9999.5.1.3.1"); \
oid_add_from_string("rainbowVclassic", "1.3.9999.5.3.1.1"); \
oid_add_from_string("p521_rainbowVclassic", "1.3.9999.5.3.2.1"); \
oid_add_from_string("sphincsharaka128frobust", "1.3.9999.6.1.1"); \
oid_add_from_string("p256_sphincsharaka128frobust", "1.3.9999.6.1.2"); \
oid_add_from_string("rsa3072_sphincsharaka128frobust", "1.3.9999.6.1.3"); \
oid_add_from_string("sphincssha256128frobust", "1.3.9999.6.4.1"); \
oid_add_from_string("p256_sphincssha256128frobust", "1.3.9999.6.4.2"); \
oid_add_from_string("rsa3072_sphincssha256128frobust", "1.3.9999.6.4.3"); \
oid_add_from_string("sphincsshake256128frobust", "1.3.9999.6.7.1"); \
oid_add_from_string("p256_sphincsshake256128frobust", "1.3.9999.6.7.2"); \
oid_add_from_string("rsa3072_sphincsshake256128frobust", "1.3.9999.6.7.3"); \
///// OQS_TEMPLATE_FRAGMENT_ASSIGN_SIG_OIDS_END