- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for hashFunc (0.25 sec)
-
src/crypto/tls/auth_test.go
} sigType, hashFunc, err = legacyTypeAndHashFromPublicKey(testECDSAPrivateKey.Public()) if err != nil { t.Errorf("ECDSA: unexpected error: %v", err) } if expectedSigType := signatureECDSA; expectedSigType != sigType { t.Errorf("ECDSA: expected signature type %#x, got %#x", expectedSigType, sigType) } if expectedHashFunc := crypto.SHA1; expectedHashFunc != hashFunc {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 08 21:48:41 UTC 2020 - 6.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cache_striped.go
"hash/fnv" "time" ) // split cache lookups across N striped caches type stripedCache struct { stripeCount uint32 hashFunc func(string) uint32 caches []cache } type hashFunc func(string) uint32 type newCacheFunc func() cache func newStripedCache(stripeCount int, hash hashFunc, newCacheFunc newCacheFunc) cache { caches := []cache{} for i := 0; i < stripeCount; i++ { caches = append(caches, newCacheFunc())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 22 17:16:59 UTC 2018 - 1.6K bytes - Viewed (0) -
src/crypto/crypto.go
import ( "hash" "io" "strconv" ) // Hash identifies a cryptographic hash function that is implemented in another // package. type Hash uint // HashFunc simply returns the value of h so that [Hash] implements [SignerOpts]. func (h Hash) HashFunc() Hash { return h } func (h Hash) String() string { switch h { case MD4: return "MD4" case MD5: return "MD5" case SHA1: return "SHA-1"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:09:47 UTC 2023 - 6.8K bytes - Viewed (0) -
src/crypto/tls/prf.go
func prf12(hashFunc func() hash.Hash) func(result, secret, label, seed []byte) { return func(result, secret, label, seed []byte) { labelAndSeed := make([]byte, len(label)+len(seed)) copy(labelAndSeed, label) copy(labelAndSeed[len(label):], seed) pHash(result, secret, labelAndSeed, hashFunc) } } const (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 16:29:49 UTC 2023 - 9.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/print.go
package ssa import ( "fmt" "io" "strings" "cmd/internal/notsha256" "cmd/internal/src" ) func printFunc(f *Func) { f.Logf("%s", f) } func hashFunc(f *Func) []byte { h := notsha256.New() p := stringFuncPrinter{w: h, printDead: true} fprintFunc(p, f) return h.Sum(nil) } func (f *Func) String() string { var buf strings.Builder
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 3.9K bytes - Viewed (0)