Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TrimLeft (0.06 sec)

  1. lib/fips140/v1.0.0.zip

    _ := bigmod.NewModulus(addOne(decodeHex(t, B))) b, _ := bigmod.NewNat().SetBytes(decodeHex(t, B), q) gcd, err := bigmod.NewNat().GCDVarTime(a, b) // GCD doesn't work if a and b are both even, but LCM handles it. if err == nil { if got := strings.TrimLeft(hex.EncodeToString(gcd.Bytes(p)), "0"); got != GCD { t.Fatalf("unexpected GCD: got %s, want %s", got, GCD) } } lcm, err := totient(p, q) if oddDivisorLargerThan(decodeHex(t, GCD)) { if err != errDivisorTooLarge { t.Fatalf("expected divisor too large...
    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