Lines Matching refs:tpm2
755 int tpm2; in getoptions() local
757 tpm2 = tpm_is_tpm2(chip); in getoptions()
758 if (tpm2 < 0) in getoptions()
759 return tpm2; in getoptions()
761 opt->hash = tpm2 ? HASH_ALGO_SHA256 : HASH_ALGO_SHA1; in getoptions()
813 if (tpm2 && opt->blobauth_len <= sizeof(opt->blobauth)) { in getoptions()
846 if (!tpm2 && i != HASH_ALGO_SHA1) { in getoptions()
853 if (!tpm2 || strlen(args[0].from) != (2 * digest_len)) in getoptions()
862 if (!tpm2) in getoptions()
944 int tpm2; in trusted_options_alloc() local
946 tpm2 = tpm_is_tpm2(chip); in trusted_options_alloc()
947 if (tpm2 < 0) in trusted_options_alloc()
955 if (!tpm2) in trusted_options_alloc()
994 int tpm2; in trusted_instantiate() local
996 tpm2 = tpm_is_tpm2(chip); in trusted_instantiate()
997 if (tpm2 < 0) in trusted_instantiate()
998 return tpm2; in trusted_instantiate()
1036 if (tpm2) in trusted_instantiate()
1056 if (tpm2) in trusted_instantiate()