()
| 62 | |
| 63 | @pytest.fixture(scope='module') |
| 64 | def 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 | |
| 75 | key_algs = [ pka for pka in PubKeyAlgorithm if pka.can_gen and not pka.deprecated ] |
nothing calls this directly
no test coverage detected
searching dependent graphs…