• Home
  • Raw
  • Download

Lines Matching refs:passwd

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
1373 if (kdf(passwd, salt, ikey, kdf_params)) { in decrypt_master_key_aux()
1425 static int decrypt_master_key(const char* passwd, unsigned char* decrypted_master_key, in decrypt_master_key() argument
1433 ret = decrypt_master_key_aux(passwd, crypt_ftr->salt, crypt_ftr->master_key, crypt_ftr->keysize, in decrypt_master_key()
1443 static int create_encrypted_random_key(const char* passwd, unsigned char* master_key, in create_encrypted_random_key() argument
1456 return encrypt_master_key(passwd, salt, key_buf, master_key, crypt_ftr); in create_encrypted_random_key()
1762 static int test_mount_encrypted_fs(struct crypt_mnt_ftr* crypt_ftr, const char* passwd, in test_mount_encrypted_fs() argument
1782 if (decrypt_master_key(passwd, decrypted_master_key, crypt_ftr, &intermediate_key, in test_mount_encrypted_fs()
1863 rc = encrypt_master_key(passwd, crypt_ftr->salt, saved_master_key, in test_mount_encrypted_fs()
1952 int cryptfs_check_passwd(const char* passwd) { in cryptfs_check_passwd() argument
1968 rc = test_mount_encrypted_fs(&crypt_ftr, passwd, DATA_MNT_POINT, CRYPTO_BLOCK_DEVICE); in cryptfs_check_passwd()
1989 rc = cryptfs_changepw(crypt_ftr.crypt_type, passwd); in cryptfs_check_passwd()
1998 password = strdup(passwd); in cryptfs_check_passwd()
2007 int cryptfs_verify_passwd(const char* passwd) { in cryptfs_verify_passwd() argument
2038 decrypt_master_key(passwd, decrypted_master_key, &crypt_ftr, 0, 0); in cryptfs_verify_passwd()
2154 int cryptfs_enable_internal(int crypt_type, const char* passwd, int no_ui) { in cryptfs_enable_internal() argument
2311 if (create_encrypted_random_key(onlyCreateHeader ? DEFAULT_PASSWORD : passwd, in cryptfs_enable_internal()
2322 encrypt_master_key(passwd, crypt_ftr.salt, fake_master_key, encrypted_fake_master_key, in cryptfs_enable_internal()
2361 decrypt_master_key(passwd, decrypted_master_key, &crypt_ftr, 0, 0); in cryptfs_enable_internal()
2489 int cryptfs_enable(int type, const char* passwd, int no_ui) { in cryptfs_enable() argument
2490 return cryptfs_enable_internal(type, passwd, no_ui); in cryptfs_enable()