Home
last modified time | relevance | path

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

/system/tpm/attestation/common/
Dmock_crypto_utility.h35 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,
Dcrypto_utility.h36 virtual bool CreateSealedKey(std::string* aes_key,
44 const std::string& aes_key,
53 std::string* aes_key,
59 const std::string& aes_key,
Dcrypto_utility_impl.cc82 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 …]
Dcrypto_utility_impl.h39 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/
Dblob.cpp90 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()
Dblob.h104 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/
Docb_utils.cpp100 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()
DMakefile64 aes_key.cpp \
315 aes_key.o \
DAndroid.mk51 aes_key.cpp \
/system/tpm/trunks/
Dhmac_authorization_delegate.cc300 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()