func encoding/asn1.Marshal

41 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#L117: 		oidBytes, err := asn1.Marshal(oid)
		pkcs8.go#L135: 		curvePrivateKey, err := asn1.Marshal(k.Seed())
		pkcs8.go#L147: 			if privKey.PrivateKey, err = asn1.Marshal(k.Bytes()); err != nil {
		pkcs8.go#L155: 			oidBytes, err := asn1.Marshal(oid)
		pkcs8.go#L174: 	return asn1.Marshal(privKey)
		sec1.go#L62: 	return asn1.Marshal(ecPrivateKey{
		sec1.go#L73: 	return asn1.Marshal(ecPrivateKey{
		x509.go#L87: 		publicKeyBytes, err = asn1.Marshal(pkcs1PublicKey{
		x509.go#L109: 		paramBytes, err = asn1.Marshal(oid)
		x509.go#L128: 			paramBytes, err = asn1.Marshal(oid)
		x509.go#L167: 	ret, _ := asn1.Marshal(pkix)
		x509.go#L1081: 	return asn1.Marshal(rawValues)
		x509.go#L1127: 		ret[n].Value, err = asn1.Marshal(subjectKeyId)
		x509.go#L1136: 		ret[n].Value, err = asn1.Marshal(authKeyId{authorityKeyId})
		x509.go#L1159: 		ret[n].Value, err = asn1.Marshal(aiaValues)
		x509.go#L1303: 		ret[n].Value, err = asn1.Marshal(crlDp)
		x509.go#L1331: 	ext.Value, err = asn1.Marshal(asn1.BitString{Bytes: bitString, BitLength: asn1BitLength(bitString)})
		x509.go#L1350: 	ext.Value, err = asn1.Marshal(oids)
		x509.go#L1363: 	ext.Value, err = asn1.Marshal(basicConstraints{isCA, maxPathLen})
		x509.go#L1374: 	ext.Value, err = asn1.Marshal(policies)
		x509.go#L1402: 	return asn1.Marshal(cert.Subject.ToRDNSequence())
		x509.go#L1626: 	tbsCertContents, err := asn1.Marshal(c)
		x509.go#L1653: 	signedCert, err := asn1.Marshal(certificate{
		x509.go#L1742: 		aki.Value, err = asn1.Marshal(authKeyId{Id: c.SubjectKeyId})
		x509.go#L1749: 	tbsCertListContents, err := asn1.Marshal(tbsCertList)
		x509.go#L1767: 	return asn1.Marshal(pkix.CertificateList{
		x509.go#L1844: 	b, err := asn1.Marshal(attributes)
		x509.go#L2025: 		b, err := asn1.Marshal(attr)
		x509.go#L2040: 		asn1Subject, err = asn1.Marshal(template.Subject.ToRDNSequence())
		x509.go#L2059: 	tbsCSRContents, err := asn1.Marshal(tbsCSR)
		x509.go#L2078: 	return asn1.Marshal(certificateRequest{
		x509.go#L2357: 				reasonBytes, err := asn1.Marshal(asn1.Enumerated(rce.ReasonCode))
		x509.go#L2375: 	aki, err := asn1.Marshal(authKeyId{Id: issuer.SubjectKeyId})
		x509.go#L2383: 	crlNum, err := asn1.Marshal(template.Number)
		x509.go#L2419: 	tbsCertListContents, err := asn1.Marshal(tbsCertList)
		x509.go#L2447: 	return asn1.Marshal(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)