-
Notifications
You must be signed in to change notification settings - Fork 1
/
qsc.h
96 lines (90 loc) · 4.13 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
///// 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" }, \
{ 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" }, \
///// 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("sphincsharaka128fsimple", "1.3.9999.6.1.4"); \
oid_add_from_string("p256_sphincsharaka128fsimple", "1.3.9999.6.1.5"); \
oid_add_from_string("rsa3072_sphincsharaka128fsimple", "1.3.9999.6.1.6"); \
oid_add_from_string("sphincsharaka192fsimple", "1.3.9999.6.2.3"); \
oid_add_from_string("p384_sphincsharaka192fsimple", "1.3.9999.6.2.4"); \
oid_add_from_string("sphincsharaka256fsimple", "1.3.9999.6.3.3"); \
oid_add_from_string("p521_sphincsharaka256fsimple", "1.3.9999.6.3.4"); \
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