Package net.i2p.util
Class SipHash
- java.lang.Object
- 
- net.i2p.util.SipHash
 
- 
 public abstract class SipHash extends Object Wrapper around SipHashInline with constant per-JVM keys- Since:
- 0.9.5
 
- 
- 
Constructor SummaryConstructors Constructor Description SipHash()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static longdigest(byte[] data)static longdigest(byte[] data, int off, int len)static inthashCode(byte[] data)Secure replacement for DataHelper.hashCode(byte[]); caching recommended
 
- 
- 
- 
Method Detail- 
digestpublic static long digest(byte[] data) - Parameters:
- data- non-null
 
 - 
digestpublic static long digest(byte[] data, int off, int len)- Parameters:
- data- non-null
 
 - 
hashCodepublic static int hashCode(byte[] data) Secure replacement for DataHelper.hashCode(byte[]); caching recommended- Parameters:
- data- may be null
 
 
- 
 
-