From 7316c53b040c389f152ab5427b030bd53f36383c Mon Sep 17 00:00:00 2001 From: Ondrej Kozina Date: Thu, 28 Nov 2019 15:34:30 +0100 Subject: [PATCH] Remove redundant digest id to key assignement. --- lib/luks2/luks2_keyslot.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/luks2/luks2_keyslot.c b/lib/luks2/luks2_keyslot.c index 68101d8e..bf0f95d4 100644 --- a/lib/luks2/luks2_keyslot.c +++ b/lib/luks2/luks2_keyslot.c @@ -535,7 +535,6 @@ int LUKS2_keyslot_open_all_segments(struct crypt_device *cd, r = LUKS2_keyslot_open_by_digest(cd, hdr, keyslot_old, digest_old, password, password_len, &vk); if (r < 0) goto out; - crypt_volume_key_set_id(vk, digest_old); crypt_volume_key_add_next(vks, vk); } @@ -545,7 +544,6 @@ int LUKS2_keyslot_open_all_segments(struct crypt_device *cd, r = LUKS2_keyslot_open_by_digest(cd, hdr, keyslot_new, digest_new, password, password_len, &vk); if (r < 0) goto out; - crypt_volume_key_set_id(vk, digest_new); crypt_volume_key_add_next(vks, vk); } out: