64 references to KeyFormatHelper
System.Security.Cryptography (64)
src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (6)
669KeyFormatHelper.ReadSubjectPublicKeyInfo(s_knownOids, source, SubjectPublicKeyReader, out int read, out CompositeMLDsa dsa); 744return KeyFormatHelper.DecryptPkcs8( 802return KeyFormatHelper.DecryptPkcs8( 859KeyFormatHelper.ReadPkcs8(s_knownOids, source, PrivateKeyReader, out int read, out CompositeMLDsa dsa); 1811return KeyFormatHelper.WriteEncryptedPkcs8(passwordBytes, tmp, pbeParameters); 1826return KeyFormatHelper.WriteEncryptedPkcs8(password, tmp, pbeParameters);
src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (5)
167KeyFormatHelper.ReadSubjectPublicKeyInfo<DSAParameters>( 179return KeyFormatHelper.ReadSubjectPublicKeyInfo( 190KeyFormatHelper.ReadPkcs8<DSAParameters>( 204KeyFormatHelper.ReadEncryptedPkcs8<DSAParameters>( 219KeyFormatHelper.ReadEncryptedPkcs8<DSAParameters>(
src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.Encrypted.cs (1)
318ArraySegment<byte> decrypted = KeyFormatHelper.DecryptPkcs8(passwordBytes, manager.Memory, out bytesRead);
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (5)
1421KeyFormatHelper.ReadPkcs8(KnownOids, source, MLDsaKeyReader, out int read, out MLDsa dsa); 1484return KeyFormatHelper.DecryptPkcs8( 1533return KeyFormatHelper.DecryptPkcs8( 2097return KeyFormatHelper.WriteEncryptedPkcs8(passwordBytes, tmp, pbeParameters); 2126return KeyFormatHelper.WriteEncryptedPkcs8(password, tmp, pbeParameters);
src\libraries\Common\src\System\Security\Cryptography\MLDsaPkcs8.cs (1)
57AsnWriter pkcs8Writer = KeyFormatHelper.WritePkcs8(algorithmWriter, privateKeyWriter);
src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (11)
834KeyFormatHelper.WriteEncryptedPkcs8); 935KeyFormatHelper.WriteEncryptedPkcs8); 976KeyFormatHelper.WriteEncryptedPkcs8); 1017KeyFormatHelper.WriteEncryptedPkcs8); 1093KeyFormatHelper.WriteEncryptedPkcs8); 1135KeyFormatHelper.WriteEncryptedPkcs8); 1206KeyFormatHelper.ReadSubjectPublicKeyInfo(s_knownOids, source, SubjectPublicKeyReader, out int read, out MLKem kem); 1270KeyFormatHelper.ReadPkcs8(s_knownOids, source, MLKemKeyReader, out int read, out MLKem kem); 1330return KeyFormatHelper.DecryptPkcs8( 1376return KeyFormatHelper.DecryptPkcs8( 1427return KeyFormatHelper.DecryptPkcs8(
src\libraries\Common\src\System\Security\Cryptography\MLKemPkcs8.cs (1)
57AsnWriter pkcs8Writer = KeyFormatHelper.WritePkcs8(algorithmWriter, privateKeyWriter);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (6)
111AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(password, pkcs8, pbeParameters); 127AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(passwordBytes, pkcs8, pbeParameters); 151AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(password, pkcs8, pbeParameters); 169AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(passwordBytes, pkcs8, pbeParameters); 178ArraySegment<byte> decrypted = KeyFormatHelper.DecryptPkcs8( 209ArraySegment<byte> decrypted = KeyFormatHelper.DecryptPkcs8(
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.cs (3)
64KeyFormatHelper.ReadSubjectPublicKeyInfo<RSAParameters>( 76return KeyFormatHelper.ReadSubjectPublicKeyInfo( 105return KeyFormatHelper.ReadPkcs8(
src\libraries\Common\src\System\Security\Cryptography\RSAKeyFormatHelper.Encrypted.cs (2)
14KeyFormatHelper.ReadEncryptedPkcs8<RSAParameters>( 29KeyFormatHelper.ReadEncryptedPkcs8<RSAParameters>(
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (6)
1225KeyFormatHelper.ReadSubjectPublicKeyInfo(s_knownOids, source, SubjectPublicKeyReader, out int read, out SlhDsa slhDsa); 1288KeyFormatHelper.ReadPkcs8( 1368return KeyFormatHelper.DecryptPkcs8( 1417return KeyFormatHelper.DecryptPkcs8( 1915return KeyFormatHelper.WriteEncryptedPkcs8(password, tmp, pbeParameters); 1943return KeyFormatHelper.WriteEncryptedPkcs8(passwordBytes, tmp, pbeParameters);
src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
1110decrypted = KeyFormatHelper.DecryptPkcs8( 1138decrypted = KeyFormatHelper.DecryptPkcs8(
System\Security\Cryptography\DSA.cs (2)
936AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 958AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(
System\Security\Cryptography\ECAlgorithm.cs (6)
149AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 221AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 365KeyFormatHelper.ReadEncryptedPkcs8<ECParameters>( 439KeyFormatHelper.ReadEncryptedPkcs8<ECParameters>( 499KeyFormatHelper.ReadPkcs8<ECParameters>( 558KeyFormatHelper.ReadSubjectPublicKeyInfo<ECParameters>(
System\Security\Cryptography\EccKeyFormatHelper.cs (5)
30KeyFormatHelper.ReadSubjectPublicKeyInfo<ECParameters>( 42return KeyFormatHelper.ReadSubjectPublicKeyInfo( 54KeyFormatHelper.ReadEncryptedPkcs8<ECParameters>( 69KeyFormatHelper.ReadEncryptedPkcs8<ECParameters>( 486return KeyFormatHelper.WritePkcs8(algorithmIdentifier, ecPrivateKey, attributeWriter);
System\Security\Cryptography\RSA.cs (2)
816AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8( 839AsnWriter writer = KeyFormatHelper.WriteEncryptedPkcs8(