Searched refs:kAesKeySize (Results 1 – 6 of 6) sorted by relevance
/system/tpm/trunks/ |
D | hmac_authorization_delegate_test.cc | 39 nonce.size = kAesKeySize; in TEST() 71 nonce.size = kAesKeySize; in TEST() 100 session_nonce_.size = kAesKeySize; in SetUp() 101 memset(session_nonce_.buffer, 0, kAesKeySize); in SetUp() 181 auth_response.nonce.size = kAesKeySize; in TEST_F() 182 memset(auth_response.nonce.buffer, 0, kAesKeySize); in TEST_F()
|
D | hmac_authorization_delegate.cc | 290 CHECK_EQ(compound_key.size(), kAesKeySize + kAesIVSize); in AesOperation() 291 unsigned char aes_key[kAesKeySize]; in AesOperation() 293 memcpy(aes_key, &compound_key[0], kAesKeySize); in AesOperation() 294 memcpy(aes_iv, &compound_key[kAesKeySize], kAesIVSize); in AesOperation() 297 AES_set_encrypt_key(aes_key, kAesKeySize * 8, &key); in AesOperation()
|
D | hmac_authorization_delegate.h | 33 const size_t kAesKeySize = 16; // 128 bits is minimum AES key size. variable
|
D | tpm_utility_impl.cc | 787 encryption_key.size = kAesKeySize; in ImportRSAKey() 794 symmetric_alg.key_bits.aes = kAesKeySize * 8; in ImportRSAKey() 1826 AES_set_encrypt_key(encryption_key->buffer, kAesKeySize * 8, &key); in EncryptPrivateData()
|
D | tpm_utility_test.cc | 1148 EXPECT_EQ(kAesKeySize, encryption_key.size); in TEST_F() 1150 AES_set_encrypt_key(encryption_key.buffer, kAesKeySize * 8, &key); in TEST_F()
|
/system/tpm/attestation/common/ |
D | crypto_utility_impl.cc | 39 const size_t kAesKeySize = 32; variable 84 if (!GetRandom(kAesKeySize, aes_key)) { in CreateSealedKey() 218 0, kEncModeCBC, 0, kAesKeySize}; in EncryptIdentityCredential() 223 if (!GetRandom(kAesKeySize, &aes_key)) { in EncryptIdentityCredential() 314 if (key.size() != kAesKeySize || iv.size() != kAesBlockSize) { in AesEncrypt() 364 if (key.size() != kAesKeySize || iv.size() != kAesBlockSize) { in AesDecrypt() 424 CHECK_EQ(key.size(), kAesKeySize); in TssCompatibleEncrypt()
|