From 463fcc40118e2e7a1d848746d45013b1ebd4a06a Mon Sep 17 00:00:00 2001 From: Youngtaek Yoon Date: Fri, 10 Mar 2023 12:37:05 +0000 Subject: [PATCH] Update PGPparseprivate.py Fix the logic in rootless subkey unlock. --- tests/PGPparseprivate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/PGPparseprivate.py b/tests/PGPparseprivate.py index de6c113..0384f51 100644 --- a/tests/PGPparseprivate.py +++ b/tests/PGPparseprivate.py @@ -187,7 +187,7 @@ assert value.is_unlocked print('subkey is now unlocked') print('subkey id', subkey) - if 'RSA' in subkey._key._pkalg._name_: + if 'RSA' in value._key._pkalg._name_: sub_keyp = long_to_bytes(value._key.keymaterial.p) sub_keyq = long_to_bytes(value._key.keymaterial.q) print('subkey value')