Asymmetric |
public static AsymmetricCipherKeyPair AsAsymmetricCipherKeyPair( this AsymmetricAlgorithm key )
| Exception | Condition |
|---|---|
| ArgumentNullException | key is . |
| ArgumentException | key is a public key. |
| NotSupportedException | key is an unsupported asymmetric algorithm. |
Converts an AsymmetricAlgorithm into a BouncyCastle AsymmetricCipherKeyPair.
| Currently, only RSA and DSA keys are supported. |