Searched refs:aes_key (Results 1 – 10 of 10) sorted by relevance
/system/tpm/attestation/common/ |
D | mock_crypto_utility.h | 35 MOCK_METHOD2(CreateSealedKey, bool(std::string* aes_key, 39 const std::string& aes_key, 44 std::string* aes_key, 48 const std::string& aes_key,
|
D | crypto_utility.h | 36 virtual bool CreateSealedKey(std::string* aes_key, 44 const std::string& aes_key, 53 std::string* aes_key, 59 const std::string& aes_key,
|
D | crypto_utility_impl.cc | 82 bool CryptoUtilityImpl::CreateSealedKey(std::string* aes_key, in CreateSealedKey() argument 84 if (!GetRandom(kAesKeySize, aes_key)) { in CreateSealedKey() 88 if (!tpm_utility_->SealToPCR0(*aes_key, sealed_key)) { in CreateSealedKey() 96 const std::string& aes_key, in EncryptData() argument 105 if (!AesEncrypt(data, aes_key, iv, &raw_encrypted_data)) { in EncryptData() 113 encrypted_pb.set_mac(HmacSha512(iv + raw_encrypted_data, aes_key)); in EncryptData() 122 std::string* aes_key, in UnsealKey() argument 130 if (!tpm_utility_->Unseal(*sealed_key, aes_key)) { in UnsealKey() 138 const std::string& aes_key, in DecryptData() argument 147 aes_key); in DecryptData() [all …]
|
D | crypto_utility_impl.h | 39 bool CreateSealedKey(std::string* aes_key, std::string* sealed_key) override; 41 const std::string& aes_key, 45 std::string* aes_key, 48 const std::string& aes_key,
|
/system/security/keystore/ |
D | blob.cpp | 90 ResponseCode Blob::writeBlob(const char* filename, AES_KEY* aes_key, State state, in writeBlob() argument 123 AES_cbc_encrypt(mBlob.encrypted, mBlob.encrypted, encryptedLength, aes_key, vector, in writeBlob() 153 ResponseCode Blob::readBlob(const char* filename, AES_KEY* aes_key, State state) { in readBlob() argument 191 AES_cbc_encrypt(mBlob.encrypted, mBlob.encrypted, encryptedLength, aes_key, mBlob.vector, in readBlob()
|
D | blob.h | 104 ResponseCode writeBlob(const char* filename, AES_KEY* aes_key, State state, Entropy* entropy); 105 ResponseCode readBlob(const char* filename, AES_KEY* aes_key, State state);
|
/system/keymaster/ |
D | ocb_utils.cpp | 100 AES_KEY aes_key; in InitializeKeyWrappingContext() local 103 AES_set_encrypt_key(master_key.key_material, master_key.key_material_size * 8, &aes_key)) in InitializeKeyWrappingContext() 106 AES_encrypt(hash_buf.get(), derived_key.get(), &aes_key); in InitializeKeyWrappingContext()
|
D | Makefile | 64 aes_key.cpp \ 315 aes_key.o \
|
D | Android.mk | 51 aes_key.cpp \
|
/system/tpm/trunks/ |
D | hmac_authorization_delegate.cc | 300 unsigned char aes_key[kAesKeySize]; in AesOperation() local 302 memcpy(aes_key, &compound_key[0], kAesKeySize); in AesOperation() 306 AES_set_encrypt_key(aes_key, kAesKeySize*8, &key); in AesOperation()
|