Lines Matching refs:tpm2
744 int tpm2; in getoptions() local
746 tpm2 = tpm_is_tpm2(chip); in getoptions()
747 if (tpm2 < 0) in getoptions()
748 return tpm2; in getoptions()
750 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
805 if (tpm2 && opt->blobauth_len <= sizeof(opt->blobauth)) { in getoptions()
838 if (!tpm2 && i != HASH_ALGO_SHA1) { in getoptions()
845 if (!tpm2 || strlen(args[0].from) != (2 * digest_len)) in getoptions()
854 if (!tpm2) in getoptions()
871 int tpm2; in trusted_options_alloc() local
873 tpm2 = tpm_is_tpm2(chip); in trusted_options_alloc()
874 if (tpm2 < 0) in trusted_options_alloc()
882 if (!tpm2) in trusted_options_alloc()
892 int tpm2; in trusted_tpm_seal() local
894 tpm2 = tpm_is_tpm2(chip); in trusted_tpm_seal()
895 if (tpm2 < 0) in trusted_tpm_seal()
896 return tpm2; in trusted_tpm_seal()
907 if (!options->keyhandle && !tpm2) { in trusted_tpm_seal()
912 if (tpm2) in trusted_tpm_seal()
937 int tpm2; in trusted_tpm_unseal() local
939 tpm2 = tpm_is_tpm2(chip); in trusted_tpm_unseal()
940 if (tpm2 < 0) in trusted_tpm_unseal()
941 return tpm2; in trusted_tpm_unseal()
952 if (!options->keyhandle && !tpm2) { in trusted_tpm_unseal()
957 if (tpm2) in trusted_tpm_unseal()