You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Security.Cryptography/AsymmetricAlgorithm.xml
+47-10Lines changed: 47 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -661,7 +661,7 @@
661
661
<paramname="passwordBytes">The bytes to use as a password when decrypting the key material.</param>
662
662
<paramname="source">The bytes of a PKCS#8 EncryptedPrivateKeyInfo structure in the ASN.1-BER encoding.</param>
663
663
<paramname="bytesRead">When this method returns, contains a value that indicates the number of bytes read from <paramrefname="source"/>. This parameter is treated as uninitialized.</param>
664
-
<summary>Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a byte-based password, replacing the keys for this object.</summary>
664
+
<summary>When overridden in a derived class, imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a byte-based password, replacing the keys for this object.</summary>
665
665
<remarks>
666
666
<formattype="text/markdown"><![CDATA[
667
667
@@ -671,6 +671,9 @@
671
671
672
672
This method only supports the binary (BER/CER/DER) encoding of EncryptedPrivateKeyInfo.
673
673
If the value is Base64-encoded or in the PEM text format, the caller must Base64-decode the contents before calling this method.
674
+
675
+
Because algorithm-specific support is required to interpret the contents of this data format, <xref:System.Security.Cryptography.AsymmetricAlgorithm.ImportEncryptedPkcs8PrivateKey%2A> throws a <xref:System.NotImplementedException> by default.
676
+
674
677
]]></format>
675
678
</remarks>
676
679
<exceptioncref="T:System.Security.Cryptography.CryptographicException">The password is incorrect.
@@ -695,6 +698,7 @@ The contents of <paramref name="source"/> represent the key in a format that is
695
698
696
699
The algorithm-specific key import failed.
697
700
</exception>
701
+
<exceptioncref="T:System.NotImplementedException">A derived type has not overriden this member.</exception>
@@ -727,7 +731,7 @@ The algorithm-specific key import failed.
727
731
<paramname="password">The password to use for decrypting the key material.</param>
728
732
<paramname="source">The bytes of a PKCS#8 EncryptedPrivateKeyInfo structure in the ASN.1-BER encoding.</param>
729
733
<paramname="bytesRead">When this method returns, contains a value that indicates the number of bytes read from <paramrefname="source"/>. This parameter is treated as uninitialized.</param>
730
-
<summary>Imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a char-based password, replacing the keys for this object.</summary>
734
+
<summary>When overridden in a derived class, imports the public/private keypair from a PKCS#8 EncryptedPrivateKeyInfo structure after decrypting with a char-based password, replacing the keys for this object.</summary>
731
735
<remarks>
732
736
<formattype="text/markdown"><![CDATA[
733
737
@@ -736,6 +740,9 @@ The algorithm-specific key import failed.
736
740
737
741
This method only supports the binary (BER/CER/DER) encoding of EncryptedPrivateKeyInfo.
738
742
If the value is Base64-encoded or in the PEM text format, the caller must Base64-decode the contents before calling this method.
743
+
744
+
Because algorithm-specific support is required to interpret the contents of this data format, <xref:System.Security.Cryptography.AsymmetricAlgorithm.ImportEncryptedPkcs8PrivateKey%2A> throws a <xref:System.NotImplementedException> by default.
745
+
739
746
]]></format>
740
747
</remarks>
741
748
<exceptioncref="T:System.Security.Cryptography.CryptographicException">The password is incorrect.
@@ -756,6 +763,7 @@ The contents of <paramref name="source"/> represent the key in a format that is
756
763
757
764
The algorithm-specific key import failed.
758
765
</exception>
766
+
<exceptioncref="T:System.NotImplementedException">A derived type has not overriden this member.</exception>
759
767
</Docs>
760
768
</Member>
761
769
<MemberMemberName="ImportPkcs8PrivateKey">
@@ -786,13 +794,16 @@ The algorithm-specific key import failed.
786
794
<Docs>
787
795
<paramname="source">The bytes of a PKCS#8 PrivateKeyInfo structure in the ASN.1-BER encoding.</param>
788
796
<paramname="bytesRead">When this method returns, contains a value that indicates the number of bytes read from <paramrefname="source"/>. This parameter is treated as uninitialized.</param>
789
-
<summary>Imports the public/private keypair from a PKCS#8 PrivateKeyInfo structure after decryption, replacing the keys for this object.</summary>
797
+
<summary>When overriden in a derived class, imports the public/private keypair from a PKCS#8 PrivateKeyInfo structure after decryption, replacing the keys for this object.</summary>
790
798
<remarks>
791
799
<formattype="text/markdown"><![CDATA[
792
800
793
801
## Remarks
794
802
This method only supports the binary (BER/CER/DER) encoding of PrivateKeyInfo.
795
803
If the value is Base64-encoded or in the PEM text format, the caller must Base64-decode the contents before calling this method.
804
+
805
+
Because algorithm-specific support is required to interpret the contents of this data format, <xref:System.Security.Cryptography.AsymmetricAlgorithm.ImportPkcs8PrivateKey%2A> throws a <xref:System.NotImplementedException> by default.
806
+
796
807
]]></format>
797
808
</remarks>
798
809
<exceptioncref="T:System.Security.Cryptography.CryptographicException">The contents of <paramrefname="source"/> do not represent an ASN.1-BER-encoded PKCS#8 PrivateKeyInfo structure.
@@ -809,6 +820,7 @@ The contents of <paramref name="source"/> represent the key in a format that is
809
820
810
821
The algorithm-specific key import failed.
811
822
</exception>
823
+
<exceptioncref="T:System.NotImplementedException">A derived type has not overriden this member.</exception>
812
824
</Docs>
813
825
</Member>
814
826
<MemberMemberName="ImportSubjectPublicKeyInfo">
@@ -839,13 +851,15 @@ The algorithm-specific key import failed.
839
851
<Docs>
840
852
<paramname="source">The bytes of an X.509 SubjectPublicKeyInfo structure in the ASN.1-DER encoding.</param>
841
853
<paramname="bytesRead">When this method returns, contains a value that indicates the number of bytes read from <paramrefname="source"/>. This parameter is treated as uninitialized.</param>
842
-
<summary>Imports the public key from an X.509 SubjectPublicKeyInfo structure after decryption, replacing the keys for this object.</summary>
854
+
<summary>When overriden in a derived class, imports the public key from an X.509 SubjectPublicKeyInfo structure after decryption, replacing the keys for this object.</summary>
843
855
<remarks>
844
856
<formattype="text/markdown"><![CDATA[
845
857
846
858
## Remarks
847
859
This method only supports the binary (DER) encoding of SubjectPublicKeyInfo.
848
860
If the value is Base64-encoded or in the PEM text format, the caller must Base64-decode the contents before calling this method.
861
+
862
+
Because algorithm-specific support is required to interpret the contents of this data format, <xref:System.Security.Cryptography.AsymmetricAlgorithm.ImportSubjectPublicKeyInfo%2A> throws a <xref:System.NotImplementedException> by default.
849
863
]]></format>
850
864
</remarks>
851
865
<exceptioncref="T:System.Security.Cryptography.CryptographicException">The contents of <paramrefname="source"/> do not represent an ASN.1-DER-encoded X.509 SubjectPublicKeyInfo structure.
@@ -862,6 +876,7 @@ The contents of <paramref name="source"/> represent the key in a format that is
862
876
863
877
The algorithm-specific key import failed.
864
878
</exception>
879
+
<exceptioncref="T:System.NotImplementedException">A derived type has not overriden this member.</exception>
865
880
</Docs>
866
881
</Member>
867
882
<MemberMemberName="KeyExchangeAlgorithm">
@@ -1270,7 +1285,7 @@ This member is an explicit interface member implementation. It can be used only
1270
1285
<paramname="pbeParameters">The password-based encryption (PBE) parameters to use when encrypting the key material.</param>
1271
1286
<paramname="destination">The byte span to receive the PKCS#8 EncryptedPrivateKeyInfo data.</param>
1272
1287
<paramname="bytesWritten">When this method returns, contains a value that indicates the number of bytes written to <paramrefname="destination"/>. This parameter is treated as uninitialized.</param>
1273
-
<summary>Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a byte-based password.</summary>
1288
+
<summary>When overridden in a derived class, attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a byte-based password.</summary>
1274
1289
<returns><seelangword="true"/> if <paramrefname="destination"/> is big enough to receive the output; otherwise, <seelangword="false"/>.</returns>
1275
1290
<remarks>
1276
1291
<formattype="text/markdown"><![CDATA[
@@ -1279,6 +1294,8 @@ This member is an explicit interface member implementation. It can be used only
1279
1294
The password bytes are passed directly into the Key Derivation Function (KDF) used by the algorithm indicated by `pbeParameters`.
1280
1295
This enables compatibility with other systems which use a text encoding other than UTF-8 when processing passwords with PBKDF2 (Password-Based Key Derivation Function 2).
1281
1296
1297
+
Because algorithm-specific support is required to produce this data format, <xref:System.Security.Cryptography.AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKey%2A> throws a <xref:System.NotImplementedException> by default.
1298
+
1282
1299
]]></format>
1283
1300
</remarks>
1284
1301
<exceptioncref="T:System.Security.Cryptography.CryptographicException">The key could not be exported.
@@ -1287,6 +1304,7 @@ This member is an explicit interface member implementation. It can be used only
1287
1304
1288
1305
<paramrefname="pbeParameters"/> indicates that <seecref="F:System.Security.Cryptography.PbeEncryptionAlgorithm.TripleDes3KeyPkcs12"/> should be used, which requires <seecref="T:System.Char"/>-based passwords.
1289
1306
</exception>
1307
+
<exceptioncref="T:System.NotImplementedException">A derived type has not overriden this member.</exception>
@@ -1321,17 +1339,20 @@ This member is an explicit interface member implementation. It can be used only
1321
1339
<paramname="pbeParameters">The password-based encryption (PBE) parameters to use when encrypting the key material.</param>
1322
1340
<paramname="destination">The byte span to receive the PKCS#8 EncryptedPrivateKeyInfo data.</param>
1323
1341
<paramname="bytesWritten">When this method returns, contains a value that indicates the number of bytes written to <paramrefname="destination"/>. This parameter is treated as uninitialized.</param>
1324
-
<summary>Attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a char-based password.</summary>
1342
+
<summary>When overriden in a derived class, attempts to export the current key in the PKCS#8 EncryptedPrivateKeyInfo format into a provided buffer, using a char-based password.</summary>
1325
1343
<returns><seelangword="true"/> if <paramrefname="destination"/> is big enough to receive the output; otherwise, <seelangword="false"/>.</returns>
1326
1344
<remarks>
1327
1345
<formattype="text/markdown"><![CDATA[
1328
1346
1329
1347
## Remarks
1330
1348
When `pbeParameters` indicates an algorithm that uses PBKDF2 (Password-Based Key Derivation Function 2), the password is converted to bytes via the UTF-8 encoding.
1331
1349
1350
+
Because algorithm-specific support is required to produce this data format, <xref:System.Security.Cryptography.AsymmetricAlgorithm.TryExportEncryptedPkcs8PrivateKey%2A> throws a <xref:System.NotImplementedException> by default.
1351
+
1332
1352
]]></format>
1333
1353
</remarks>
1334
1354
<exceptioncref="T:System.Security.Cryptography.CryptographicException">The key could not be exported.</exception>
1355
+
<exceptioncref="T:System.NotImplementedException">A derived type has not overriden this member.</exception>
@@ -1363,10 +1384,18 @@ This member is an explicit interface member implementation. It can be used only
1363
1384
<Docs>
1364
1385
<paramname="destination">The byte span to receive the PKCS#8 PrivateKeyInfo data.</param>
1365
1386
<paramname="bytesWritten">When this method returns, contains a value that indicates the number of bytes written to <paramrefname="destination"/>. This parameter is treated as uninitialized.</param>
1366
-
<summary>Attempts to export the current key in the PKCS#8 PrivateKeyInfo format into a provided buffer.</summary>
1387
+
<summary>When overridden in a derived class, attempts to export the current key in the PKCS#8 PrivateKeyInfo format into a provided buffer.</summary>
1367
1388
<returns><seelangword="true"/> if <paramrefname="destination"/> is big enough to receive the output; otherwise, <seelangword="false"/>.</returns>
1368
-
<remarks>To be added.</remarks>
1389
+
<remarks>
1390
+
<formattype="text/markdown"><![CDATA[
1391
+
1392
+
## Remarks
1393
+
Because algorithm-specific support is required to produce this data format, <xref:System.Security.Cryptography.AsymmetricAlgorithm.TryExportPkcs8PrivateKey%2A> throws a <xref:System.NotImplementedException> by default.
1394
+
1395
+
]]></format>
1396
+
</remarks>
1369
1397
<exceptioncref="T:System.Security.Cryptography.CryptographicException">The key could not be exported.</exception>
1398
+
<exceptioncref="T:System.NotImplementedException">A derived type has not overriden this member.</exception>
@@ -1398,10 +1427,18 @@ This member is an explicit interface member implementation. It can be used only
1398
1427
<Docs>
1399
1428
<paramname="destination">The byte span to receive the X.509 SubjectPublicKeyInfo data.</param>
1400
1429
<paramname="bytesWritten">When this method returns, contains a value that indicates the number of bytes written to <paramrefname="destination"/>. This parameter is treated as uninitialized.</param>
1401
-
<summary>Attempts to export the current key in the X.509 SubjectPublicKeyInfo format into a provided buffer.</summary>
1430
+
<summary>When overridden in a derived class, attempts to export the current key in the X.509 SubjectPublicKeyInfo format into a provided buffer.</summary>
1402
1431
<returns><seelangword="true"/> if <paramrefname="destination"/> is big enough to receive the output; otherwise, <seelangword="false"/>.</returns>
1403
-
<remarks>To be added.</remarks>
1432
+
<remarks>
1433
+
<formattype="text/markdown"><![CDATA[
1434
+
1435
+
## Remarks
1436
+
Because algorithm-specific support is required to produce this data format, <xref:System.Security.Cryptography.AsymmetricAlgorithm.TryExportSubjectPublicKeyInfo%2A> throws a <xref:System.NotImplementedException> by default.
1437
+
1438
+
]]></format>
1439
+
</remarks>
1404
1440
<exceptioncref="T:System.Security.Cryptography.CryptographicException">The key could not be exported.</exception>
1441
+
<exceptioncref="T:System.NotImplementedException">A derived type has not overriden this member.</exception>
0 commit comments