예제 #1
0
def test_key_from_jwk_dict_ec():
    key = ECKey().load(full_path("570-ec-sect571r1-keypair.pem"))
    assert key.has_private_key()
    jwk = key.serialize(private=True)
    _key = key_from_jwk_dict(jwk)
    assert isinstance(_key, ECKey)
    assert _key.has_private_key()
예제 #2
0
def test_load_pem_file_ec():
    key = ECKey().load(full_path("570-ec-sect571r1-keypair.pem"))
    assert key.has_private_key()