|
981 | 981 | <param name="passwordBytes">The bytes to use as a password when decrypting the key material.</param>
|
982 | 982 | <summary>Imports an ML-DSA key from an encrypted RFC 7468 PEM-encoded string.</summary>
|
983 | 983 | <returns>To be added.</returns>
|
984 |
| - <remarks><para>Unsupported or malformed PEM-encoded objects will be ignored. If multiple supported PEM labels are found, an exception is thrown to prevent importing a key when the key is ambiguous.</para><para>This method supports the <c>ENCRYPTED PRIVATE KEY</c> PEM label.</para></remarks> |
| 984 | + <remarks><para>Unsupported or malformed PEM-encoded objects will be ignored. If multiple supported PEM labels are found, an exception is thrown to prevent importing a key when the key is ambiguous.</para><para>This method supports the <c>ENCRYPTED PRIVATE KEY</c> PEM label.</para></remarks> |
985 | 985 | <exception cref="T:System.ArgumentException"><para> <paramref name="source" /> does not contain a PEM-encoded key with a recognized label.</para><para>-or-</para><para> <paramref name="source" /> contains multiple PEM-encoded keys with a recognized label.</para></exception>
|
986 | 986 | <exception cref="T:System.Security.Cryptography.CryptographicException"><para>The password is incorrect.</para><para>-or-</para><para>The base-64 decoded contents of the PEM text from <paramref name="source" /> do not represent an ASN.1-BER-encoded PKCS#8 EncryptedPrivateKeyInfo structure.</para><para>-or-</para><para>The base-64 decoded contents of the PEM text from <paramref name="source" /> indicate the key is for an algorithm other than the algorithm represented by this instance.</para><para>-or-</para><para>The base-64 decoded contents of the PEM text from <paramref name="source" /> represent the key in a format that is not supported.</para><para>-or-</para><para>An error occurred while importing the key.</para></exception>
|
987 | 987 | <exception cref="T:System.PlatformNotSupportedException">
|
|
1023 | 1023 | <param name="password">The password to use for decrypting the key material.</param>
|
1024 | 1024 | <summary>Imports an ML-DSA key from an encrypted RFC 7468 PEM-encoded string.</summary>
|
1025 | 1025 | <returns>To be added.</returns>
|
1026 |
| - <remarks><para>When the base-64 decoded contents of <paramref name="source" /> indicate an algorithm that uses PBKDF1 (Password-Based Key Derivation Function 1) or PBKDF2 (Password-Based Key Derivation Function 2), the password is converted to bytes via the UTF-8 encoding.</para><para>Unsupported or malformed PEM-encoded objects will be ignored. If multiple supported PEM labels are found, an exception is thrown to prevent importing a key when the key is ambiguous.</para><para>This method supports the <c>ENCRYPTED PRIVATE KEY</c> PEM label.</para></remarks> |
| 1026 | + <remarks><para>When the base-64 decoded contents of <paramref name="source" /> indicate an algorithm that uses PBKDF1 (Password-Based Key Derivation Function 1) or PBKDF2 (Password-Based Key Derivation Function 2), the password is converted to bytes via the UTF-8 encoding.</para><para>Unsupported or malformed PEM-encoded objects will be ignored. If multiple supported PEM labels are found, an exception is thrown to prevent importing a key when the key is ambiguous.</para><para>This method supports the <c>ENCRYPTED PRIVATE KEY</c> PEM label.</para></remarks> |
1027 | 1027 | <exception cref="T:System.ArgumentException"><para> <paramref name="source" /> does not contain a PEM-encoded key with a recognized label.</para><para>-or-</para><para> <paramref name="source" /> contains multiple PEM-encoded keys with a recognized label.</para></exception>
|
1028 | 1028 | <exception cref="T:System.Security.Cryptography.CryptographicException"><para>The password is incorrect.</para><para>-or-</para><para>The base-64 decoded contents of the PEM text from <paramref name="source" /> do not represent an ASN.1-BER-encoded PKCS#8 EncryptedPrivateKeyInfo structure.</para><para>-or-</para><para>The base-64 decoded contents of the PEM text from <paramref name="source" /> indicate the key is for an algorithm other than the algorithm represented by this instance.</para><para>-or-</para><para>The base-64 decoded contents of the PEM text from <paramref name="source" /> represent the key in a format that is not supported.</para><para>-or-</para><para>An error occurred while importing the key.</para></exception>
|
1029 | 1029 | <exception cref="T:System.PlatformNotSupportedException">
|
|
0 commit comments