示例#1
0
        public void Digest(ReadOnlySpan <byte> data, Span <byte> result, params object[] extra)
        {
            Contract.Requires <ArgumentException>(result.Length >= 32, $"{nameof(result)} must be greater or equal 32 bytes");

            fixed(byte *input = data)
            {
                fixed(byte *output = result)
                {
                    LibMultihash.balloon(input, output, (uint)data.Length);
                }
            }
        }