- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for divRoundUp (0.06 sec)
-
lib/fips140/v1.0.0.zip
package pbkdf2 import ( "crypto/internal/fips140" "crypto/internal/fips140/hmac" "errors" ) // divRoundUp divides x+y-1 by y, rounding up if the result is not whole. // This function casts x and y to int64 in order to avoid cases where // x+y would overflow int on systems where int is an int32. The result // is an int, which is safe as (x+y-1)/y should always fit, regardless // of the integer size. func divRoundUp(x, y int) int { return int((int64(x) + int64(y) - 1) / int64(y)) } func Key[Hash fips140.Hash](h...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)