Skip to content

Commit ffc22fb

Browse files
authored
Pristine import of testu01 3 of 3
Pristine import from umontreal site, 3 of 3.
1 parent f205539 commit ffc22fb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+60487
-0
lines changed

testu01/Makefile.am

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
include $(top_srcdir)/include/Makefile.def
2+
3+
include_HEADERS = TestU01.h
4+
5+
lib_LTLIBRARIES = libtestu01.la
6+
libtestu01_la_SOURCES = $(TESTU01SOURCES)
7+
libtestu01_la_LIBADD = $(top_builddir)/probdist/libprobdist.la $(top_builddir)/mylib/libmylib.la
8+
libtestu01_la_LDFLAGS = -no-undefined -version-info 0:1:0
9+
10+
EXTRA_DIST = guidetestu01.tex intro.tex title.tex scatfig.tex bintro.tex copyright.tex fintro.tex sintro.tex uintro.tex guidetestu01.bbl
11+
12+
doc_DATA = guideshorttestu01.pdf guidelongtestu01.pdf

testu01/Makefile.in

Lines changed: 624 additions & 0 deletions
Large diffs are not rendered by default.

testu01/TestU01.h

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#ifndef TESTU01_H
2+
#define TESTU01_H
3+
4+
#include "bbattery.h"
5+
#include "fcho.h"
6+
#include "fcong.h"
7+
#include "ffam.h"
8+
#include "ffsr.h"
9+
#include "fknuth.h"
10+
#include "fmarsa.h"
11+
#include "fmultin.h"
12+
#include "fnpair.h"
13+
#include "fres.h"
14+
#include "fspectral.h"
15+
#include "fstring.h"
16+
#include "ftab.h"
17+
#include "fvaria.h"
18+
#include "fwalk.h"
19+
#include "scatter.h"
20+
#include "scomp.h"
21+
#include "sentrop.h"
22+
#include "sknuth.h"
23+
#include "smarsa.h"
24+
#include "smultin.h"
25+
#include "snpair.h"
26+
#include "sres.h"
27+
#include "sspacings.h"
28+
#include "sspectral.h"
29+
#include "sstring.h"
30+
#include "svaria.h"
31+
#include "swalk.h"
32+
#include "swrite.h"
33+
#include "uautomata.h"
34+
#include "ubrent.h"
35+
#include "ucarry.h"
36+
#include "ucrypto.h"
37+
#include "rijndael-alg-fst.h"
38+
#include "tu01_sha1.h"
39+
#include "ucubic.h"
40+
#include "udeng.h"
41+
#include "ufile.h"
42+
#include "ugfsr.h"
43+
#include "ugranger.h"
44+
#include "uinv.h"
45+
#include "uknuth.h"
46+
#include "ulcg.h"
47+
#include "ulec.h"
48+
#include "umarsa.h"
49+
#include "umrg.h"
50+
#include "unif01.h"
51+
#include "unumrec.h"
52+
#include "uquad.h"
53+
#include "usoft.h"
54+
#include "utaus.h"
55+
#include "utezuka.h"
56+
#include "utouzin.h"
57+
#include "uvaria.h"
58+
#include "uweyl.h"
59+
#include "uwu.h"
60+
#include "uxorshift.h"
61+
62+
#endif

testu01/rijndael-alg-fst.c

Lines changed: 1407 additions & 0 deletions
Large diffs are not rendered by default.

testu01/rijndael-alg-fst.tex

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
\code
2+
/* Remarks for TestU01:
3+
* The only changes I have made in the authors' code below is to rename the
4+
* types u8, u32. I have also removed 3 unused defined constants.
5+
* (R. Simard for TestU01)
6+
*
7+
*===========================================================================*/
8+
9+
/**
10+
* rijndael-alg-fst.h
11+
*
12+
* @version 3.0 (December 2000)
13+
*
14+
* Optimised ANSI C code for the Rijndael cipher (now AES)
15+
*
16+
* @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be>
17+
* @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be>
18+
* @author Paulo Barreto <paulo.barreto@terra.com.br>
19+
*
20+
* This code is hereby placed in the public domain.
21+
*
22+
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS
23+
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25+
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
26+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
29+
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
31+
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
32+
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33+
*/
34+
#ifndef __RIJNDAEL_ALG_FST_H
35+
#define __RIJNDAEL_ALG_FST_H
36+
#include "gdef.h"
37+
38+
39+
int rijndaelKeySetupEnc(uint32_t rk[/*4*(Nr + 1)*/], const uint8_t cipherKey[], int keyBits);
40+
int rijndaelKeySetupDec(uint32_t rk[/*4*(Nr + 1)*/], const uint8_t cipherKey[], int keyBits);
41+
void rijndaelEncrypt(const uint32_t rk[/*4*(Nr + 1)*/], int Nr, const uint8_t pt[16], uint8_t ct[16]);
42+
void rijndaelDecrypt(const uint32_t rk[/*4*(Nr + 1)*/], int Nr, const uint8_t ct[16], uint8_t pt[16]);
43+
44+
#ifdef INTERMEDIATE_VALUE_KAT
45+
void rijndaelEncryptRound(const uint32_t rk[/*4*(Nr + 1)*/], int Nr, uint8_t block[16], int rounds);
46+
void rijndaelDecryptRound(const uint32_t rk[/*4*(Nr + 1)*/], int Nr, uint8_t block[16], int rounds);
47+
#endif /* INTERMEDIATE_VALUE_KAT */
48+
49+
#endif /* __RIJNDAEL_ALG_FST_H */
50+
\endcode

0 commit comments

Comments
 (0)