- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ConstantTimeByteEq (0.09 sec)
-
lib/fips140/v1.0.0.zip
{ if len(x) != len(y) { return 0 } var v byte for i := 0; i < len(x); i++ { v |= x[i] ^ y[i] } return ConstantTimeByteEq(v, 0) } // ConstantTimeSelect returns x if v == 1 and y if v == 0. // Its behavior is undefined if v takes any other value. func ConstantTimeSelect(v, x, y int) int { return ^(v-1)&x | (v-1)&y } // ConstantTimeByteEq returns 1 if x == y and 0 otherwise. func ConstantTimeByteEq(x, y uint8) int { return int((uint32(x^y) - 1) >> 31) } // ConstantTimeEq returns 1 if x == y and 0 otherwise....
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0) -
api/go1.txt
pkg crypto/sha512, const Size ideal-int pkg crypto/sha512, const Size384 ideal-int pkg crypto/sha512, func New() hash.Hash pkg crypto/sha512, func New384() hash.Hash pkg crypto/subtle, func ConstantTimeByteEq(uint8, uint8) int pkg crypto/subtle, func ConstantTimeCompare([]uint8, []uint8) int pkg crypto/subtle, func ConstantTimeCopy(int, []uint8, []uint8) pkg crypto/subtle, func ConstantTimeEq(int32, int32) int
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)