类 SipHash

  • 直接已知子类:
    SipHash13

    public class SipHash
    extends java.lang.Object
    SipHash 2-4 algorithm
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      protected int c  
      protected int d  
      protected static int DEFAULT_SEED_SIZE  
      protected byte[] hashSeed  
    • 构造器概要

      构造器 
      限定符 构造器 说明
        SipHash()  
        SipHash​(byte[] seed)  
      protected SipHash​(byte[] seed, int c, int d)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      long hash​(java.lang.String key)  
      long hash​(java.lang.String key, byte[] hashSeed)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • hashSeed

        protected byte[] hashSeed
      • c

        protected int c
      • d

        protected int d
      • DEFAULT_SEED_SIZE

        protected static final int DEFAULT_SEED_SIZE
        另请参阅:
        常量字段值
    • 构造器详细资料

      • SipHash

        public SipHash()
      • SipHash

        public SipHash​(byte[] seed)
      • SipHash

        protected SipHash​(byte[] seed,
                          int c,
                          int d)
    • 方法详细资料

      • hash

        public long hash​(java.lang.String key)
      • hash

        public long hash​(java.lang.String key,
                         byte[] hashSeed)