Skip to content

Commit

Permalink
[kris] Move OIDs to separated file
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskwiatkowski committed Nov 8, 2023
1 parent 5a3c082 commit bec7932
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 29 deletions.
Binary file removed providers/kris/default/artifacts.zip
Binary file not shown.
33 changes: 13 additions & 20 deletions providers/kris/default/check_r3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,16 @@ check() {
cd ..
}

if [ $# -ne 1 ]; then
echo "No target directory to check provided. Exiting."
exit -1
else
pushd $1 >/dev/null 2>/dev/null
fi
#echo "Checking in $(pwd)"
if [ ! -d "artifacts" ]; then
echo "No artifacts found. Exiting."
exit -1
fi
cd artifacts
echo "key_algorithm_oid,test_result"
for oid_folder in 1*_ta.*; do
target=$(echo $oid_folder | sed -r "s/(.*)_ta.*/\1/g")
check_cert "${target}_ta"
result=$(check "${target}_ta.pem")
echo "${target},${result}"
done
popd 2>/dev/null >/dev/null
#echo "Checking in $(pwd)"
if [ ! -d "artifacts" ]; then
echo "No artifacts found. Exiting."
exit -1
fi
cd artifacts
echo "key_algorithm_oid,test_result"
for oid_folder in 1*_ta.*; do
target=$(echo $oid_folder | sed -r "s/(.*)_ta.*/\1/g")
check_cert "${target}_ta"
result=$(check "${target}_ta.pem")
echo "${target},${result}"
done
17 changes: 9 additions & 8 deletions providers/kris/default/gen_r3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# set -x

DIR=../artifacts
source oids.sh

gen() {
ALG=$1
Expand All @@ -17,13 +18,13 @@ gen() {
}

# Dilithium
gen DILITHIUM_2 1.3.6.1.4.1.2.267.7.4.4
gen DILITHIUM_3 1.3.6.1.4.1.2.267.7.6.5
gen DILITHIUM_5 1.3.6.1.4.1.2.267.7.8.7
gen MLDSA_44_IPD 1.3.6.1.4.1.2.267.12.4.4
gen MLDSA_65_IPD 1.3.6.1.4.1.2.267.12.6.5
gen MLDSA_87_IPD 1.3.6.1.4.1.2.267.12.8.7
gen DILITHIUM_2 ${DILITHIUM_2}
gen DILITHIUM_3 ${DILITHIUM_3}
gen DILITHIUM_5 ${DILITHIUM_5}
gen MLDSA_44_IPD ${MLDSA_44_IPD}
gen MLDSA_65_IPD ${MLDSA_65_IPD}
gen MLDSA_87_IPD ${MLDSA_87_IPD}

# Falcon
gen FALCON_512 1.3.9999.3.6
gen FALCON_1024 1.3.9999.3.9
gen FALCON_512 ${FALCON_512}
gen FALCON_1024 ${FALCON_1024}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export DILITHIUM_5=1.3.6.1.4.1.2.267.7.8.7
export MLDSA_44_IPD=1.3.6.1.4.1.2.267.12.4.4
export MLDSA_65_IPD=1.3.6.1.4.1.2.267.12.6.5
export MLDSA_87_IPD=1.3.6.1.4.1.2.267.12.8.7
export FALCON_512=1.3.9999.3.6
export FALCON_512=1.3.9999.3.1
export FALCON_1024=1.3.9999.3.9

0 comments on commit bec7932

Please sign in to comment.