D | cryptfs.cpp | 260 typedef int (*kdf_func)(const char* passwd, const unsigned char* salt, unsigned char* ikey, 1142 static int pbkdf2(const char* passwd, const unsigned char* salt, unsigned char* ikey, in pbkdf2() argument 1147 return PKCS5_PBKDF2_HMAC_SHA1(passwd, strlen(passwd), salt, SALT_LEN, HASH_COUNT, in pbkdf2() 1151 static int scrypt(const char* passwd, const unsigned char* salt, unsigned char* ikey, void* params)… in scrypt() argument 1161 crypto_scrypt((const uint8_t*)passwd, strlen(passwd), salt, SALT_LEN, N, r, p, ikey, in scrypt() 1167 static int scrypt_keymaster(const char* passwd, const unsigned char* salt, unsigned char* ikey, in scrypt_keymaster() argument 1180 rc = crypto_scrypt((const uint8_t*)passwd, strlen(passwd), salt, SALT_LEN, N, r, p, ikey, in scrypt_keymaster() 1205 static int encrypt_master_key(const char* passwd, const unsigned char* salt, in encrypt_master_key() argument 1223 if (scrypt_keymaster(passwd, salt, ikey, crypt_ftr)) { in encrypt_master_key() 1230 if (scrypt(passwd, salt, ikey, crypt_ftr)) { in encrypt_master_key() [all …]
|