YAARX: Yet Another ARX Toolkit  0.1
 All Data Structures Files Functions Variables Macros Pages
salsa-tests.cc File Reference

Tests for salsa.cc . More...

#include "common.hh"
#include "xdp-add-diff-set.hh"
#include "salsa.hh"

Functions

void test_vector_salsa20 ()
 
void test_salsa ()
 
void test_xdp_add_dset_salsa20_all ()
 
void test_xdp_add_dset_salsa20 ()
 
void test_salsa_bias ()
 
void test_salsa_gen_word_deps ()
 
void test_xdp_add_dset_salsa_arx ()
 
int main ()
 

Variables

uint8_t g_test_vector_0 [2][64]
 
uint8_t g_test_vector_1 [2][64]
 

Detailed Description

Function Documentation

int main ( )

Main function of the tests.

Variable Documentation

uint8_t g_test_vector_0[2][64]
Initial value:
= {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

Test vector for Salsa20. Ref. http://cr.yp.to/snuffle/spec.pdf

uint8_t g_test_vector_1[2][64]
Initial value:
= {
{211,159, 13,115, 76, 55, 82,183, 3,117,222, 37,191,187,234,136,
49,237,179, 48, 1,106,178,219,175,199,166, 48, 86, 16,179,207,
31,240, 32, 63, 15, 83, 93,161,116,147, 48,113,238, 55,204, 36,
79,201,235, 79, 3, 81,156, 47,203, 26,244,243, 88,118,104, 54},
{109, 42, 178, 168, 156, 240, 248, 238, 168, 196, 190, 203, 26, 110, 170, 154,
29, 29, 150, 26, 150, 30, 235, 249, 190, 163, 251, 48, 69, 144, 51, 57,
118, 40, 152, 157, 180, 57, 27, 94, 107, 42, 236, 35, 27, 111, 114, 114,
219, 236, 232, 135, 111, 155, 110, 18, 24, 232, 95, 158, 179, 19, 48, 202}
}

Test vector for Salsa20. Ref. http://cr.yp.to/snuffle/spec.pdf