- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for sha256Hashes (0.32 sec)
-
cmd/kubeadm/app/util/pubkeypin/pubkeypin.go
) var ( // supportedFormats enumerates the supported formats supportedFormats = strings.Join([]string{formatSHA256}, ", ") ) // Set is a set of pinned x509 public keys. type Set struct { sha256Hashes map[string]bool } // NewSet returns a new, empty PubKeyPinSet func NewSet() *Set { return &Set{make(map[string]bool)} } // Allow adds an allowed public key hash to the Set
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 13 11:38:39 UTC 2021 - 3.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/pubkeypin/pubkeypin_test.go
`sha256:0000000000000000000000000000000000000000000000000000000000000000`, `sha256:0000000000000000000000000000000000000000000000000000000000000001`, } err = s.Allow(hashes...) if err != nil || len(s.sha256Hashes) != 2 { t.Error("expected allowing multiple hashes to succeed") return } } func TestHash(t *testing.T) { actualHash := Hash(testCert(t, testCertPEM)) if actualHash != expectedHash {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 13 11:38:39 UTC 2021 - 5.9K bytes - Viewed (0)