- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for allowSHA256 (0.2 sec)
-
cmd/kubeadm/app/util/pubkeypin/pubkeypin.go
spkiHash := sha256.Sum256(certificate.RawSubjectPublicKeyInfo) return formatSHA256 + ":" + strings.ToLower(hex.EncodeToString(spkiHash[:])) } // allowSHA256 validates a "sha256" format hash and adds a canonical version of it into the Set func (s *Set) allowSHA256(hash string) error { // validate that the hash is the right length to be a full SHA-256 hash hashLength := hex.DecodedLen(len(hash)) if hashLength != sha256.Size {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 13 11:38:39 UTC 2021 - 3.8K bytes - Viewed (0)