Lines Matching refs:hmac_sensitive
841 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()
1013 *ret_secret_size = hmac_sensitive.sensitive.data.size; in tpm2_seal()
1024 explicit_bzero_safe(&hmac_sensitive, sizeof(hmac_sensitive)); in tpm2_seal()