MCPcopy Create free account
hub / github.com/SecurityInnovation/PGPy / temp_key

Function temp_key

tests/test_10_exceptions.py:64–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63@pytest.fixture(scope='module')
64def temp_key():
65 u = PGPUID.new('User')
66 k = PGPKey.new(PubKeyAlgorithm.RSAEncryptOrSign, 512)
67 k.add_uid(u, usage={KeyFlags.Certify, KeyFlags.Sign}, hashes=[HashAlgorithm.SHA1])
68
69 sk = PGPKey.new(PubKeyAlgorithm.RSAEncryptOrSign, 512)
70 k.add_subkey(sk, usage={KeyFlags.EncryptCommunications})
71
72 return k
73
74
75key_algs = [ pka for pka in PubKeyAlgorithm if pka.can_gen and not pka.deprecated ]

Callers

nothing calls this directly

Calls 3

add_uidMethod · 0.80
add_subkeyMethod · 0.80
newMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…