OID file for post-quantum algorithms

View an excerpt of the pqc_oids.h file.


#ifndef _PQC_OIDS_H_
#define _PQC_OIDS_H_

/*
 * OIDs and their DER encoding for the post-quantum crypto algorithms
 * supported by OpenCryptoki:
 */

/* Dilithium Round 2 high-security (SHAKE-256): 1.3.6.1.4.1.2.267.1.6.5 */
#define OCK_DILITHIUM_R2_65        { 0x06, 0x0B, 0x2B, 0x06, 0x01, 0x04, \
                                     0x01, 0x02, 0x82, 0x0B, 0x01, 0x06, 0x05 }

/* Dilithium Round 2 for outbound authentication: 1.3.6.1.4.1.2.267.1.8.7 */
#define OCK_DILITHIUM_R2_87        { 0x06, 0x0B, 0x2B, 0x06, 0x01, 0x04, \
                                     0x01, 0x02, 0x82, 0x0B, 0x01, 0x08, 0x07 }

/* Dilithium Round 3 weak (SHAKE-256): 1.3.6.1.4.1.2.267.7.4.4 */
#define OCK_DILITHIUM_R3_44        { 0x06, 0x0B, 0x2B, 0x06, 0x01, 0x04, \
                                     0x01, 0x02, 0x82, 0x0B, 0x07, 0x04, 0x04 }

…
…

/* Kyber Round 2 768 (SHAKE-128): 1.3.6.1.4.1.2.267.5.3.3 */
#define OCK_KYBER_R2_768           { 0x06, 0x0B, 0x2B, 0x06, 0x01, 0x04, \
                                     0x01, 0x02, 0x82, 0x0B, 0x05, 0x03, 0x03 }

/* Kyber Round 2 1024 (SHAKE-128): 1.3.6.1.4.1.2.267.5.4.4 */
#define OCK_KYBER_R2_1024          { 0x06, 0x0B, 0x2B, 0x06, 0x01, 0x04, \
                                     0x01, 0x02, 0x82, 0x0B, 0x05, 0x04, 0x04 }

#endif                          // _PQC_OIDS_H_    
 

Also read the following topic: