D | cryptfs.cpp | 1216 static int pbkdf2(const char* passwd, const unsigned char* salt, unsigned char* ikey, in pbkdf2() argument 1221 return PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), salt, SALT_LEN, HASH_COUNT, in pbkdf2() 1225 static int scrypt(const char* passwd, const unsigned char* salt, unsigned char* ikey, void* params)… in scrypt() argument 1235 crypto_scrypt((const uint8_t*)passwd, strlen(passwd), salt, SALT_LEN, N, r, p, ikey, in scrypt() 1241 static int scrypt_keymaster(const char* passwd, const unsigned char* salt, unsigned char* ikey, in scrypt_keymaster() argument 1254 rc = crypto_scrypt((const uint8_t*)passwd, strlen(passwd), salt, SALT_LEN, N, r, p, ikey, in scrypt_keymaster() 1279 static int encrypt_master_key(const char* passwd, const unsigned char* salt, in encrypt_master_key() argument 1297 if (scrypt_keymaster(passwd, salt, ikey, crypt_ftr)) { in encrypt_master_key() 1304 if (scrypt(passwd, salt, ikey, crypt_ftr)) { in encrypt_master_key() 1362 static int decrypt_master_key_aux(const char* passwd, unsigned char* salt, in decrypt_master_key_aux() argument [all …]
|