16 references to WriteString
System.Security.Cryptography (16)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (1)
1337return ExportPkcs8PrivateKeyCallback(static pkcs8 => PemEncoding.WriteString(PemLabels.Pkcs8PrivateKey, pkcs8));
src\libraries\Common\src\System\Security\Cryptography\Helpers.cs (1)
230return writer.Encode(label, static (label, span) => PemEncoding.WriteString(label, span));
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (1)
825return ExportPkcs8PrivateKeyCallback(static pkcs8 => PemEncoding.WriteString(PemLabels.Pkcs8PrivateKey, pkcs8));
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (1)
758return ExportPkcs8PrivateKeyCallback(static pkcs8 => PemEncoding.WriteString(PemLabels.Pkcs8PrivateKey, pkcs8));
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (1)
705return ExportPkcs8PrivateKeyCallback(static pkcs8 => PemEncoding.WriteString(PemLabels.Pkcs8PrivateKey, pkcs8));
System\Security\Cryptography\AsymmetricAlgorithm.cs (4)
403return PemEncoding.WriteString(PemLabels.Pkcs8PrivateKey, exported); 456return PemEncoding.WriteString(PemLabels.EncryptedPkcs8PrivateKey, exported); 504return PemEncoding.WriteString(PemLabels.EncryptedPkcs8PrivateKey, exported); 540return PemEncoding.WriteString(PemLabels.SpkiPublicKey, exported);
System\Security\Cryptography\ECAlgorithm.cs (1)
887return PemEncoding.WriteString(PemLabels.EcPrivateKey, exported);
System\Security\Cryptography\RSA.cs (2)
1246return PemEncoding.WriteString(PemLabels.RsaPrivateKey, exported); 1277return PemEncoding.WriteString(PemLabels.RsaPublicKey, exported);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
597return PemEncoding.WriteString(PemLabels.Pkcs10CertificateRequest, der); 652return PemEncoding.WriteString(PemLabels.Pkcs10CertificateRequest, der);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1617return PemEncoding.WriteString(PemLabels.X509Certificate, RawDataMemory.Span);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
506return PemEncoding.WriteString(PemLabels.Pkcs7Certificate, pkcs7);