Esempio n. 1
0
        public bool Verify(byte[] buf, int offset, int length)
        {
            if (Mode != BuildMode.Signed)
            {
                throw new InvalidOperationException("No signature available");
            }

            var hash = GetHash(buf, offset, length);

            return(BufUtils.Equals(Hash, hash));
        }
Esempio n. 2
0
 public bool Equals(I2PIdentHash x, I2PIdentHash y)
 {
     return(BufUtils.Equals(x.Hash, y.Hash));
 }