Example #1
0
def test_128(case_key, case_data, cases_siphash24_128):
    for i, case in enumerate(cases_siphash24_128):
        output = siphash.siphash_128(case_key, case_data[:i], 2, 4)
        hex_output = binascii.hexlify(output).decode("utf8")

        assert case == hex_output
def test_255255_128(key_size, case_key, case_data):
    siphash.siphash_128(case_key[:key_size], case_data, 255, 255)
Example #3
0
def test_255255_128(case_key, case_data):
    siphash.siphash_128(case_key, case_data, 255, 255)
def test_00_128(key_size, case_key, case_data):
    siphash.siphash_128(case_key[:key_size], case_data, 0, 0)
Example #5
0
def test_00_128(case_key, case_data):
    siphash.siphash_128(case_key, case_data, 0, 0)