summaryrefslogtreecommitdiff
path: root/tests/keydata.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-02-15 10:20:23 +0100
committerMichał Górny <mgorny@gentoo.org>2023-02-15 10:21:09 +0100
commit2a791b04b086f1b054b6b175129f026a7623f423 (patch)
tree69774a4107b583ecabf8e1997e9dcc26141046f4 /tests/keydata.py
parenta3360813a63215273a66578e159a9c0142e407fd (diff)
downloadgemato-2a791b04b086f1b054b6b175129f026a7623f423.tar.gz
test_openpgp: Inline signature timestamp
The signature timestamp is a property of the signature, not the key, so it does not belong in keydata. Also, they are used only once, so inline them both. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'tests/keydata.py')
-rw-r--r--tests/keydata.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/keydata.py b/tests/keydata.py
index c889c4d..70762dc 100644
--- a/tests/keydata.py
+++ b/tests/keydata.py
@@ -3,7 +3,6 @@
# Licensed under the terms of 2-clause BSD license
import base64
-import datetime
def break_sig(sig):
@@ -184,7 +183,6 @@ PRIVATE_KEY = SECRET_KEY + UID + PUBLIC_KEY_SIG
PRIVATE_KEY_ID = b'0x136880E72A7B1384'
KEY_FINGERPRINT = '81E12C16BD8DCD60BE180845136880E72A7B1384'
-SIG_TIMESTAMP = datetime.datetime(2017, 11, 8, 9, 1, 26)
OTHER_VALID_PUBLIC_KEY = (OTHER_PUBLIC_KEY + OTHER_PUBLIC_KEY_UID +
OTHER_PUBLIC_KEY_SIG)
@@ -196,7 +194,6 @@ VALID_KEY_NONUTF = PUBLIC_KEY + UID_NONUTF + PUBLIC_KEY_NONUTF_SIG
VALID_KEY_SUBKEY = (PUBLIC_KEY + UID + PUBLIC_KEY_SIG + PUBLIC_SUBKEY +
PUBLIC_SUBKEY_SIG)
SUBKEY_FINGERPRINT = '7E9DDE3CBE47E437418DF74038B9D2F76CC833CC'
-SUBKEY_SIG_TIMESTAMP = datetime.datetime(2020, 8, 25, 12, 40, 12)
FORGED_PUBLIC_KEY = PUBLIC_KEY + UID + break_sig(PUBLIC_KEY_SIG)
FORGED_SUBKEY = (PUBLIC_KEY + UID + PUBLIC_KEY_SIG + PUBLIC_SUBKEY +