/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Symmetric/ |
D | EncryptDecrypt_spt.c | 62 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()
|
D | EncryptDecrypt.c | 64 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/ |
D | Context_spt.c | 64 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()
|
D | ContextLoad.c | 68 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()
|
D | ContextSave.c | 60 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/ |
D | CryptCmac.c | 73 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/ |
D | Object_spt.c | 106 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/ |
D | Context_spt_fp.h | 51 TPM2B_SYM_KEY *symKey, // OUT: the symmetric key
|
/external/tpm2-tss/src/tss2-esys/ |
D | esys_iutil.c | 674 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/ |
D | CryptHash.h | 76 TPM2B_SYM_KEY symKey; member
|