• Home
  • Raw
  • Download

Lines Matching full:hashalgorithm

232  * @param[in] hashAlgorithm The TSS hash algorithm identifier
235 * hashAlgorithm could be found
239 get_hash_md(TPM2_ALG_ID hashAlgorithm) in get_hash_md() argument
241 switch (hashAlgorithm) { in get_hash_md()
620 * @param[in] hashAlgorithm The TSS identifier of the hash algorithm to use
633 TPMI_ALG_HASH hashAlgorithm, in ifapi_ecc_der_sig_to_tpm() argument
662 tpmSignature->signature.ecdsa.hash = hashAlgorithm; in ifapi_ecc_der_sig_to_tpm()
684 * @param[in] hashAlgorithm The TSS identifier for the hash algorithm used
700 TPMI_ALG_HASH hashAlgorithm, in ifapi_der_sig_to_tpm() argument
712 tpmSignature->signature.rsapss.hash = hashAlgorithm; in ifapi_der_sig_to_tpm()
718 tpmSignature->signature.rsassa.hash = hashAlgorithm; in ifapi_der_sig_to_tpm()
728 tpmPublic->unique.ecc.x.size, hashAlgorithm, in ifapi_der_sig_to_tpm()
1236 const EVP_MD *hashAlgorithm = get_hash_md(signatureScheme->details.any.hashAlg); in ifapi_verify_signature_quote() local
1237 if (!hashAlgorithm) { in ifapi_verify_signature_quote()
1243 if (1 != EVP_DigestVerifyInit(mdctx, &pctx, hashAlgorithm, NULL, publicKey)) { in ifapi_verify_signature_quote()
1365 * @param[in] hashAlgorithm The TSS identifier of the hash algorithm
1368 * hashAlgorithm is valid
1369 * @retval 0 if hashAlgorithm is invalid
1372 ifapi_hash_get_digest_size(TPM2_ALG_ID hashAlgorithm) in ifapi_hash_get_digest_size() argument
1374 switch (hashAlgorithm) { in ifapi_hash_get_digest_size()
1399 * @param[in] hashAlgorithm The TSS hash algorithm identifier to convert
1405 get_ossl_hash_md(TPM2_ALG_ID hashAlgorithm) in get_ossl_hash_md() argument
1407 switch (hashAlgorithm) { in get_ossl_hash_md()
1429 * @param[in] hashAlgorithm The TSS hash identifier for the hash algorithm to use.
1432 * @retval TSS2_FAPI_RC_BAD_VALUE if hashAlgorithm is invalid
1439 TPM2_ALG_ID hashAlgorithm) in ifapi_crypto_hash_start() argument
1446 LOG_DEBUG("call: context=%p hashAlg=%" PRIu16, context, hashAlgorithm); in ifapi_crypto_hash_start()
1451 if (!(mycontext->osslHashAlgorithm = get_ossl_hash_md(hashAlgorithm))) { in ifapi_crypto_hash_start()
1454 hashAlgorithm); in ifapi_crypto_hash_start()
1457 if (!(mycontext->hashSize = ifapi_hash_get_digest_size(hashAlgorithm))) { in ifapi_crypto_hash_start()
1460 hashAlgorithm); in ifapi_crypto_hash_start()
1751 * @param[out] hashAlgorithm A suitable hash algorithm for the digest size
1754 * @retval TSS2_FAPI_RC_BAD_REFERENCE if hashAlgorithm is NULL
1758 ifapi_get_hash_alg_for_size(uint16_t size, TPMI_ALG_HASH *hashAlgorithm) in ifapi_get_hash_alg_for_size() argument
1761 return_if_null(hashAlgorithm, "hashAlgorithm is NULL", TSS2_FAPI_RC_BAD_REFERENCE); in ifapi_get_hash_alg_for_size()
1766 *hashAlgorithm = TPM2_ALG_SHA1; in ifapi_get_hash_alg_for_size()
1769 *hashAlgorithm = TPM2_ALG_SHA256; in ifapi_get_hash_alg_for_size()
1772 *hashAlgorithm = TPM2_ALG_SHA384; in ifapi_get_hash_alg_for_size()
1775 *hashAlgorithm = TPM2_ALG_SHA512; in ifapi_get_hash_alg_for_size()