HashFinal() public method

public HashFinal ( ) : byte[]
return byte[]
Beispiel #1
0
 public override byte[] Finish()
 {
     byte[] array = core.HashFinal();
     if (outputSizeInBytes != array.Length)
     {
         byte[] array2 = new byte[outputSizeInBytes];
         Array.Copy(array, array2, array2.Length);
         return(array2);
     }
     return(array);
 }
Beispiel #2
0
        public override byte[] Finish()
        {
            var fullResult = core.HashFinal();

            if (outputSizeInBytes != fullResult.Length)
            {
                var result = new byte[outputSizeInBytes];
                Array.Copy(fullResult, result, result.Length);
                return(result);
            }
            else
            {
                return(fullResult);
            }
        }