Mono Class Library: System.Security.Cryptography.RSACryptoServiceProvider Overview | Members

System.Security.Cryptography.RSACryptoServiceProvider.ExportParameters Method

Export the instance key into a System.Security.Cryptography.RSAParameters structure.

public override RSAParameters ExportParameters (bool includePrivateParameters)

Parameters

includePrivateParameters
True to include private parameters; otherwise, false.

Returns

a RSAParameters structure contaning each parameters of the key.

Remarks

You are responsable to zeroize the private key (System.Security.Cryptography.RSAParameters parameters RSAParameters.D, RSAParameters.P, RSAParameters.Q, RSAParameters.DP, RSAParameters.DQ and RSAParameters.InverseQ) if you export it from the instance.

Requirements

Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0