au.com.forward.sipHash
Class SipHashTests

java.lang.Object
  extended by au.com.forward.sipHash.SipHashTests

public class SipHashTests
extends java.lang.Object

SipHashTests -- Tests for SipHash_2_4.java

(c)2013 Forward Computing and Control Pty. Ltd. (www.forward.com.au)
This code may be freely used for both private and commercial use.
Provide this copyright is maintained.


Constructor Summary
SipHashTests()
           
 
Method Summary
 void negativeTest()
          Test the hash of a single -ve byte, (byte)0x81
The result is in LittleEndian format
 void pdfTest()
          Hash the testKey with the testMsg as described in https://131002.net/siphash/siphash.pdf
The result is in BigEndian format
 void referenceTests()
          Test the standard message test contained in the C reference implementation https://131002.net/siphash/siphash24.c
The results are in LittleEndian format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SipHashTests

public SipHashTests()
Method Detail

pdfTest

public void pdfTest()
Hash the testKey with the testMsg as described in https://131002.net/siphash/siphash.pdf
The result is in BigEndian format


negativeTest

public void negativeTest()
Test the hash of a single -ve byte, (byte)0x81
The result is in LittleEndian format


referenceTests

public void referenceTests()
Test the standard message test contained in the C reference implementation https://131002.net/siphash/siphash24.c
The results are in LittleEndian format