| 9 | |
| 10 | |
| 11 | class TestBaseAlgorithm: |
| 12 | def test_sign_is_interface(self, alg): |
| 13 | with pytest.raises(NotImplementedError): |
| 14 | alg.sign("msg") |
| 15 | |
| 16 | def test_verify_is_interface(self, alg): |
| 17 | with pytest.raises(NotImplementedError): |
| 18 | alg.verify("msg", "sig") |
| 19 | |
| 20 | def test_encrypt_is_interface(self, alg): |
| 21 | with pytest.raises(NotImplementedError): |
| 22 | alg.encrypt( |
| 23 | "plain text", |
| 24 | ) |
| 25 | |
| 26 | def test_decrypt_is_interface(self, alg): |
| 27 | with pytest.raises(NotImplementedError): |
| 28 | alg.decrypt("plain text", iv="iv") |
| 29 | |
| 30 | def test_wrap_key_is_interface(self, alg): |
| 31 | with pytest.raises(NotImplementedError): |
| 32 | alg.wrap_key("plain text") |
| 33 | |
| 34 | def test_unwrap_key_is_interface(self, alg): |
| 35 | with pytest.raises(NotImplementedError): |
| 36 | alg.unwrap_key("plain text") |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…