Permalink
Browse files

tests: Disabled subkey tests

pgpdupm shows:

Old: Secret Key Packet(tag 5)(277 bytes)
	Ver 4 - new
	Public key creation time - Tue Feb 13 11:53:57 CET 2018
	Pub alg - RSA Encrypt or Sign(pub 1)
	RSA n(2048 bits) - ...
	RSA e(17 bits) - ...
	Sym alg - Plaintext or unencrypted data(sym 0)
	GnuPG gnu-dummy (s2k 1001)
Old: User ID Packet(tag 13)(16 bytes)

That is, there is no "d" (nor "p" nor "q") which we would need in order
to do anything meaningful with the private key.
  • Loading branch information...
muelli committed May 21, 2018
1 parent 268e0a2 commit 03cea997c9e41dc46ba4db04b6893280bce20c3c
Showing with 14 additions and 7 deletions.
  1. +6 −3 tests/test_gpgmeh.py
  2. +8 −4 tests/test_gpgmks.py
@@ -569,6 +569,9 @@ class TestUtf8(TestSignAndEncrypt):
RECEIVER_KEY = "seckey-utf8-2.asc"
class TestSubKeys(TestSignAndEncrypt):
SENDER_KEY = "seckey-2.asc"
RECEIVER_KEY = "seckey-subkeys.asc"
# There is little we can do here.
# That OpenPGP key is incomplete, i.e. it lacks the "d" needed to
# do anything meaningful with the key.
#class TestSubKeys(TestSignAndEncrypt):
# SENDER_KEY = "seckey-2.asc"
# RECEIVER_KEY = "seckey-subkeys.asc"
@@ -356,7 +356,11 @@ class TestUtf8(TestSignAndEncrypt):
RECEIVER_KEY = "seckey-utf8-2.asc"
@unittest.skipUnless(HAVE_MKS, "requires monkeysign")
class TestSubKeys(TestSignAndEncrypt):
SENDER_KEY = "seckey-2.asc"
RECEIVER_KEY = "seckey-subkeys.asc"
# There is very little we can do here.
# The key is incomplete and trying to use it
# fails as it should.
#@unittest.skipUnless(HAVE_MKS, "requires monkeysign")
#class TestSubKeys(TestSignAndEncrypt):
# SENDER_KEY = "seckey-2.asc"
# RECEIVER_KEY = "seckey-subkeys.asc"

0 comments on commit 03cea99

Please sign in to comment.