Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for extendedGCD (0.4 sec)

  1. lib/fips140/v1.0.0.zip

    the larger of a and b. func (x *Nat) GCDVarTime(a, b *Nat) (*Nat, error) { u, _, err := extendedGCD(a, b) if err != nil { return nil, err } return x.set(u), nil } // extendedGCD computes u and A such that a = GCD(a, m) and u = A*a - B*m. // // u will have the size of the larger of a and m, and A will have the size of m. // // It is an error if either a or m is zero, or if they are both even. func extendedGCD(a, m *Nat) (u, A *Nat, err error) { // This is the extended binary GCD algorithm described...
    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