Home
last modified time | relevance | path

Searched refs:symKey (Results 1 – 10 of 10) sorted by relevance

/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Symmetric/
DEncryptDecrypt_spt.c62 OBJECT *symKey; in EncryptDecryptShared() local
71 symKey = HandleToObject(keyHandleIn); in EncryptDecryptShared()
72 mode = symKey->publicArea.parameters.symDetail.sym.mode.sym; in EncryptDecryptShared()
75 if(symKey->publicArea.type != TPM_ALG_SYMCIPHER) in EncryptDecryptShared()
78 OK = !IS_ATTRIBUTE(symKey->publicArea.objectAttributes, in EncryptDecryptShared()
81 OK = OK && IS_ATTRIBUTE(symKey->publicArea.objectAttributes, in EncryptDecryptShared()
84 OK = OK && IS_ATTRIBUTE(symKey->publicArea.objectAttributes, in EncryptDecryptShared()
110 keySize = symKey->publicArea.parameters.symDetail.sym.keyBits.sym; in EncryptDecryptShared()
111 alg = symKey->publicArea.parameters.symDetail.sym.algorithm; in EncryptDecryptShared()
135 key = symKey->sensitive.sensitive.sym.t.buffer; in EncryptDecryptShared()
DEncryptDecrypt.c64 OBJECT *symKey; in TPM2_EncryptDecrypt()
75 symKey = HandleToObject(in->keyHandle); in TPM2_EncryptDecrypt()
76 mode = symKey->publicArea.parameters.symDetail.sym.mode.sym; in TPM2_EncryptDecrypt()
77 attributes = symKey->publicArea.objectAttributes; in TPM2_EncryptDecrypt()
80 if(symKey->publicArea.type != TPM_ALG_SYMCIPHER) in TPM2_EncryptDecrypt()
108 keySize = symKey->publicArea.parameters.symDetail.sym.keyBits.sym; in TPM2_EncryptDecrypt()
109 alg = symKey->publicArea.parameters.symDetail.sym.algorithm; in TPM2_EncryptDecrypt()
140 key = symKey->sensitive.sensitive.sym.t.buffer; in TPM2_EncryptDecrypt()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Context/
DContext_spt.c64 TPM2B_SYM_KEY *symKey, // OUT: the symmetric key in ComputeContextProtectionKey() argument
92 symKey->t.size = CONTEXT_ENCRYPT_KEY_BYTES; in ComputeContextProtectionKey()
99 &handle2B.b, (symKey->t.size + iv->t.size) * 8, kdfResult, NULL, in ComputeContextProtectionKey()
103 pAssert(symKey->t.size <= sizeof(symKey->t.buffer)); in ComputeContextProtectionKey()
104 MemoryCopy(symKey->t.buffer, kdfResult, symKey->t.size); in ComputeContextProtectionKey()
108 MemoryCopy(iv->t.buffer, &kdfResult[symKey->t.size], iv->t.size); in ComputeContextProtectionKey()
DContextLoad.c68 TPM2B_SYM_KEY symKey; in TPM2_ContextLoad() local
110 ComputeContextProtectionKey(&in->context, &symKey, &iv); in TPM2_ContextLoad()
114 symKey.t.buffer, &iv, TPM_ALG_CFB, size, buffer); in TPM2_ContextLoad()
DContextSave.c60 TPM2B_SYM_KEY symKey; in TPM2_ContextSave() local
207 ComputeContextProtectionKey(&out->context, &symKey, &iv); in TPM2_ContextSave()
212 symKey.t.buffer, &iv, TPM_ALG_CFB, in TPM2_ContextSave()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DCryptCmac.c73 MemoryCopy2B(&cState->symKey.b, key, sizeof(cState->symKey.t.buffer)); in CryptCmacStart()
99 BYTE *key = cmacState->symKey.t.buffer; in CryptCmacData()
140 BYTE *key = cState->symKey.t.buffer; in CryptCmacEnd()
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Object/
DObject_spt.c106 TPM2B_SYM_KEY *symKey // OUT: the symmetric key in ComputeProtectionKeyParms() argument
117 symKey->t.size = CONTEXT_ENCRYPT_KEY_BYTES; in ComputeProtectionKeyParms()
126 symKey->t.size = (*keyBits + 7) / 8; in ComputeProtectionKeyParms()
133 symKey->t.size * 8, symKey->t.buffer, NULL, FALSE); in ComputeProtectionKeyParms()
823 TPM2B_SYM_KEY symKey; in ProduceOuterWrap() local
859 &symAlg, &keyBits, &symKey); in ProduceOuterWrap()
862 symKey.t.buffer, iv, TPM_ALG_CFB, dataSize, in ProduceOuterWrap()
908 TPM2B_SYM_KEY symKey; in UnwrapOuter() local
932 &symAlg, &keyBits, &symKey); in UnwrapOuter()
953 symKey.t.buffer, iv, TPM_ALG_CFB, in UnwrapOuter()
/external/ms-tpm-20-ref/TPMCmd/tpm/include/prototypes/
DContext_spt_fp.h51 TPM2B_SYM_KEY *symKey, // OUT: the symmetric key
/external/tpm2-tss/src/tss2-esys/
Desys_iutil.c674 uint8_t symKey[key_len]; in iesys_encrypt_param() local
701 NULL, &symKey[0], FALSE); in iesys_encrypt_param()
705 r = iesys_crypto_sym_aes_encrypt(&symKey[0], in iesys_encrypt_param()
711 &symKey[aes_off]); in iesys_encrypt_param()
772 uint8_t symKey[key_len]; in iesys_decrypt_param() local
797 &symKey[0], FALSE); in iesys_decrypt_param()
799 LOGBLOB_DEBUG(&symKey[0], in iesys_decrypt_param()
805 r = iesys_crypto_sym_aes_decrypt(&symKey[0], in iesys_decrypt_param()
811 &symKey[aes_off]); in iesys_decrypt_param()
/external/ms-tpm-20-ref/TPMCmd/tpm/include/
DCryptHash.h76 TPM2B_SYM_KEY symKey; member