Searched defs:salt (Results 1 - 2 of 2) sorted by relevance

/system/vold/
H A Dcryptfs.c140 /* key or salt can be NULL, in which case just skip writing that value. Useful to
144 unsigned char *key, unsigned char *salt)
207 if (salt) {
208 /* Compute the offset from the last write to the salt */
214 SLOGE("Cannot seek to real block device salt \n");
218 if ( (cnt = write(fd, salt, SALT_LEN)) != SALT_LEN) {
219 SLOGE("Cannot write salt for real block device %s\n", fname);
243 unsigned char *key, unsigned char *salt)
338 SLOGE("Cannot seek to real block device salt\n");
342 if ( (cnt = read(fd, salt, SALT_LE
143 put_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr, unsigned char *key, unsigned char *salt) argument
242 get_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr, unsigned char *key, unsigned char *salt) argument
482 pbkdf2(char *passwd, unsigned char *salt, unsigned char *ikey) argument
489 encrypt_master_key(char *passwd, unsigned char *salt, unsigned char *decrypted_master_key, unsigned char *encrypted_master_key) argument
526 decrypt_master_key(char *passwd, unsigned char *salt, unsigned char *encrypted_master_key, unsigned char *decrypted_master_key) argument
558 create_encrypted_random_key(char *passwd, unsigned char *master_key, unsigned char *salt) argument
718 unsigned char salt[SALT_LEN]; local
765 unsigned char salt[SALT_LEN]; local
867 unsigned char key[32], salt[32]; local
918 unsigned char salt[SALT_LEN]; local
1121 unsigned char salt[SALT_LEN]; local
1426 unsigned char salt[SALT_LEN]; local
[all...]
/system/security/keystore/
H A Dkeystore.cpp502 // we read the raw blob to just to get the salt to generate
509 // find salt at EOF if present, otherwise we have an old file
510 uint8_t* salt; local
512 salt = (uint8_t*) &rawBlob + length - SALT_SIZE;
514 salt = NULL;
517 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt);
526 // if salt was missing, generate one and write a new master key file with the salt.
527 if (salt == NULL) {
732 static void generateKeyFromPassword(uint8_t* key, ssize_t keySize, Value* pw, uint8_t* salt) { argument
[all...]

Completed in 142 milliseconds