Lines Matching refs:master_key
798 static void convert_key_to_hex_ascii(const unsigned char *master_key, in convert_key_to_hex_ascii() argument
805 nibble = (master_key[i] >> 4) & 0xf; in convert_key_to_hex_ascii()
808 nibble = master_key[i] & 0xf; in convert_key_to_hex_ascii()
818 const unsigned char *master_key, const char *real_blk_name, in load_crypto_mapping_table() argument
841 convert_key_to_hex_ascii(master_key, crypt_ftr->keysize, master_key_ascii); in load_crypto_mapping_table()
900 const unsigned char *master_key, const char *real_blk_name, in create_crypto_blk_dev() argument
945 load_count = load_crypto_mapping_table(crypt_ftr, master_key, real_blk_name, name, in create_crypto_blk_dev()
1233 ret = decrypt_master_key_aux(passwd, crypt_ftr->salt, crypt_ftr->master_key, in decrypt_master_key()
1243 static int create_encrypted_random_key(const char *passwd, unsigned char *master_key, unsigned char… in create_encrypted_random_key() argument
1255 return encrypt_master_key(passwd, salt, key_buf, master_key, crypt_ftr); in create_encrypted_random_key()
1673 crypt_ftr->master_key, crypt_ftr); in test_mount_encrypted_fs()
2860 crypt_ftr.master_key, crypt_ftr.salt, &crypt_ftr)) { in cryptfs_enable_internal()
3085 crypt_ftr.master_key, in cryptfs_changepw()
3517 if (create_encrypted_random_key(DEFAULT_PASSWORD, crypt_ftr->master_key, in cryptfs_create_default_ftr()
3528 unsigned char* master_key) in cryptfs_get_master_key() argument
3539 rc = decrypt_master_key(password, master_key, ftr, &intermediate_key, in cryptfs_get_master_key()
3570 const unsigned char* master_key) in cryptfs_set_password() argument
3572 return encrypt_master_key(password, ftr->salt, master_key, ftr->master_key, in cryptfs_set_password()