Skip to content

Commit

Permalink
tests for dilithium
Browse files Browse the repository at this point in the history
  • Loading branch information
kojo1 committed Nov 1, 2024
1 parent 3b2f805 commit 417a655
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: ./autogen.sh
- name: wolfssl configure
working-directory: ./wolfssl
run: ./configure --enable-wolfclu --enable-crl --enable-dsa
run: ./configure --enable-wolfclu --enable-crl --enable-dsa --enable-dilithium
- name: wolfssl make
working-directory: ./wolfssl
run: make
Expand Down
18 changes: 10 additions & 8 deletions tests/genkey_sign_ver/genkey-sign-ver-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,15 @@ SIGOUTNAME="ed-signed.sig"
DERPEMRAW="raw"
gen_key_sign_ver_test ${ALGORITHM} ${KEYFILENAME} ${SIGOUTNAME} ${DERPEMRAW}

ALGORITHM="dilithium"
KEYFILENAME="mldsakey"
SIGOUTNAME="mldsa-signed.sig"
DERPEMRAW="der"
for level in 2 3 5
do
gen_key_sign_ver_test ${ALGORITHM} ${KEYFILENAME} ${SIGOUTNAME} ${DERPEMRAW} ${level}
done
if grep -q "#define HAVE_DILITHIUM" /usr/local/include/wolfssl/options.h; then
ALGORITHM="dilithium"
KEYFILENAME="mldsakey"
SIGOUTNAME="mldsa-signed.sig"
DERPEMRAW="der"
for level in 2 3 5
do
gen_key_sign_ver_test ${ALGORITHM} ${KEYFILENAME} ${SIGOUTNAME} ${DERPEMRAW} ${level}
done

ALGORITHM="dilithium"
KEYFILENAME="mldsakey"
Expand All @@ -193,5 +194,6 @@ for level in 2 3 5
do
gen_key_sign_ver_test ${ALGORITHM} ${KEYFILENAME} ${SIGOUTNAME} ${DERPEMRAW} ${level}
done
fi

exit 0

0 comments on commit 417a655

Please sign in to comment.