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