Home
last modified time | relevance | path

Searched refs:entropy (Results 1 – 17 of 17) sorted by relevance

/system/security/keystore/
Duser_state.cpp79 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 …]
Duser_state.h50 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);
Dkeystore_main.cpp202 Entropy entropy; in main() local
203 if (!entropy.open()) { in main()
228 KeyStore keyStore(&entropy, dev, fallback); in main()
Dkey_store_service.h94 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,
Dblob.cpp91 Entropy* entropy) { in writeBlob() argument
99 if (!entropy->generate_random_data(mBlob.vector, AES_BLOCK_SIZE)) { in writeBlob()
Dblob.h104 ResponseCode writeBlob(const char* filename, AES_KEY* aes_key, State state, Entropy* entropy);
DIKeystoreService.cpp1000 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 …]
Dkey_store_service.cpp594 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 …]
DAndroid.mk33 entropy.cpp \
Dkeystore.h35 KeyStore(Entropy* entropy, keymaster2_device_t* device, keymaster2_device_t* fallback);
Dkeystore_client_impl.cpp196 int32_t KeystoreClientImpl::addRandomNumberGeneratorEntropy(const std::string& entropy) { in addRandomNumberGeneratorEntropy() argument
197 return mapKeystoreError(keystore_->addRngEntropy(StringAsByteArray(entropy), entropy.size())); in addRandomNumberGeneratorEntropy()
Dkeystore.cpp36 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/
DIKeystoreService.h207 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,
Dkeystore_client.h85 virtual int32_t addRandomNumberGeneratorEntropy(const std::string& entropy) = 0;
Dkeystore_client_mock.h43 MOCK_METHOD1(addRandomNumberGeneratorEntropy, int32_t(const std::string& entropy));
Dkeystore_client_impl.h46 int32_t addRandomNumberGeneratorEntropy(const std::string& entropy) override;
/system/core/rootdir/
Dinit.rc34 # 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