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)); }
public bool Equals(I2PIdentHash x, I2PIdentHash y) { return(BufUtils.Equals(x.Hash, y.Hash)); }