Lines Matching refs:tpm2
748 int tpm2; in getoptions() local
750 tpm2 = tpm_is_tpm2(NULL); in getoptions()
751 if (tpm2 < 0) in getoptions()
752 return tpm2; in getoptions()
754 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
819 if (!tpm2 && i != HASH_ALGO_SHA1) { in getoptions()
826 if (!tpm2 || strlen(args[0].from) != (2 * digest_len)) in getoptions()
835 if (!tpm2) in getoptions()
917 int tpm2; in trusted_options_alloc() local
919 tpm2 = tpm_is_tpm2(NULL); in trusted_options_alloc()
920 if (tpm2 < 0) in trusted_options_alloc()
928 if (!tpm2) in trusted_options_alloc()
967 int tpm2; in trusted_instantiate() local
969 tpm2 = tpm_is_tpm2(NULL); in trusted_instantiate()
970 if (tpm2 < 0) in trusted_instantiate()
971 return tpm2; in trusted_instantiate()
1009 if (tpm2) in trusted_instantiate()
1025 if (tpm2) in trusted_instantiate()