Searched refs:symKey (Results 1 – 10 of 10) sorted by relevance
/external/tpm2/ |
D | EncryptDecrypt.c | 27 OBJECT *symKey; in TPM2_EncryptDecrypt() local 34 symKey = ObjectGet(in->keyHandle); in TPM2_EncryptDecrypt() 37 if( symKey->publicArea.type != TPM_ALG_SYMCIPHER in TPM2_EncryptDecrypt() 38 || symKey->attributes.publicOnly == SET) in TPM2_EncryptDecrypt() 43 in->mode = symKey->publicArea.parameters.symDetail.sym.mode.sym; in TPM2_EncryptDecrypt() 47 if( symKey->publicArea.objectAttributes.restricted == SET in TPM2_EncryptDecrypt() 48 && symKey->publicArea.parameters.symDetail.sym.mode.sym != in->mode) in TPM2_EncryptDecrypt() 61 keySize = symKey->publicArea.parameters.symDetail.sym.keyBits.sym; in TPM2_EncryptDecrypt() 62 alg = symKey->publicArea.parameters.symDetail.sym.algorithm; in TPM2_EncryptDecrypt() 81 key = symKey->sensitive.sensitive.sym.t.buffer; in TPM2_EncryptDecrypt()
|
D | Context_spt.c | 22 TPM2B_SYM_KEY *symKey, // OUT: the symmetric key in ComputeContextProtectionKey() argument 46 symKey->t.size = CONTEXT_ENCRYPT_KEY_BYTES; in ComputeContextProtectionKey() 53 &handle2B.b, (symKey->t.size + iv->t.size) * 8, kdfResult, NULL); in ComputeContextProtectionKey() 55 MemoryCopy(symKey->t.buffer, kdfResult, symKey->t.size, in ComputeContextProtectionKey() 56 sizeof(symKey->t.buffer)); in ComputeContextProtectionKey() 58 MemoryCopy(iv->t.buffer, &kdfResult[symKey->t.size], iv->t.size, in ComputeContextProtectionKey()
|
D | ContextLoad.c | 41 TPM2B_SYM_KEY symKey; in TPM2_ContextLoad() local 74 ComputeContextProtectionKey(&in->context, &symKey, &iv); in TPM2_ContextLoad() 79 TPM_ALG_CFB, symKey.t.buffer, &iv, in TPM2_ContextLoad()
|
D | ContextSave.c | 28 TPM2B_SYM_KEY symKey; in TPM2_ContextSave() local 172 ComputeContextProtectionKey(&out->context, &symKey, &iv); in TPM2_ContextSave() 177 TPM_ALG_CFB, symKey.t.buffer, &iv, in TPM2_ContextSave()
|
D | Object_spt.c | 111 TPM2B_SYM_KEY *symKey // OUT: the symmetric key in ComputeProtectionKeyParms() argument 122 symKey->t.size = CONTEXT_ENCRYPT_KEY_BYTES; in ComputeProtectionKeyParms() 132 symKey->t.size = (*keyBits + 7) / 8; in ComputeProtectionKeyParms() 138 symKey->t.size * 8, symKey->t.buffer, NULL); in ComputeProtectionKeyParms() 717 TPM2B_SYM_KEY symKey; in ProduceOuterWrap() local 749 &symAlg, &keyBits, &symKey); in ProduceOuterWrap() 752 TPM_ALG_CFB, symKey.t.buffer, iv, dataSize, in ProduceOuterWrap() 801 TPM2B_SYM_KEY symKey; in UnwrapOuter() local 824 &symAlg, &keyBits, &symKey); in UnwrapOuter() 843 TPM_ALG_CFB, symKey.t.buffer, iv, in UnwrapOuter()
|
D | Context_spt_fp.h | 14 TPM2B_SYM_KEY *symKey, // OUT: the symmetric key
|
D | part3.txt | 5921 10 OBJECT *symKey; 5928 17 symKey = ObjectGet(in->keyHandle); 5931 20 if( symKey->publicArea.type != TPM_ALG_SYMCIPHER 5932 21 || symKey->attributes.publicOnly == SET) 5937 26 in->mode = symKey->publicArea.parameters.symDetail.sym.mode.sym; 5941 30 if( symKey->publicArea.objectAttributes.restricted == SET 5942 31 && symKey->publicArea.parameters.symDetail.sym.mode.sym != in->mode) 5955 44 keySize = symKey->publicArea.parameters.symDetail.sym.keyBits.sym; 5956 45 alg = symKey->publicArea.parameters.symDetail.sym.algorithm; 5980 64 key = symKey->sensitive.sensitive.sym.t.buffer; [all …]
|
D | part4.txt | 6268 6 TPM2B_SYM_KEY *symKey, // OUT: the symmetric key 6298 36 symKey->t.size = CONTEXT_ENCRYPT_KEY_BYTES; 6311 43 &handle2B.b, (symKey->t.size + iv->t.size) * 8, kdfResult, NULL); 6314 46 MemoryCopy(symKey->t.buffer, kdfResult, symKey->t.size, 6315 47 sizeof(symKey->t.buffer)); 6318 50 MemoryCopy(iv->t.buffer, &kdfResult[symKey->t.size], iv->t.size, 6823 74 TPM2B_SYM_KEY *symKey // OUT: the symmetric key 6835 86 symKey->t.size = CONTEXT_ENCRYPT_KEY_BYTES; 6845 96 symKey->t.size = (*keyBits + 7) / 8; 6858 104 symKey->t.size * 8, symKey->t.buffer, NULL); [all …]
|
/external/tpm2/generator/ |
D | raw_commands.txt | 4241 3) If the key is a Storage Key, a TPM-generated TPMT_SENSITIVE.symKey value is created; 4242 otherwise, TPMT_SENSITIVE.symKey.size is set to zero. 4279 inPublic is placed in TPMT_SENSITIVE.symKey.buffer. 10271 *symKey; 10278 symKey = ObjectGet(in->keyHandle); 10281 symKey->publicArea.type != TPM_ALG_SYMCIPHER 10282 || symKey->attributes.publicOnly == SET) 10286 in->mode = symKey->publicArea.parameters.symDetail.sym.mode.sym; 10290 symKey->publicArea.objectAttributes.restricted == SET 10291 && symKey->publicArea.parameters.symDetail.sym.mode.sym != in->mode) [all …]
|
D | raw_commands_fixed.txt | 4243 3) If the key is a Storage Key, a TPM-generated TPMT_SENSITIVE.symKey value is created; 4244 otherwise, TPMT_SENSITIVE.symKey.size is set to zero. 4281 inPublic is placed in TPMT_SENSITIVE.symKey.buffer. 10282 *symKey; 10289 symKey = ObjectGet(in->keyHandle); 10292 symKey->publicArea.type != TPM_ALG_SYMCIPHER 10293 || symKey->attributes.publicOnly == SET) 10297 in->mode = symKey->publicArea.parameters.symDetail.sym.mode.sym; 10301 symKey->publicArea.objectAttributes.restricted == SET 10302 && symKey->publicArea.parameters.symDetail.sym.mode.sym != in->mode) [all …]
|