Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for precomputeParams (1.34 sec)

  1. lib/fips140/v1.0.0.zip

    interface { *nistec.P224Point | *nistec.P256Point | *nistec.P384Point | *nistec.P521Point Bytes() []byte BytesX() ([]byte, error) SetBytes([]byte) (P, error) ScalarMult(P, []byte) (P, error) ScalarBaseMult([]byte) (P, error) Add(p1, p2 P) P } func precomputeParams[P Point[P]](c *Curve[P], order []byte) { var err error c.N, err = bigmod.NewModulus(order) if err != nil { panic(err) } two, _ := bigmod.NewNat().SetBytes([]byte{2}, c.N) c.nMinus2 = bigmod.NewNat().ExpandFor(c.N).Sub(two, c.N).Bytes(c.N) } func...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
Back to top