Exemplo n.º 1
0
        private void Dispose(bool Disposing)
        {
            if (!_isDisposed && Disposing)
            {
                try
                {
                    if (_dgtEngine != null)
                    {
                        _dgtEngine.Dispose();
                        _dgtEngine = null;
                    }
                    if (_asyCipher != null)
                    {
                        _asyCipher.Dispose();
                        _asyCipher = null;
                    }
                }
                catch { }

                _isDisposed = true;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize this class
 /// </summary>
 ///
 /// <param name="CipherParams">The RLWE cipher used to encrypt the hash</param>
 /// <param name="Digest">The type of digest engine used</param>
 public RLWESign(RLWEParameters CipherParams, Digests Digest = Digests.SHA512)
 {
     _asyCipher = new RLWEEncrypt(CipherParams);
     _dgtEngine = GetDigest(Digest);
 }