/// <summary>
        /// Imports the specified RSAParameters
        /// </summary>
        public override void ImportParameters(RSAParameters parameters)
        {
            // Free the current key handle
            if (_safeKeyHandle != null && !_safeKeyHandle.IsClosed)
            {
                _safeKeyHandle.Dispose();
                _safeKeyHandle = null;
            }
            _safeKeyHandle = SafeKeyHandle.InvalidHandle;

            byte[] keyBlob = parameters.ToKeyBlob(CapiHelper.CALG_RSA_KEYX);
            ImportCspBlob(keyBlob);
            return;
        }
 /// <summary>
 /// Imports the specified RSAParameters
 /// </summary>
 public override void ImportParameters(RSAParameters parameters)
 {
     byte[] keyBlob = parameters.ToKeyBlob();
     ImportCspBlob(keyBlob);
 }
 /// <summary>
 /// Imports the specified RSAParameters
 /// </summary>
 public override void ImportParameters(RSAParameters parameters)
 {
     byte[] keyBlob = parameters.ToKeyBlob(CapiHelper.CALG_RSA_KEYX);
     ImportCspBlob(keyBlob);
 }
        /// <summary>
        /// Imports the specified RSAParameters
        /// </summary>
        public override void ImportParameters(RSAParameters parameters)
        {
            // Free the current key handle
            if (_safeKeyHandle != null && !_safeKeyHandle.IsClosed)
            {
                _safeKeyHandle.Dispose();
                _safeKeyHandle = null;
            }
            _safeKeyHandle = SafeKeyHandle.InvalidHandle;

            byte[] keyBlob = parameters.ToKeyBlob(CapiHelper.CALG_RSA_KEYX);
            ImportCspBlob(keyBlob);
            return;
        }
 /// <summary>
 /// Imports the specified RSAParameters
 /// </summary>
 public override void ImportParameters(RSAParameters parameters)
 {
     byte[] keyBlob = parameters.ToKeyBlob(CapiHelper.CALG_RSA_KEYX);
     ImportCspBlob(keyBlob);
 }
Exemple #6
0
 public byte[] ExportCspBlob(bool includePrivateParameters)
 {
     RSAParameters parameters = ExportParameters(includePrivateParameters);
     return parameters.ToKeyBlob();
 }