Skip to content

P521 implementation is slow, buggy and vulnerable to timing attacks #2

@CodesInChaos

Description

@CodesInChaos
  • Slow: You're using affine coordinates. Those are 10-100x times slower than other coordinates.
  • Buggy: There are special cases you don't handle. For example computing P + P or P + (-P).
  • You don't validate public keys you receive, this enables attacks. For example the point might not on the curve.
  • Timing attacks: You don't use constant time code. There are secret dependent branches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions