]> git.proxmox.com Git - swtpm.git/commitdiff
swtpm_setup: rename key creation function to have _ek in the name
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Sun, 22 Oct 2017 01:09:31 +0000 (21:09 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 7 Aug 2018 16:19:46 +0000 (12:19 -0400)
Rename all TPM 2 key creation functions to have _ek in the name.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/swtpm_setup/swtpm_setup.sh.in

index 6faebcec5246bf9b391dbae63dded6f3cce5dc4b..6ede4aabfc98163a605bb459d4a82ee5b224abba 100755 (executable)
@@ -811,7 +811,7 @@ tpm2_changeeps()
 # Create the primary key (EK equivalent)
 #
 # @param1: flags
-tpm2_createprimary_rsa()
+tpm2_createprimary_ek_rsa()
 {
        local flags="$1"
 
@@ -933,7 +933,7 @@ function tpm2_createprimary_rsa_params()
 # Create the primary key as an ECC key (EK equivalent)
 #
 # @param1: flags
-tpm2_createprimary_ecc()
+tpm2_createprimary_ek_ecc()
 {
        local flags="$1"
 
@@ -1086,9 +1086,9 @@ tpm2_createprimary()
        [ $? -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