func encoding/asn1.Marshal
36 uses
encoding/asn1 (current package)
marshal.go#L733: func Marshal(val any) ([]byte, error) {
crypto/x509
pkcs1.go#L131: b, _ := asn1.Marshal(priv)
pkcs1.go#L168: derBytes, _ := asn1.Marshal(pkcs1PublicKey{
pkcs8.go#L105: oidBytes, err := asn1.Marshal(oid)
pkcs8.go#L125: curvePrivateKey, err := asn1.Marshal(k.Seed())
pkcs8.go#L135: return asn1.Marshal(privKey)
sec1.go#L56: return asn1.Marshal(ecPrivateKey{
x509.go#L75: publicKeyBytes, err = asn1.Marshal(pkcs1PublicKey{
x509.go#L94: paramBytes, err = asn1.Marshal(oid)
x509.go#L134: ret, _ := asn1.Marshal(pkix)
x509.go#L1021: return asn1.Marshal(rawValues)
x509.go#L1067: ret[n].Value, err = asn1.Marshal(subjectKeyId)
x509.go#L1076: ret[n].Value, err = asn1.Marshal(authKeyId{authorityKeyId})
x509.go#L1099: ret[n].Value, err = asn1.Marshal(aiaValues)
x509.go#L1243: ret[n].Value, err = asn1.Marshal(crlDp)
x509.go#L1271: ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
x509.go#L1293: ext.Value, err = asn1.Marshal(oids)
x509.go#L1309: ext.Value, err = asn1.Marshal(basicConstraints{isCA, maxPathLen})
x509.go#L1323: ext.Value, err = asn1.Marshal(policies)
x509.go#L1354: return asn1.Marshal(cert.Subject.ToRDNSequence())
x509.go#L1562: tbsCertContents, err := asn1.Marshal(c)
x509.go#L1589: signedCert, err := asn1.Marshal(certificate{
x509.go#L1682: aki.Value, err = asn1.Marshal(authKeyId{Id: c.SubjectKeyId})
x509.go#L1689: tbsCertListContents, err := asn1.Marshal(tbsCertList)
x509.go#L1707: return asn1.Marshal(pkix.CertificateList{
x509.go#L1784: b, err := asn1.Marshal(attributes)
x509.go#L1957: b, err := asn1.Marshal(attr)
x509.go#L1972: asn1Subject, err = asn1.Marshal(template.Subject.ToRDNSequence())
x509.go#L1991: tbsCSRContents, err := asn1.Marshal(tbsCSR)
x509.go#L2010: return asn1.Marshal(certificateRequest{
x509.go#L2161: aki, err := asn1.Marshal(authKeyId{Id: issuer.SubjectKeyId})
x509.go#L2165: crlNum, err := asn1.Marshal(template.Number)
x509.go#L2195: tbsCertListContents, err := asn1.Marshal(tbsCertList)
x509.go#L2219: return asn1.Marshal(pkix.CertificateList{
crypto/x509/pkix
pkix.go#L55: derBytes, err := asn1.Marshal(tv.Value)
vendor/golang.org/x/crypto/cryptobyte
asn1.go#L218: bytes, err := encoding_asn1.Marshal(v)