mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-27 06:12:32 +02:00
Base sm2/sm3 test on openssl version installed
Since the distros are now shipping with OpenSSL 3, no need to build it. Limit the sm2/sm3 test to OpenSSL 3. Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
f57ea92d6e
commit
1d4970b46b
@ -416,9 +416,12 @@ sign_verify prime256v1 sha384 0x030205:K:004[345678]
|
||||
sign_verify prime256v1 sha512 0x030206:K:004[345678]
|
||||
|
||||
# If openssl 3.0 is installed, test the SM2/3 algorithm combination
|
||||
if [ -x /opt/openssl3/bin/openssl ]; then
|
||||
PATH=/opt/openssl3/bin:$PATH LD_LIBRARY_PATH=/opt/openssl3/lib \
|
||||
sign_verify sm2 sm3 0x030211:K:004[345678]
|
||||
ssl_major_version=$(openssl version | sed -n 's/^OpenSSL \([^\.]\).*/\1/p')
|
||||
if [ "${ssl_major_version}" = 3 ]; then
|
||||
sign_verify sm2 sm3 0x030211:K:004[345678]
|
||||
else
|
||||
__skip() { echo "sm2/sm3 tests are skipped (ssl version)"; return $SKIP; }
|
||||
expect_pass __skip
|
||||
fi
|
||||
|
||||
# Test v2 signatures with EC-RDSA
|
||||
|
Loading…
x
Reference in New Issue
Block a user