7393454a2f
This adds scripts that mock sha512hmac and fipshmac using openssl. These are used instead of the built hashers to hash libkcapi binaries on kernels that don't suport the userspace Crypto API interface properly (e.g. RHEL-7 kernels). Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
7 lines
156 B
Bash
7 lines
156 B
Bash
#!/bin/bash
|
|
|
|
# Mocks sha512hmac using the openssl tool.
|
|
# Only for use during RPM build.
|
|
|
|
openssl sha512 -hmac FIPS-FTW-RHT2009 -hex "$1" | cut -f 2 -d ' '
|