Skip to content

Commit b4c9631

Browse files
WiP: [kris] R4 Artifacts for ML-DSA (#151)
* [kris] R4 Artifacts for ML-DSA * Artifacts for ML-DSA * Update readme.md * Update artifacts_certs_r4.zip
1 parent 2167061 commit b4c9631

File tree

8 files changed

+40
-10
lines changed

8 files changed

+40
-10
lines changed

providers/kris/artifacts_certs_r4.zip

22.5 KB
Binary file not shown.

providers/kris/default/oids.sh

-8
This file was deleted.

providers/kris/default/check_r3.sh providers/kris/scripts/check_r3.sh

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#set -x
44
source oids.sh
5-
source source
65

76
function check_cert() {
87

File renamed without changes.
File renamed without changes.

providers/kris/scripts/gen_r4.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
# set -x
3+
4+
DIR=artifacts
5+
source oids.sh
6+
7+
gen() {
8+
ALG=$1
9+
NAME=$2
10+
OID=$3
11+
12+
# Root/TA:
13+
mkdir -p ${DIR}
14+
# Generate key pair
15+
openssl req -x509 -new -newkey ${ALG} -keyout ${DIR}/${NAME}-${OID}_ta_priv.pem -extensions v3_ca -out ${DIR}/${NAME}-${OID}_ta.pem -nodes -subj "/CN=TA anti-atlas (PQShield)"
16+
# Also generate cert in DER
17+
openssl x509 -in ${DIR}/${NAME}-${OID}_ta.pem -out ${DIR}/${NAME}-${OID}_ta.der -outform DER
18+
}
19+
20+
# ML-DSA
21+
gen mldsa44 ml-dsa-44 ${MLDSA_44}
22+
gen mldsa65 ml-dsa-65 ${MLDSA_65}
23+
gen mldsa87 ml-dsa-87 ${MLDSA_87}
24+
25+
# Falcon
26+
gen falcon512 falcon512 ${FALCON_512}
27+
gen falcon1024 falcon1024 ${FALCON_1024}

providers/kris/scripts/oids.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export MLDSA_44=2.16.840.1.101.3.4.3.17
2+
export MLDSA_65=2.16.840.1.101.3.4.3.18
3+
export MLDSA_87=2.16.840.1.101.3.4.3.19
4+
export MLDSA_44_with_SHA512=2.16.840.1.101.3.4.3.32
5+
export MLDSA_65_with_SHA512=2.16.840.1.101.3.4.3.33
6+
export MLDSA_87_with_SHA512=2.16.840.1.101.3.4.3.34
7+
export FALCON_512=1.3.9999.3.6
8+
export FALCON_1024=1.3.9999.3.9
9+
10+
export PQSP_OID_MLDSA44=2.16.840.1.101.3.4.3.17
11+
export PQSP_OID_MLDSA65=2.16.840.1.101.3.4.3.18
12+
export PQSP_OID_MLDSA87=2.16.840.1.101.3.4.3.19

providers/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
* Provider short name: `kris`
7070
* Company name: PQShield
7171
* Company website: https://pqshield.com/
72-
* Implementation: Proprietary
72+
* Implementation: Proprietary. It's a wrapper that internally uses proprietary ML-DSA implementation.
7373

7474

7575
# OpenCA

0 commit comments

Comments
 (0)