Home
last modified time | relevance | path

Searched refs:hmac_sensitive (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/shared/
Dtpm2-util.c841 TPM2B_SENSITIVE_CREATE hmac_sensitive; in tpm2_seal() local
919 hmac_sensitive = (TPM2B_SENSITIVE_CREATE) { in tpm2_seal()
920 .size = sizeof(hmac_sensitive.sensitive), in tpm2_seal()
924 hash_pin(pin, strlen(pin), hmac_sensitive.sensitive.userAuth.buffer); in tpm2_seal()
925 hmac_sensitive.sensitive.userAuth.size = SHA256_DIGEST_SIZE; in tpm2_seal()
927 assert(sizeof(hmac_sensitive.sensitive.data.buffer) >= hmac_sensitive.sensitive.data.size); in tpm2_seal()
933 …r = genuine_random_bytes(hmac_sensitive.sensitive.data.buffer, hmac_sensitive.sensitive.data.size,… in tpm2_seal()
947 &hmac_sensitive, in tpm2_seal()
962 secret = memdup(hmac_sensitive.sensitive.data.buffer, hmac_sensitive.sensitive.data.size); in tpm2_seal()
963 … explicit_bzero_safe(hmac_sensitive.sensitive.data.buffer, hmac_sensitive.sensitive.data.size); in tpm2_seal()
[all …]