Searched refs:entropy (Results 1 – 4 of 4) sorted by relevance
/system/security/keystore/ |
D | keystore.cpp | 603 ResponseCode writeBlob(const char* filename, AES_KEY *aes_key, State state, Entropy* entropy) { in writeBlob() argument 611 if (!entropy->generate_random_data(mBlob.vector, AES_BLOCK_SIZE)) { in writeBlob() 799 ResponseCode initialize(const android::String8& pw, Entropy* entropy) { in initialize() argument 800 if (!generateMasterKey(entropy)) { in initialize() 803 ResponseCode response = writeMasterKey(pw, entropy); in initialize() 823 ResponseCode writeMasterKey(const android::String8& pw, Entropy* entropy) { in writeMasterKey() argument 829 return masterKeyBlob.writeBlob(mMasterKeyFile, &passwordAesKey, STATE_NO_ERROR, entropy); in writeMasterKey() 832 ResponseCode readMasterKey(const android::String8& pw, Entropy* entropy) { in readMasterKey() argument 865 if (!generateSalt(entropy)) { in readMasterKey() 868 response = writeMasterKey(pw, entropy); in readMasterKey() [all …]
|
D | IKeystoreService.cpp | 936 const uint8_t* entropy, size_t entropyLength, int uid, int flags, in generateKey() argument 944 data.writeByteArray(entropyLength, entropy); in generateKey() 1070 const KeymasterArguments& params, const uint8_t* entropy, in begin() argument 1084 data.writeByteArray(entropyLength, entropy); in begin() 1133 const uint8_t* entropy, size_t entropyLength, in finish() argument 1145 data.writeByteArray(entropyLength, entropy); in finish() 1576 const uint8_t* entropy = NULL; in onTransact() local 1578 readByteArray(data, &entropy, &entropyLength); in onTransact() 1582 int32_t ret = generateKey(name, args, entropy, entropyLength, uid, flags, in onTransact() 1651 const uint8_t* entropy = NULL; in onTransact() local [all …]
|
/system/security/keystore/include/keystore/ |
D | IKeystoreService.h | 194 const uint8_t* entropy, size_t entropyLength, int uid, int flags, 213 const KeymasterArguments& params, const uint8_t* entropy, 221 const uint8_t* entropy, size_t entropyLength,
|
/system/core/rootdir/ |
D | init.rc | 273 # Avoid predictable entropy pool. Carry over entropy from previous boot. 274 copy /data/system/entropy.dat /dev/urandom
|