Rename all TPM 2 key creation functions to have _ek in the name.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
# Create the primary key (EK equivalent)
#
# @param1: flags
-tpm2_createprimary_rsa()
+tpm2_createprimary_ek_rsa()
{
local flags="$1"
# Create the primary key as an ECC key (EK equivalent)
#
# @param1: flags
-tpm2_createprimary_ecc()
+tpm2_createprimary_ek_ecc()
{
local flags="$1"
[ $? -ne 0 ] && return 1
if [ $((flags & SETUP_TPM2_ECC_F)) -ne 0 ]; then
- res=$(tpm2_createprimary_ecc "$flags")
+ res=$(tpm2_createprimary_ek_ecc "$flags")
else
- res=$(tpm2_createprimary_rsa "$flags")
+ res=$(tpm2_createprimary_ek_rsa "$flags")
fi
[ $? -ne 0 ] && return 1