Crate tpm2_crypto

Crate tpm2_crypto 

Source
Expand description

TPM 2.0 cryptographic for TPM 2.0 interactions.

Enums§

Error
Top-level error type for the crate.

Constants§

KDF_LABEL_DUPLICATE
KDF_LABEL_INTEGRITY
KDF_LABEL_STORAGE
UNCOMPRESSED_POINT_TAG

Functions§

digest
Computes a cryptographic digest over a series of data chunks.
ecdh
Performs ECDH and derives a seed using KDFe key derivation function from TCG TPM 2.0 Architeture specification. The function is generic over the elliptic curve.
hash_name
Returns TpmAlgId matching the name.
hash_size
Returns the size of the digest for a given hash algorithm.
hmac
Computes an HMAC digest over a series of data chunks.
hmac_verify
Verifies an HMAC signature over a series of data chunks.
kdfa
Implements the KDFa key derivation function from the TPM specification.
kdfe
Implements the KDFe key derivation function from SP 800-56A for ECDH.
make_name
Calculates the cryptographics name of a transient or persistent TPM object.