tpm2-tss  master
TPM Software stack 2.0 TCG spec compliant implementation
Internal Cryptographic Backend

Functions

TSS2_RC iesys_crypto_hash_get_digest_size (TPM2_ALG_ID hashAlg, size_t *size)
 

Detailed Description

The types and functions used internally by ESAPI for cryptographic operations. Multiple implementations of these functions may exist for different cryptographic backends.

Function Documentation

◆ iesys_crypto_hash_get_digest_size()

TSS2_RC iesys_crypto_hash_get_digest_size ( TPM2_ALG_ID  hashAlg,
size_t *  size 
)

Provide the digest size for a given hash algorithm.

This function provides the size of the digest for a given hash algorithm.

Parameters
[in]hashAlgThe hash algorithm to get the size for.
[out]sizeThe side of a digest of the hash algorithm.
Return values
TSS2_RC_SUCCESSon success.
TSS2_ESYS_RC_BAD_VALUEif hashAlg is unknown or unsupported.