Lines Matching refs:decrypted_master_key
1206 const unsigned char* decrypted_master_key, in encrypt_master_key() argument
1251 if (!EVP_EncryptUpdate(&e_ctx, encrypted_master_key, &encrypted_len, decrypted_master_key, in encrypt_master_key()
1290 unsigned char* decrypted_master_key, kdf_func kdf, in decrypt_master_key_aux() argument
1312 if (!EVP_DecryptUpdate(&d_ctx, decrypted_master_key, &decrypted_len, encrypted_master_key, in decrypt_master_key_aux()
1316 if (!EVP_DecryptFinal_ex(&d_ctx, decrypted_master_key + decrypted_len, &final_len)) { in decrypt_master_key_aux()
1351 static int decrypt_master_key(const char* passwd, unsigned char* decrypted_master_key, in decrypt_master_key() argument
1360 decrypted_master_key, kdf, kdf_params, intermediate_key, in decrypt_master_key()
1728 unsigned char decrypted_master_key[MAX_KEY_LEN]; in test_mount_encrypted_fs() local
1746 if (decrypt_master_key(passwd, decrypted_master_key, crypt_ftr, &intermediate_key, in test_mount_encrypted_fs()
1758 if (create_crypto_blk_dev(crypt_ftr, decrypted_master_key, real_blkdev.c_str(), &crypto_blkdev, in test_mount_encrypted_fs()
1809 memcpy(saved_master_key, decrypted_master_key, crypt_ftr->keysize); in test_mount_encrypted_fs()
1971 unsigned char decrypted_master_key[MAX_KEY_LEN]; in cryptfs_verify_passwd() local
2000 decrypt_master_key(passwd, decrypted_master_key, &crypt_ftr, 0, 0); in cryptfs_verify_passwd()
2001 if (!memcmp(decrypted_master_key, saved_master_key, crypt_ftr.keysize)) { in cryptfs_verify_passwd()
2119 unsigned char decrypted_master_key[MAX_KEY_LEN]; in cryptfs_enable_internal() local
2325 decrypt_master_key(passwd, decrypted_master_key, &crypt_ftr, 0, 0); in cryptfs_enable_internal()
2326 create_crypto_blk_dev(&crypt_ftr, decrypted_master_key, real_blkdev.c_str(), &crypto_blkdev, in cryptfs_enable_internal()