Skip to content

Commit 2ee7c1b

Browse files
xnoxherbertx
authored andcommitted
x509: Add OIDs for FIPS 202 SHA-3 hash and signatures
Add OID for FIPS 202 SHA-3 family of hash functions, RSA & ECDSA signatures using those. Limit to 256 or larger sizes, for interoperability reasons. 224 is too weak for any practical uses. Signed-off-by: Dimitri John Ledkov <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 2f1f34c commit 2ee7c1b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

include/linux/oid_registry.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,17 @@ enum OID {
129129
OID_TPMImportableKey, /* 2.23.133.10.1.4 */
130130
OID_TPMSealedData, /* 2.23.133.10.1.5 */
131131

132+
/* CSOR FIPS-202 SHA-3 */
133+
OID_sha3_256, /* 2.16.840.1.101.3.4.2.8 */
134+
OID_sha3_384, /* 2.16.840.1.101.3.4.2.9 */
135+
OID_sha3_512, /* 2.16.840.1.101.3.4.2.10 */
136+
OID_id_ecdsa_with_sha3_256, /* 2.16.840.1.101.3.4.3.10 */
137+
OID_id_ecdsa_with_sha3_384, /* 2.16.840.1.101.3.4.3.11 */
138+
OID_id_ecdsa_with_sha3_512, /* 2.16.840.1.101.3.4.3.12 */
139+
OID_id_rsassa_pkcs1_v1_5_with_sha3_256, /* 2.16.840.1.101.3.4.3.14 */
140+
OID_id_rsassa_pkcs1_v1_5_with_sha3_384, /* 2.16.840.1.101.3.4.3.15 */
141+
OID_id_rsassa_pkcs1_v1_5_with_sha3_512, /* 2.16.840.1.101.3.4.3.16 */
142+
132143
OID__NR
133144
};
134145

0 commit comments

Comments
 (0)