Lines Matching refs:volume_key
303 void *volume_key, in luks_try_passwords() argument
318 volume_key, in luks_try_passwords()
803 const void *volume_key, in luks_validate_home_record() argument
870 if (EVP_DecryptInit_ex(context, cc, NULL, volume_key, iv) != 1) in luks_validate_home_record()
924 const void *volume_key, in format_luks_token_text() argument
937 assert(volume_key); in format_luks_token_text()
961 if (EVP_EncryptInit_ex(context, cc, NULL, volume_key, iv) != 1) in format_luks_token_text()
1015 assert(setup->volume_key); in home_store_header_identity_luks()
1034 r = format_luks_token_text(setup->crypt_device, header_home, setup->volume_key, &text); in home_store_header_identity_luks()
1234 _cleanup_(erase_and_freep) void *volume_key = NULL; in home_setup_luks()
1269 &volume_key, in home_setup_luks()
1276 … r = luks_validate_home_record(setup->crypt_device, h, volume_key, cache, &luks_home); in home_setup_luks()
1402 &volume_key, in home_setup_luks()
1411 … r = luks_validate_home_record(setup->crypt_device, h, volume_key, cache, &luks_home); in home_setup_luks()
1450 if (volume_key) { in home_setup_luks()
1451 erase_and_free(setup->volume_key); in home_setup_luks()
1452 setup->volume_key = TAKE_PTR(volume_key); in home_setup_luks()
1715 _cleanup_(erase_and_freep) void *volume_key = NULL; in luks_format()
1737 volume_key = malloc(volume_key_size); in luks_format()
1738 if (!volume_key) in luks_format()
1741 r = genuine_random_bytes(volume_key, volume_key_size, RANDOM_BLOCK); in luks_format()
1761 volume_key, in luks_format()
1789 volume_key, in luks_format()
1803 volume_key, in luks_format()
1815 r = format_luks_token_text(cd, reduced, volume_key, &text); in luks_format()
3528 _cleanup_(erase_and_freep) void *volume_key = NULL; in home_passwd_luks()
3556 volume_key = malloc(volume_key_size); in home_passwd_luks()
3557 if (!volume_key) in home_passwd_luks()
3567 … r = luks_try_passwords(h, setup->crypt_device, list, volume_key, &volume_key_size, NULL); in home_passwd_luks()
3605 volume_key, in home_passwd_luks()