Searched defs:salt (Results 1 - 2 of 2) sorted by relevance
/system/vold/ |
H A D | cryptfs.c | 142 /* key or salt can be NULL, in which case just skip writing that value. Useful to 146 unsigned char *key, unsigned char *salt) 209 if (salt) { 210 /* Compute the offset from the last write to the salt */ 216 SLOGE("Cannot seek to real block device salt \n"); 220 if ( (cnt = write(fd, salt, SALT_LEN)) != SALT_LEN) { 221 SLOGE("Cannot write salt for real block device %s\n", fname); 245 unsigned char *key, unsigned char *salt) 340 SLOGE("Cannot seek to real block device salt\n"); 344 if ( (cnt = read(fd, salt, SALT_LE 145 put_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr, unsigned char *key, unsigned char *salt) argument 244 get_crypt_ftr_and_key(char *real_blk_name, struct crypt_mnt_ftr *crypt_ftr, unsigned char *key, unsigned char *salt) argument 494 pbkdf2(char *passwd, unsigned char *salt, unsigned char *ikey) argument 501 encrypt_master_key(char *passwd, unsigned char *salt, unsigned char *decrypted_master_key, unsigned char *encrypted_master_key) argument 538 decrypt_master_key(char *passwd, unsigned char *salt, unsigned char *encrypted_master_key, unsigned char *decrypted_master_key) argument 570 create_encrypted_random_key(char *passwd, unsigned char *master_key, unsigned char *salt) argument 737 unsigned char salt[SALT_LEN]; local 784 unsigned char salt[SALT_LEN]; local 886 unsigned char key[32], salt[32]; local 937 unsigned char salt[SALT_LEN]; local 1140 unsigned char salt[SALT_LEN]; local 1455 unsigned char salt[SALT_LEN]; local [all...] |
/system/security/keystore/ |
H A D | keystore.cpp | 502 // 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) { 729 static void generateKeyFromPassword(uint8_t* key, ssize_t keySize, Value* pw, uint8_t* salt) { argument [all...] |
Completed in 374 milliseconds