- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for copyBytes (0.19 sec)
-
security/pkg/pki/util/keycertbundle.go
func (b *KeyCertBundle) GetAllPem() (certBytes, privKeyBytes, certChainBytes, rootCertBytes []byte) { b.mutex.RLock() certBytes = copyBytes(b.certBytes) privKeyBytes = copyBytes(b.privKeyBytes) certChainBytes = copyBytes(b.certChainBytes) rootCertBytes = copyBytes(b.rootCertBytes) b.mutex.RUnlock() return }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jan 21 06:07:50 UTC 2024 - 10.5K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/cryptobyte/string.go
v := s.read(n) if v == nil { return false } *out = v return true } // CopyBytes copies len(out) bytes into out and advances over them. It reports // whether the copy operation was successful func (s *String) CopyBytes(out []byte) bool { n := len(out) v := s.read(n) if v == nil { return false } return copy(out, v) == n }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 10 16:32:44 UTC 2023 - 5.2K bytes - Viewed (0) -
security/pkg/pki/util/san_test.go
}, "Extensions with incorrectly encoded SAN": { exts: []pkix.Extension{ {Id: asn1.ObjectIdentifier{2, 5, 29, 17}, Value: append(copyBytes(sanExt.Value), 'x')}, }, expectedIDs: nil, expectedErrMsg: "failed to extract identities from SAN extension (error the SAN extension is incorrectly encoded)", }, "Extensions with SAN": {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 17:36:33 UTC 2024 - 6.5K bytes - Viewed (0) -
src/crypto/tls/handshake_messages.go
m.quicTransportParameters = make([]byte, len(extData)) if !extData.CopyBytes(m.quicTransportParameters) { return false } case extensionEarlyData: // RFC 8446, Section 4.2.10 m.earlyData = true case extensionEncryptedClientHello: m.echRetryConfigs = make([]byte, len(extData)) if !extData.CopyBytes(m.echRetryConfigs) { return false } default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 51.8K bytes - Viewed (0) -
test/noinit.go
// Could be handled without an initialization function, but // requires special handling for "a = []byte("..."); b = a" // which is not a likely case. // copy_bytes = bytes // https://codereview.appspot.com/171840043 is one approach to // make this special case work. copy_four, copy_five = four, five copy_x = x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 17:57:36 UTC 2023 - 6.8K bytes - Viewed (0)