Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ConstantTimeLessOrEq (0.13 sec)

  1. lib/fips140/v1.1.0-rc1.zip

    max { max[i] = 0xff } if got := ConstantTimeLessOrEq(a, max); got != 1 { t.Errorf("ConstantTimeLessOrEq(%x, %x) = %d, want 1", a, max, got) } if got := ConstantTimeLessOrEq(b, max); got != 1 { t.Errorf("ConstantTimeLessOrEq(%x, %x) = %d, want 1", b, max, got) } if got := ConstantTimeLessOrEq(empty, max); got != 1 { t.Errorf("ConstantTimeLessOrEq(%x, %x) = %d, want 1", empty, max, got) } if got := ConstantTimeLessOrEq(max, max); got != 1 { t.Errorf("ConstantTimeLessOrEq(%x, %x) = %d, want 1", max, max,...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Dec 11 16:27:41 UTC 2025
    - 663K bytes
    - Viewed (0)
  2. lib/fips140/v1.0.0-c2097c7c.zip

    != len(y) { panic("subtle: slices have different lengths") } xmask := byte(v - 1) ymask := byte(^(v - 1)) for i := 0; i < len(x); i++ { x[i] = x[i]&xmask | y[i]&ymask } } // ConstantTimeLessOrEq returns 1 if x <= y and 0 otherwise. // Its behavior is undefined if x or y are negative or > 2**31 - 1. func ConstantTimeLessOrEq(x, y int) int { x32 := int32(x) y32 := int32(y) return int(((x32 - y32 - 1) >> 31) & 1) } golang.org/fips140@v1.0.0-c2097c7c/fips140/v1.0.0-c2097c7c/subtle/xor.go // Copyright...
    Registered: Tue Dec 30 11:13:12 UTC 2025
    - Last Modified: Thu Sep 25 19:53:19 UTC 2025
    - 642.7K bytes
    - Viewed (0)
Back to top