Skip to content

Commit

Permalink
detect algorithms to test dynamically (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
baentsch committed May 30, 2023
1 parent 4bf202b commit 2c7a06a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 36 deletions.
1 change: 0 additions & 1 deletion oqs-template/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ def load_config(include_disabled_sigs=False):
populate('oqsprov/oqs_encode_key2any.c', config, '/////')
populate('oqsprov/oqs_decode_der2key.c', config, '/////')
populate('oqsprov/oqsprov_keys.c', config, '/////')
populate('scripts/runtests.sh', config, '#####')

config2 = load_config(include_disabled_sigs=True)
config2 = complete_config(config2)
Expand Down
9 changes: 0 additions & 9 deletions oqs-template/scripts/runtests.sh/algs.fragment

This file was deleted.

34 changes: 8 additions & 26 deletions scripts/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,32 +119,14 @@ if [ $? -ne 0 ]; then
fi

# Run interop-tests:
echo "Cert gen/verify, CMS sign/verify, CA tests for all enabled algorithms commencing..."
##### OQS_TEMPLATE_FRAGMENT_ALGS_START
interop dilithium2
interop p256_dilithium2
interop rsa3072_dilithium2
interop dilithium3
interop p384_dilithium3
interop dilithium5
interop p521_dilithium5
interop falcon512
interop p256_falcon512
interop rsa3072_falcon512
interop falcon1024
interop p521_falcon1024
interop sphincssha2128fsimple
interop p256_sphincssha2128fsimple
interop rsa3072_sphincssha2128fsimple
interop sphincssha2128ssimple
interop p256_sphincssha2128ssimple
interop rsa3072_sphincssha2128ssimple
interop sphincssha2192fsimple
interop p384_sphincssha2192fsimple
interop sphincsshake128fsimple
interop p256_sphincsshake128fsimple
interop rsa3072_sphincsshake128fsimple
##### OQS_TEMPLATE_FRAGMENT_ALGS_END
echo "Cert gen/verify, CMS sign/verify, CA tests for all enabled OQS signature algorithms commencing: "
for alg in `$OPENSSL_APP list -signature-algorithms | grep oqsprovider | sed -e "s/ @ oqsprovider//g" | sed -e "s/^ //g"`
do
if [ "$1" = "-V" ]; then
echo "Testing $alg"
fi
interop $alg
done

echo

Expand Down

0 comments on commit 2c7a06a

Please sign in to comment.