TLSharp.Core.MTProto.Crypto.MD5Digest.DoFinal C# (CSharp) Method

DoFinal() public method

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

            UnpackWord(H1, output, outOff);
            UnpackWord(H2, output, outOff + 4);
            UnpackWord(H3, output, outOff + 8);
            UnpackWord(H4, output, outOff + 12);

            Reset();

            return DigestLength;
        }

Usage Example

Exemplo n.º 1
0
        public static byte[] GetMd5Bytes(byte[] data) {
            MD5Digest digest = new MD5Digest();
            digest.BlockUpdate(data, 0, data.Length);
            byte[] hash = new byte[16];
            digest.DoFinal(hash, 0);

            return hash;
        }
All Usage Examples Of TLSharp.Core.MTProto.Crypto.MD5Digest::DoFinal