Lines Matching refs:keysize
170 __le32 keysize; /* in bytes */ member
782 if ((crypt_ftr->keysize == 0) || ((crypt_ftr->keysize % 16) != 0) || in get_crypt_ftr_and_key()
783 (crypt_ftr->keysize > MAX_KEY_LEN)) { in get_crypt_ftr_and_key()
787 crypt_ftr->keysize, fname, MAX_KEY_LEN); in get_crypt_ftr_and_key()
1029 static void convert_key_to_hex_ascii(const unsigned char* master_key, unsigned int keysize, in convert_key_to_hex_ascii() argument
1034 for (i = 0, a = 0; i < keysize; i++, a += 2) { in convert_key_to_hex_ascii()
1086 convert_key_to_hex_ascii(master_key, crypt_ftr->keysize, master_key_ascii); in create_crypto_blk_dev()
1252 crypt_ftr->keysize)) { in encrypt_master_key()
1261 if (encrypted_len + final_len != static_cast<int>(crypt_ftr->keysize)) { in encrypt_master_key()
1289 const unsigned char* encrypted_master_key, size_t keysize, in decrypt_master_key_aux() argument
1313 keysize)) { in decrypt_master_key_aux()
1320 if (decrypted_len + final_len != static_cast<int>(keysize)) { in decrypt_master_key_aux()
1359 ret = decrypt_master_key_aux(passwd, crypt_ftr->salt, crypt_ftr->master_key, crypt_ftr->keysize, in decrypt_master_key()
1809 memcpy(saved_master_key, decrypted_master_key, crypt_ftr->keysize); in test_mount_encrypted_fs()
1880 ext_crypt_ftr.keysize = crypto_type.get_keysize(); in cryptfs_setup_ext_volume()
2001 if (!memcmp(decrypted_master_key, saved_master_key, crypt_ftr.keysize)) { in cryptfs_verify_passwd()
2027 ftr->keysize = get_crypto_type().get_keysize(); in cryptfs_init_crypt_mnt_ftr()