Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\tpm.h Create Date:2022-07-28 18:29:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tpm_get_random

Proto:static inline int tpm_get_random(struct tpm_chip *chip, u8 *data, size_t max)

Type:int

Parameter:

TypeParameterName
struct tpm_chip *chip
u8 *data
size_tmax
431  Return -ENODEV
Caller
NameDescribe
osapCreate an object specific authorisation protocol (OSAP) session
tpm_sealHave the TPM seal(encrypt) the trusted key, possibly based on* Platform Configuration Registers (PCRs). AUTH1 for sealing key.
tpm_unsealse the AUTH2_COMMAND form of unseal, to authorize both key and blob
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.