Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\trusted-keys\trusted_tpm1.c Create Date:2022-07-28 18:30:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Have the TPM seal(encrypt) the symmetric key

Proto:static int key_seal(struct trusted_key_payload *p, struct trusted_key_options *o)

Type:int

Parameter:

TypeParameterName
struct trusted_key_payload *p
struct trusted_key_options *o
662  ret = tpm_buf_init( & tb, 0, 0)
663  If ret Then Return ret
667  key[key_len] = migratable
669  ret = Have the TPM seal(encrypt) the trusted key, possibly based on* Platform Configuration Registers (PCRs). AUTH1 for sealing key.
672  If ret < 0 Then pr_info("trusted_key: srkseal failed (%d)\n", ret)
675  tpm_buf_destroy( & tb)
676  Return ret
Caller
NameDescribe
trusted_instantiaterusted_instantiate - create a new trusted key* Unseal an existing trusted blob or, for a new key, get a* random key, then seal and create a trusted key-type key,* adding it to the specified keyring.* On success, return 0. Otherwise return errno.
trusted_updaterusted_update - reseal an existing key with new PCR values