Searched refs:salt (Results 1 – 2 of 2) sorted by relevance
/system/vold/ |
D | cryptfs.c | 133 unsigned char *key, unsigned char *salt) in put_crypt_ftr_and_key() argument 196 if (salt) { in put_crypt_ftr_and_key() 207 if ( (cnt = write(fd, salt, SALT_LEN)) != SALT_LEN) { in put_crypt_ftr_and_key() 232 unsigned char *key, unsigned char *salt) in get_crypt_ftr_and_key() argument 331 if ( (cnt = read(fd, salt, SALT_LEN)) != SALT_LEN) { in get_crypt_ftr_and_key() 551 static void pbkdf2(char *passwd, unsigned char *salt, unsigned char *ikey) in pbkdf2() argument 554 PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), salt, SALT_LEN, in pbkdf2() 558 static int encrypt_master_key(char *passwd, unsigned char *salt, in encrypt_master_key() argument 567 pbkdf2(passwd, salt, ikey); in encrypt_master_key() 595 static int decrypt_master_key(char *passwd, unsigned char *salt, in decrypt_master_key() argument [all …]
|
/system/security/keystore/ |
D | keystore.cpp | 698 uint8_t* salt; in readMasterKey() local 700 salt = (uint8_t*) &rawBlob + length - SALT_SIZE; in readMasterKey() 702 salt = NULL; in readMasterKey() 705 generateKeyFromPassword(passwordKey, MASTER_KEY_SIZE_BYTES, pw, salt); in readMasterKey() 716 if (salt == NULL) { in readMasterKey() 795 uint8_t* salt) { in generateKeyFromPassword() argument 797 if (salt != NULL) { in generateKeyFromPassword() 801 salt = (uint8_t*) "keystore"; in generateKeyFromPassword() 806 PKCS5_PBKDF2_HMAC_SHA1(reinterpret_cast<const char*>(pw.string()), pw.length(), salt, in generateKeyFromPassword()
|