15 references to WriteString
System.Security.Cryptography (15)
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (3)
257
return writer.Encode(static span => PemEncoding.
WriteString
(PemLabels.SpkiPublicKey, span));
557
return writer.Encode(static span => PemEncoding.
WriteString
(PemLabels.EncryptedPkcs8PrivateKey, span));
602
return writer.Encode(static span => PemEncoding.
WriteString
(PemLabels.EncryptedPkcs8PrivateKey, span));
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (1)
1216
return writer.Encode(label, static (l, span) => PemEncoding.
WriteString
(l, span));
System\Security\Cryptography\AsymmetricAlgorithm.cs (4)
403
return PemEncoding.
WriteString
(PemLabels.Pkcs8PrivateKey, exported);
456
return PemEncoding.
WriteString
(PemLabels.EncryptedPkcs8PrivateKey, exported);
504
return PemEncoding.
WriteString
(PemLabels.EncryptedPkcs8PrivateKey, exported);
540
return PemEncoding.
WriteString
(PemLabels.SpkiPublicKey, exported);
System\Security\Cryptography\ECAlgorithm.cs (1)
887
return PemEncoding.
WriteString
(PemLabels.EcPrivateKey, exported);
System\Security\Cryptography\RSA.cs (2)
1267
return PemEncoding.
WriteString
(PemLabels.RsaPrivateKey, exported);
1298
return PemEncoding.
WriteString
(PemLabels.RsaPublicKey, exported);
System\Security\Cryptography\X509Certificates\CertificateRequest.cs (2)
493
return PemEncoding.
WriteString
(PemLabels.Pkcs10CertificateRequest, der);
548
return PemEncoding.
WriteString
(PemLabels.Pkcs10CertificateRequest, der);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (1)
1387
return PemEncoding.
WriteString
(PemLabels.X509Certificate, RawDataMemory.Span);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
506
return PemEncoding.
WriteString
(PemLabels.Pkcs7Certificate, pkcs7);