MCPcopy Create free account
hub / github.com/rthalley/dnspython / test_dsa

Method test_dsa

tests/test_dnssecalgs.py:88–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self._test_dnssec_alg(PrivateRSASHA512, 2048)
87
88 def test_dsa(self):
89 self._test_dnssec_alg(PrivateDSA, 1024)
90 self._test_dnssec_alg(PrivateDSANSEC3SHA1, 1024)
91 with self.assertRaises(ValueError):
92 k = PrivateDSA.generate(2048)
93 k.sign(b"hello")
94
95 def test_ecdsa(self):
96 self._test_dnssec_alg(PrivateECDSAP256SHA256)

Callers

nothing calls this directly

Calls 3

_test_dnssec_algMethod · 0.95
generateMethod · 0.45
signMethod · 0.45

Tested by

no test coverage detected