Mono.Math.BigInteger.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
		public void Clear () 
		{
			for (int i=0; i < length; i++)
				data [i] = 0x00;
		}

Usage Example

Beispiel #1
0
		public override byte[] EncryptValue (byte[] rgb) 
		{
			if (m_disposed)
				throw new ObjectDisposedException ("public key");

			if (!keypairGenerated)
				GenerateKeyPair ();

			BigInteger input = new BigInteger (rgb);
			BigInteger output = input.ModPow (e, n);
			byte[] result = output.GetBytes ();
			// zeroize value
			input.Clear ();	
			output.Clear ();
			return result;
		}
All Usage Examples Of Mono.Math.BigInteger::Clear