crypto

Verify crypto algorithms

What It Tests

  • crypto: Verify that every crypto algorithms pass their selftests

  • cryptsetup: benchmark tests for crypto algorithms

Preconditions

  • For ostree enabled image, it shall be unlocked via ostree admin unlock --hotfix

Test Parameters

  • No parameters required for crypto.sh

  • Parameters for cryptsetup.sh

Parameter

Default

Description

SKIP_INSTALL

"false"

Skip package installation

HASH

"sha1 sha256 sha512"

hash algorithm

CIPHER

"aes-cbc_128 aes-cbc_256 aes-xts_256 aes-xts_512"

cipher algorithm

Test Steps

  • crypto

cd ./automated/linux/crypto/
./crypto.sh 
  • cryptsetup

cd ./automated/linux/crypto/
./cryptsetup.sh -s "${SKIP_INSTALL}" -h "${HASH}" -c "${CIPHER}"

Refer to crypto.yaml or cryptsetup.yaml for complete test definition and execution details.

Expected Results

  • Each crypto algorithm pass its selftest

  • the benchmark data of the specified algorithm is generated

References