File: openssl-engine

package info (click to toggle)
qatengine 2.0.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,264 kB
  • sloc: ansic: 88,285; sh: 475; makefile: 245
file content (13 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# autopkgtest check: Check if the QAT engine is available for openssl
# (C) 2024 Canonical Ltd.
# Author: Hector Cao <hector.cao@canonical.com>

set -e

# run openssl benchmark with qatengine and verify that the engine QAT is enabled
# NB: in absence of QAT hardware, QAT engine will use software acceleration
# NB : output the stderr & stdout to file and check for QAT engine usage
openssl speed -seconds 1 -elapsed -engine qatengine -elapsed rsa2048 > $AUTOPKGTEST_ARTIFACTS/openssl_output.txt 2>&1

grep "Engine \"qatengine\" set" $AUTOPKGTEST_ARTIFACTS/openssl_output.txt