AsymmetricKeyAlgorithm.CreateFrom Method
Namespace: Rebex.Security.Cryptography
Assembly: Rebex.Common.dll (version 7.0.9083)
CreateFrom(AsymmetricAlgorithm, Boolean)
Creates an instance of AsymmetricKeyAlgorithm from the specified asymmetric algorithm object.
Declaration
public static AsymmetricKeyAlgorithm CreateFrom(AsymmetricAlgorithm algorithm, bool ownsAlgorithm)
Parameters
Type | Name | Description |
---|---|---|
AsymmetricAlgorithm | algorithm | Asymmetric algorithm object. |
Boolean | ownsAlgorithm | True if the created object owns the asymmetric algorithm object. |
Returns
Type | Description |
---|---|
AsymmetricKeyAlgorithm | An instance of AsymmetricKeyAlgorithm. |