Skip to content

No-float policy for secp256k1 #683

@laanwj

Description

@laanwj

I think secp256k1 needs an explicit no-floating point policy, like the Linux kernel. This means no use of float, and no double (and no half, no long double either).

  • It has to be able to run in kernel context
  • Boot and security processors tend to have no FP support (e.g. core 0 on the Sifive U54)
  • FP hardware implementation is possibly inconsistent between platforms which is useless for cryptography

I mean for the main code; in the bench framework is fine, though with the assumption that it might be emulated and very slow.

(inspired by #658 (comment))

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