encoding/pem.Block.Bytes (field)
27 uses
encoding/pem (current package)
pem.go#L32: Bytes []byte // The decoded bytes of the contents. Typically a DER encoded ASN.1 structure.
pem.go#L171: p.Bytes = make([]byte, base64.StdEncoding.DecodedLen(len(base64Data)))
pem.go#L172: n, err := base64.StdEncoding.Decode(p.Bytes, base64Data)
pem.go#L176: p.Bytes = p.Bytes[:n]
pem.go#L292: if _, err := b64.Write(b.Bytes); err != nil {
crypto/tls
tls.go#L267: cert.Certificate = append(cert.Certificate, certDERBlock.Bytes)
tls.go#L315: cert.PrivateKey, err = parsePrivateKey(keyDERBlock.Bytes)
crypto/x509
cert_pool.go#L230: certBytes := block.Bytes
pem_decrypt.go#L155: if len(b.Bytes)%block.BlockSize() != 0 {
pem_decrypt.go#L159: data := make([]byte, len(b.Bytes))
pem_decrypt.go#L161: dec.CryptBlocks(data, b.Bytes)
pem_decrypt.go#L230: Bytes: encrypted,
x509.go#L1722: crlBytes = block.Bytes
github.com/coinbase/cdp-sdk/go/auth
jwt.go#L132: key, err := x509.ParseECPrivateKey(block.Bytes)
jwt.go#L148: privateKey, err := x509.ParseECPrivateKey(block.Bytes)
github.com/golang-jwt/jwt/v5
ecdsa_utils.go#L27: if parsedKey, err = x509.ParseECPrivateKey(block.Bytes); err != nil {
ecdsa_utils.go#L28: if parsedKey, err = x509.ParsePKCS8PrivateKey(block.Bytes); err != nil {
ecdsa_utils.go#L54: if parsedKey, err = x509.ParsePKIXPublicKey(block.Bytes); err != nil {
ecdsa_utils.go#L55: if cert, err := x509.ParseCertificate(block.Bytes); err == nil {
ed25519_utils.go#L28: if parsedKey, err = x509.ParsePKCS8PrivateKey(block.Bytes); err != nil {
ed25519_utils.go#L53: if parsedKey, err = x509.ParsePKIXPublicKey(block.Bytes); err != nil {
rsa_utils.go#L27: if parsedKey, err = x509.ParsePKCS1PrivateKey(block.Bytes); err != nil {
rsa_utils.go#L28: if parsedKey, err = x509.ParsePKCS8PrivateKey(block.Bytes); err != nil {
rsa_utils.go#L90: if parsedKey, err = x509.ParsePKIXPublicKey(block.Bytes); err != nil {
rsa_utils.go#L91: if cert, err := x509.ParseCertificate(block.Bytes); err == nil {
rsa_utils.go#L94: if parsedKey, err = x509.ParsePKCS1PublicKey(block.Bytes); err != nil {
 |
The pages are generated with Golds v0.7.6. (GOOS=linux 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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |