File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAFZwnA8QCdL+TiQWBSHE0XsnRJBCFkb6c2DL7+ZfCFDk9khSYh3VrVOOQ1eIrO/oOm20Gp24dvP9XQS0f5B9bLQHgGFnkydPIMaNzPUNCop17F5uHOhtuFIhmOlh3lpTjyj2ten86cCetqN12kawnRs1/iu0wsGoVgk3os6yUAHvFMFGA==
Original file line number Diff line number Diff line change @@ -375,6 +375,13 @@ def test_ec_should_accept_pem_private_key_bytes(self):
375375 with open (key_path ('testkey_ec' ), 'rb' ) as ec_key :
376376 algo .prepare_key (ec_key .read ())
377377
378+ @pytest .mark .skipif (not has_crypto , reason = 'Not supported without cryptography library' )
379+ def test_ec_should_accept_ssh_public_key_bytes (self ):
380+ algo = ECAlgorithm (ECAlgorithm .SHA256 )
381+
382+ with open (key_path ('testkey_ec_ssh.pub' ), 'r' ) as ec_key :
383+ algo .prepare_key (ec_key .read ())
384+
378385 @pytest .mark .skipif (not has_crypto , reason = 'Not supported without cryptography library' )
379386 def test_ec_verify_should_return_false_if_signature_invalid (self ):
380387 algo = ECAlgorithm (ECAlgorithm .SHA256 )
You can’t perform that action at this time.
0 commit comments