encoding/pem.Block.Bytes (field)
23 uses
encoding/pem (current package)
pem.go#L30: Bytes []byte // The decoded bytes of the contents. Typically a DER encoded ASN.1 structure.
pem.go#L167: p.Bytes = make([]byte, base64.StdEncoding.DecodedLen(len(base64Data)))
pem.go#L168: n, err := base64.StdEncoding.Decode(p.Bytes, base64Data)
pem.go#L172: p.Bytes = p.Bytes[:n]
pem.go#L316: if _, err := b64.Write(b.Bytes); err != nil {
cloud.google.com/go/storage
storage.go#L1028: key = block.Bytes
crypto/tls
tls.go#L288: cert.Certificate = append(cert.Certificate, certDERBlock.Bytes)
tls.go#L330: cert.PrivateKey, err = parsePrivateKey(keyDERBlock.Bytes)
crypto/x509
cert_pool.go#L217: certBytes := block.Bytes
pem_decrypt.go#L156: if len(b.Bytes)%block.BlockSize() != 0 {
pem_decrypt.go#L160: data := make([]byte, len(b.Bytes))
pem_decrypt.go#L162: dec.CryptBlocks(data, b.Bytes)
pem_decrypt.go#L231: Bytes: encrypted,
x509.go#L2270: crlBytes = block.Bytes
github.com/go-git/go-git/v5/plumbing/transport/ssh
auth_method.go#L136: block = &pem.Block{Type: block.Type, Bytes: key}
golang.org/x/crypto/ssh
keys.go#L1132: return x509.ParsePKCS1PrivateKey(block.Bytes)
keys.go#L1135: return x509.ParsePKCS8PrivateKey(block.Bytes)
keys.go#L1137: return x509.ParseECPrivateKey(block.Bytes)
keys.go#L1139: return ParseDSAPrivateKey(block.Bytes)
keys.go#L1141: return parseOpenSSHPrivateKey(block.Bytes, unencryptedOpenSSHKey)
keys.go#L1157: return parseOpenSSHPrivateKey(block.Bytes, passphraseProtectedOpenSSHKey(passphrase))
golang.org/x/oauth2/internal
oauth2.go#L23: key = block.Bytes
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |