Org.BouncyCastle.Crypto.Digests.TigerDigest.DoFinal C# (CSharp) Méthode

DoFinal() public méthode

public DoFinal ( byte output, int outOff ) : int
output byte
outOff int
Résultat int
        public int DoFinal(
            byte[]  output,
            int     outOff)
        {
            Finish();

            UnpackWord(a, output, outOff);
            UnpackWord(b, output, outOff + 8);
            UnpackWord(c, output, outOff + 16);

            Reset();

            return DigestLength;
        }

Usage Example

Exemple #1
0
        static DataDecoder()
        {
            byte[] bKey = System.Text.Encoding.ASCII.GetBytes("Implict error #56");
            var tiger = new TigerDigest();
            tiger.BlockUpdate(bKey, 0, bKey.Length);

            var bb = new byte[24];
            tiger.DoFinal(bb, 0);

            Key = new KeyParameter(bb);
        }
All Usage Examples Of Org.BouncyCastle.Crypto.Digests.TigerDigest::DoFinal