/system/security/keystore/ |
D | user_state.cpp | 79 ResponseCode UserState::initialize(const android::String8& pw, Entropy* entropy) { in initialize() argument 80 if (!generateMasterKey(entropy)) { in initialize() 83 ResponseCode response = writeMasterKey(pw, entropy); in initialize() 133 ResponseCode UserState::writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey() argument 139 return masterKeyBlob.writeBlob(mMasterKeyFile, &passwordAesKey, STATE_NO_ERROR, entropy); in writeMasterKey() 142 ResponseCode UserState::readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey() argument 174 if (!generateSalt(entropy)) { in readMasterKey() 177 response = writeMasterKey(pw, entropy); in readMasterKey() 244 bool UserState::generateSalt(Entropy* entropy) { in generateSalt() argument 245 return entropy->generate_random_data(mSalt, sizeof(mSalt)); in generateSalt() [all …]
|
D | user_state.h | 50 ResponseCode initialize(const android::String8& pw, Entropy* entropy); 54 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy); 55 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy); 71 bool generateSalt(Entropy* entropy); 72 bool generateMasterKey(Entropy* entropy);
|
D | keystore_main.cpp | 202 Entropy entropy; in main() local 203 if (!entropy.open()) { in main() 228 KeyStore keyStore(&entropy, dev, fallback); in main()
|
D | key_store_service.h | 94 const uint8_t* entropy, size_t entropyLength, int uid, int flags, 106 bool pruneable, const KeymasterArguments& params, const uint8_t* entropy, 111 const uint8_t* signature, size_t signatureLength, const uint8_t* entropy,
|
D | blob.cpp | 91 Entropy* entropy) { in writeBlob() argument 99 if (!entropy->generate_random_data(mBlob.vector, AES_BLOCK_SIZE)) { in writeBlob()
|
D | blob.h | 104 ResponseCode writeBlob(const char* filename, AES_KEY* aes_key, State state, Entropy* entropy);
|
D | IKeystoreService.cpp | 1000 const uint8_t* entropy, size_t entropyLength, int uid, int flags, in generateKey() argument 1008 data.writeByteArray(entropyLength, entropy); in generateKey() 1136 const KeymasterArguments& params, const uint8_t* entropy, in begin() argument 1150 data.writeByteArray(entropyLength, entropy); in begin() 1200 const uint8_t* entropy, size_t entropyLength, in finish() argument 1212 data.writeByteArray(entropyLength, entropy); in finish() 1673 const uint8_t* entropy = NULL; in onTransact() local 1675 readByteArray(data, &entropy, &entropyLength); in onTransact() 1679 int32_t ret = generateKey(name, args, entropy, entropyLength, uid, flags, in onTransact() 1750 const uint8_t* entropy = NULL; in onTransact() local [all …]
|
D | key_store_service.cpp | 594 const uint8_t* entropy, size_t entropyLength, int uid, in generateKey() argument 617 if (!entropy) { in generateKey() 620 rc = device->add_rng_entropy(device, entropy, entropyLength); in generateKey() 634 if (!entropy) { in generateKey() 637 rc = fallback->add_rng_entropy(fallback, entropy, entropyLength); in generateKey() 816 const KeymasterArguments& params, const uint8_t* entropy, in begin() argument 878 if (entropy) { in begin() 880 err = dev->add_rng_entropy(dev, entropy, entropyLength); in begin() 1010 const uint8_t* entropy, size_t entropyLength, in finish() argument 1032 if (entropy) { in finish() [all …]
|
D | Android.mk | 33 entropy.cpp \
|
D | keystore.h | 35 KeyStore(Entropy* entropy, keymaster2_device_t* device, keymaster2_device_t* fallback);
|
D | keystore_client_impl.cpp | 196 int32_t KeystoreClientImpl::addRandomNumberGeneratorEntropy(const std::string& entropy) { in addRandomNumberGeneratorEntropy() argument 197 return mapKeystoreError(keystore_->addRngEntropy(StringAsByteArray(entropy), entropy.size())); in addRandomNumberGeneratorEntropy()
|
D | keystore.cpp | 36 KeyStore::KeyStore(Entropy* entropy, keymaster2_device_t* device, keymaster2_device_t* fallback) in KeyStore() argument 37 : mEntropy(entropy), mDevice(device), mFallbackDevice(fallback) { in KeyStore()
|
/system/security/keystore/include/keystore/ |
D | IKeystoreService.h | 207 const uint8_t* entropy, size_t entropyLength, int uid, int flags, 227 const KeymasterArguments& params, const uint8_t* entropy, 235 const uint8_t* entropy, size_t entropyLength,
|
D | keystore_client.h | 85 virtual int32_t addRandomNumberGeneratorEntropy(const std::string& entropy) = 0;
|
D | keystore_client_mock.h | 43 MOCK_METHOD1(addRandomNumberGeneratorEntropy, int32_t(const std::string& entropy));
|
D | keystore_client_impl.h | 46 int32_t addRandomNumberGeneratorEntropy(const std::string& entropy) override;
|
/system/core/rootdir/ |
D | init.rc | 34 # Mix device-specific information into the entropy pool 339 # Avoid predictable entropy pool. Carry over entropy from previous boot. 340 copy /data/system/entropy.dat /dev/urandom
|