static BufLen CreateKnCBuf(I2PKeysAndCert kns) { var ar = kns.ToByteArray(); var buf = new BufLen(I2PHashSHA256.GetHash(ar, 0, ar.Length)); return(buf); }
public I2PIdentHash(I2PKeysAndCert kns) { var ar = kns.ToByteArray(); Hash = new BufLen(I2PHashSHA256.GetHash(ar, 0, ar.Length)); CachedHash = Hash.GetHashCode(); }