func encoding/asn1.Marshal

41 uses

	encoding/asn1 (current package)
		marshal.go#L735: func Marshal(val any) ([]byte, error) {

	crypto/x509
		pkcs1.go#L160: 	b, _ := asn1.Marshal(priv)
		pkcs1.go#L197: 	derBytes, _ := asn1.Marshal(pkcs1PublicKey{
		pkcs8.go#L126: 		oidBytes, err := asn1.Marshal(oid)
		pkcs8.go#L144: 		curvePrivateKey, err := asn1.Marshal(k.Seed())
		pkcs8.go#L156: 			if privKey.PrivateKey, err = asn1.Marshal(k.Bytes()); err != nil {
		pkcs8.go#L164: 			oidBytes, err := asn1.Marshal(oid)
		pkcs8.go#L183: 	return asn1.Marshal(privKey)
		sec1.go#L65: 	return asn1.Marshal(ecPrivateKey{
		sec1.go#L76: 	return asn1.Marshal(ecPrivateKey{
		x509.go#L88: 		publicKeyBytes, err = asn1.Marshal(pkcs1PublicKey{
		x509.go#L110: 		paramBytes, err = asn1.Marshal(oid)
		x509.go#L129: 			paramBytes, err = asn1.Marshal(oid)
		x509.go#L168: 	ret, _ := asn1.Marshal(pkix)
		x509.go#L1183: 	return asn1.Marshal(rawValues)
		x509.go#L1231: 		ret[n].Value, err = asn1.Marshal(subjectKeyId)
		x509.go#L1240: 		ret[n].Value, err = asn1.Marshal(authKeyId{authorityKeyId})
		x509.go#L1263: 		ret[n].Value, err = asn1.Marshal(aiaValues)
		x509.go#L1408: 		ret[n].Value, err = asn1.Marshal(crlDp)
		x509.go#L1436: 	ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
		x509.go#L1455: 	ext.Value, err = asn1.Marshal(oids)
		x509.go#L1468: 	ext.Value, err = asn1.Marshal(basicConstraints{isCA, maxPathLen})
		x509.go#L1528: 	return asn1.Marshal(cert.Subject.ToRDNSequence())
		x509.go#L1794: 	tbsCertContents, err := asn1.Marshal(c)
		x509.go#L1805: 	return asn1.Marshal(certificate{
		x509.go#L1886: 		aki.Value, err = asn1.Marshal(authKeyId{Id: c.SubjectKeyId})
		x509.go#L1893: 	tbsCertListContents, err := asn1.Marshal(tbsCertList)
		x509.go#L1904: 	return asn1.Marshal(pkix.CertificateList{
		x509.go#L1981: 	b, err := asn1.Marshal(attributes)
		x509.go#L2160: 		b, err := asn1.Marshal(attr)
		x509.go#L2175: 		asn1Subject, err = asn1.Marshal(template.Subject.ToRDNSequence())
		x509.go#L2194: 	tbsCSRContents, err := asn1.Marshal(tbsCSR)
		x509.go#L2205: 	return asn1.Marshal(certificateRequest{
		x509.go#L2482: 				reasonBytes, err := asn1.Marshal(asn1.Enumerated(rce.ReasonCode))
		x509.go#L2500: 	aki, err := asn1.Marshal(authKeyId{Id: issuer.SubjectKeyId})
		x509.go#L2508: 	crlNum, err := asn1.Marshal(template.Number)
		x509.go#L2544: 	tbsCertListContents, err := asn1.Marshal(tbsCertList)
		x509.go#L2558: 	return asn1.Marshal(certificateList{

	crypto/x509/pkix
		pkix.go#L55: 				derBytes, err := asn1.Marshal(tv.Value)

	golang.org/x/crypto/cryptobyte
		asn1.go#L218: 	bytes, err := encoding_asn1.Marshal(v)

	vendor/golang.org/x/crypto/cryptobyte
		asn1.go#L218: 	bytes, err := encoding_asn1.Marshal(v)