Changeset fb323ce
- Timestamp:
- Sep 22, 2016 5:06:53 PM (4 years ago)
- Branches:
- master
- Children:
- 32e1c96
- Parents:
- cc179b4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
core/java/src/net/i2p/util/SipHashInline.java
rcc179b4 rfb323ce 34 34 * I2P mods: add off/len version 35 35 * 36 * @since 0.9.5 36 * @since 0.9.5, public since 0.9.27 37 37 */ 38 abstract class SipHashInline { 39 38 public final class SipHashInline { 39 40 /** @since 0.9.27 */ 41 private SipHashInline() {}; 42 43 /** 44 * @param k0 the first 8 bytes of the key 45 * @param k1 the last 8 bytes of the key 46 */ 40 47 public static long hash24(long k0, long k1, byte[] data) { 41 48 return hash24(k0, k1, data, 0, data.length); 42 49 } 43 50 51 /** 52 * @param k0 the first 8 bytes of the key 53 * @param k1 the last 8 bytes of the key 54 */ 44 55 public static long hash24(long k0, long k1, byte[] data, int off, int len) { 45 56 long v0 = 0x736f6d6570736575L ^ k0;
Note: See TracChangeset
for help on using the changeset viewer.