Lines Matching refs:alg
273 TPMI_ALG_PUBLIC alg, in tpm2_make_primary() argument
330 if (IN_SET(alg, 0, TPM2_ALG_ECC)) { in tpm2_make_primary()
348 if (alg != 0) in tpm2_make_primary()
355 alg = TPM2_ALG_ECC; in tpm2_make_primary()
359 if (IN_SET(alg, 0, TPM2_ALG_RSA)) { in tpm2_make_primary()
378 else if (alg == 0) { in tpm2_make_primary()
381 alg = TPM2_ALG_RSA; in tpm2_make_primary()
391 *ret_alg = alg; in tpm2_make_primary()
1444 const char *tpm2_primary_alg_to_string(uint16_t alg) { in tpm2_primary_alg_to_string() argument
1445 if (alg == TPM2_ALG_ECC) in tpm2_primary_alg_to_string()
1447 if (alg == TPM2_ALG_RSA) in tpm2_primary_alg_to_string()
1452 int tpm2_primary_alg_from_string(const char *alg) { in tpm2_primary_alg_from_string() argument
1453 if (streq_ptr(alg, "ecc")) in tpm2_primary_alg_from_string()
1455 if (streq_ptr(alg, "rsa")) in tpm2_primary_alg_from_string()