encoding/pem.Block.Type (field)
19 uses
encoding/pem (current package)
pem.go#L28: Type string // The type, taken from the preamble (i.e. "RSA PRIVATE KEY").
pem.go#L106: Type: string(typeLine),
pem.go#L278: if _, err := out.Write([]byte(b.Type + "-----\n")); err != nil {
pem.go#L325: _, err := out.Write([]byte(b.Type + "-----\n"))
crypto/tls
tls.go#L287: if certDERBlock.Type == "CERTIFICATE" {
tls.go#L290: skippedBlockTypes = append(skippedBlockTypes, certDERBlock.Type)
tls.go#L317: if keyDERBlock.Type == "PRIVATE KEY" || strings.HasSuffix(keyDERBlock.Type, " PRIVATE KEY") {
tls.go#L320: skippedBlockTypes = append(skippedBlockTypes, keyDERBlock.Type)
crypto/x509
cert_pool.go#L213: if block.Type != "CERTIFICATE" || len(block.Headers) != 0 {
pem_decrypt.go#L226: Type: blockType,
x509.go#L2269: if block != nil && block.Type == pemType {
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#L1130: switch block.Type {
keys.go#L1143: return nil, fmt.Errorf("ssh: unsupported key type %q", block.Type)
keys.go#L1156: if block.Type == "OPENSSH PRIVATE KEY" {
keys.go#L1172: switch block.Type {
keys.go#L1180: return nil, fmt.Errorf("ssh: unsupported key type %q", block.Type)
 |
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. |