Skip to content

Very slow assert in VerifyingKey.from_string() #19

@sigmunau

Description

@sigmunau

This line:
assert ecdsa.point_is_valid(curve.generator, x, y)
takes about 26ms to complete. With my ssh known hosts file has 182 ecdsa keys in, this line alone causes a paramiko client to spend almost five seconds before even connecting to to the server. As the known_hosts file is a in essence a database of trusted keys, I think it should be possible to skip this assert in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions