Searched refs:symKey (Results 1 – 6 of 6) 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() 719 TPM2B_SYM_KEY symKey; in ProduceOuterWrap() local 751 &symAlg, &keyBits, &symKey); in ProduceOuterWrap() 754 TPM_ALG_CFB, symKey.t.buffer, iv, dataSize, in ProduceOuterWrap() 803 TPM2B_SYM_KEY symKey; in UnwrapOuter() local 826 &symAlg, &keyBits, &symKey); in UnwrapOuter() 845 TPM_ALG_CFB, symKey.t.buffer, iv, in UnwrapOuter()
|
D | Context_spt_fp.h | 14 TPM2B_SYM_KEY *symKey, // OUT: the symmetric key
|