MCPcopy
hub / github.com/pyca/cryptography / test_derive_private_key_errors

Function test_derive_private_key_errors

tests/hazmat/primitives/test_ec.py:127–138  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

125
126
127def test_derive_private_key_errors(backend):
128 curve = ec.SECP256K1()
129 _skip_curve_unsupported(backend, curve)
130
131 with pytest.raises(TypeError):
132 ec.derive_private_key("one", curve, backend) # type: ignore[arg-type]
133
134 with pytest.raises(TypeError):
135 ec.derive_private_key(10, "five", backend) # type: ignore[arg-type]
136
137 with pytest.raises(ValueError):
138 ec.derive_private_key(-7, curve, backend)
139
140
141def test_derive_point_at_infinity(backend):

Callers

nothing calls this directly

Calls 1

_skip_curve_unsupportedFunction · 0.70

Tested by

no test coverage detected