Function report |
Source Code:security\keys\trusted-keys\trusted_tpm1.c |
Create Date:2022-07-28 18:29:59 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alculate authorization info fields to send to TPM
Proto:int TSS_authhmac(unsigned char *digest, const unsigned char *key, unsigned int keylen, unsigned char *h1, unsigned char *h2, unsigned int h3, ...)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned char * | digest | |
| const unsigned char * | key | |
| unsigned int | keylen | |
| unsigned char * | h1 | |
| unsigned char * | h2 | |
| unsigned int | h3 |
| 137 | sdesc = init_sdesc(hashalg) |
| 148 | cycle |
| 150 | If dlen == 0 Then Break |
| 153 | If Not data Then |
| 158 | If ret < 0 Then Break |
| 164 | If Not ret Then ret = TSS_rawhmac(digest, key, keylen, SHA1_DIGEST_SIZE, paramdigest, TPM_NONCE_SIZE, h1, TPM_NONCE_SIZE, h2, 1, & c, 0, 0) |
| 168 | out : |
| 170 | Return ret |
| Name | Describe |
|---|---|
| tpm_seal | Have the TPM seal(encrypt) the trusted key, possibly based on* Platform Configuration Registers (PCRs). AUTH1 for sealing key. |
| tpm_unseal | se the AUTH2_COMMAND form of unseal, to authorize both key and blob |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |