- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 126 for biglen (0.16 sec)
-
test/fixedbugs/bug273.go
g4 = make(chan cblock, big) } func overflowchan() { const ptrSize = unsafe.Sizeof(uintptr(0)) g4 = make(chan cblock, 1<<(30*(ptrSize/4))) } func main() { shouldfail(badlen, "badlen") shouldfail(biglen, "biglen") shouldfail(badcap, "badcap") shouldfail(badcap1, "badcap1") shouldfail(bigcap, "bigcap") shouldfail(badchancap, "badchancap") shouldfail(bigchancap, "bigchancap")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 26 14:06:28 UTC 2018 - 1.3K bytes - Viewed (0) -
src/crypto/dsa/dsa.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 7.2K bytes - Viewed (0) -
src/crypto/rand/util.go
} n = new(big.Int) n.Sub(max, n.SetUint64(1)) // bitLen is the maximum bit length needed to encode a value < max. bitLen := n.BitLen() if bitLen == 0 { // the only valid result is 0 return } // k is the maximum byte length needed to encode a value < max. k := (bitLen + 7) / 8 // b is the number of bits in the most significant byte of max-1. b := uint(bitLen % 8) if b == 0 { b = 8 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 2.4K bytes - Viewed (0) -
src/crypto/dsa/dsa_test.go
if err != nil { t.Errorf("%d: %s", int(sizes), err) return } if params.P.BitLen() != L { t.Errorf("%d: params.BitLen got:%d want:%d", int(sizes), params.P.BitLen(), L) } if params.Q.BitLen() != N { t.Errorf("%d: q.BitLen got:%d want:%d", int(sizes), params.Q.BitLen(), L) } one := new(big.Int) one.SetInt64(1) pm1 := new(big.Int).Sub(params.P, one)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 15 21:04:43 UTC 2019 - 4.7K bytes - Viewed (0) -
src/crypto/internal/boring/ecdsa.go
size := C._goboringcrypto_ECDSA_size(priv.key) sig := make([]byte, size) var sigLen C.uint if C._goboringcrypto_ECDSA_sign(0, base(hash), C.size_t(len(hash)), base(sig), &sigLen, priv.key) == 0 { return nil, fail("ECDSA_sign") } runtime.KeepAlive(priv) return sig[:sigLen], nil } func VerifyECDSA(pub *PublicKeyECDSA, hash []byte, sig []byte) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 17:51:31 UTC 2023 - 4.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java
h ^= fingerprint(buf, bufLen); h = remix(h); buf[bufLen++] = getChar(h); int x0 = buf[bufLen - 1] & 0xff; int x1 = buf[bufLen - 2] & 0xff; int x2 = buf[bufLen - 3] & 0xff; int x3 = buf[bufLen / 2] & 0xff; buf[((x0 << 16) + (x1 << 8) + x2) % bufLen] ^= x3; buf[((x1 << 16) + (x2 << 8) + x3) % bufLen] ^= i % 256; } assertEquals(0x7a1d67c50ec7e167L, h); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jun 26 15:56:47 UTC 2017 - 6.2K bytes - Viewed (0) -
test/fibo.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 08 22:22:58 UTC 2014 - 6.3K bytes - Viewed (0) -
src/os/user/cgo_lookup_cgo.go
#include <string.h> static struct passwd mygetpwuid_r(int uid, char *buf, size_t buflen, int *found, int *perr) { struct passwd pwd; struct passwd *result; memset (&pwd, 0, sizeof(pwd)); *perr = getpwuid_r(uid, &pwd, buf, buflen, &result); *found = result != NULL; return pwd; } static struct passwd mygetpwnam_r(const char *name, char *buf, size_t buflen, int *found, int *perr) { struct passwd pwd; struct passwd *result;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 16 17:45:51 UTC 2022 - 3.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/math.go
// It is also the maximum decimal digits that can be represented with an int64. maxInt64Factors = 18 ) var ( // Commonly needed big.Int values-- treat as read only! bigTen = big.NewInt(10) bigZero = big.NewInt(0) bigOne = big.NewInt(1) bigThousand = big.NewInt(1000) big1024 = big.NewInt(1024) // Commonly needed inf.Dec values-- treat as read only! decZero = inf.NewDec(0, 0)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 23 13:07:14 UTC 2020 - 7.3K bytes - Viewed (0) -
src/crypto/ecdsa/ecdsa_legacy.go
// signatures will come out different from other architectures, which will // break TLS recorded tests. for { N := c.Params().N b := make([]byte, (N.BitLen()+7)/8) if _, err = io.ReadFull(rand, b); err != nil { return } if excess := len(b)*8 - N.BitLen(); excess > 0 { b[0] >>= excess } k = new(big.Int).SetBytes(b) if k.Sign() != 0 && k.Cmp(N) < 0 { return } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 4.8K bytes - Viewed (0)