Org.BouncyCastle.Crypto.Digests.Gost3411Digest.DoFinal C# (CSharp) Method

DoFinal() public method

public DoFinal ( byte output, int outOff ) : int
output byte
outOff int
return int
		public int DoFinal(
			byte[]  output,
			int     outOff)
		{
			finish();

			H.CopyTo(output, outOff);

			Reset();

			return DIGEST_LENGTH;
		}

Usage Example

コード例 #1
0
ファイル: Form1.cs プロジェクト: thunderquack/BlindGostDemo
 public BigInteger GetDigest(byte[] message)
 {
     Gost3411Digest gost3411Digest = new Gost3411Digest();
     gost3411Digest.BlockUpdate(message, 0, message.Length);
     byte[] hashmessage = new byte[gost3411Digest.GetDigestSize()];
     gost3411Digest.DoFinal(hashmessage, 0);
     return new BigInteger(hashmessage);
 }
All Usage Examples Of Org.BouncyCastle.Crypto.Digests.Gost3411Digest::DoFinal