Commit dc903b99 authored by Niels Möller's avatar Niels Möller
Browse files

Don't use m4 to generate test programs. Added C files to CVS,

deleted m4 files.

Rev: src/testsuite/aes-test.c:1.1
Rev: src/testsuite/arcfour-test.c:1.1
Rev: src/testsuite/blowfish-test.c:1.1
Rev: src/testsuite/cast128-test.c:1.1
Rev: src/testsuite/des-test.c:1.1
Rev: src/testsuite/serpent-test.c:1.1
Rev: src/testsuite/twofish-test.c:1.1
parent a931a5a2
#include "testutils.h"
int
test_main(void)
{
/* From draft NIST spec on AES modes. */
test_cipher("aes-256 cbc 1", &crypto_aes256_cbc_algorithm,
H("603deb1015ca71be2b73aef0857d7781"
"1f352c073b6108d72d9810a30914dff4"),
H("6bc1bee22e409f96e93d7e117393172a"
"ae2d8a571e03ac9c9eb76fac45af8e51"
"30c81c46a35ce411e5fbc1191a0a52ef"
"f69f2445df4f9b17ad2b417be66c3710"),
H("f58c4c04d6e5f1ba779eabfb5f7bfbd6"
"9cfc4e967edb808d679f777bc6702c7d"
"39f23369a9d9bacfa530e26304231461"
"b2eb05e2c39be9fcda6c19078c6a9d1b"),
H("000102030405060708090a0b0c0d0e0f"));
SUCCESS();
}
#include "testutils.h"
int
test_main(void)
{
test_cipher("Arcfour", &crypto_arcfour_algorithm,
H("01234567 89ABCDEF 00000000 00000000"),
H("01234567 89ABCDEF"),
H("69723659 1B5242B1"),
NULL);
SUCCESS();
}
#include "testutils.h"
int
test_main(void)
{
test_cipher("Blowfish-128 CBC", &crypto_blowfish_cbc_algorithm,
H("0123456789ABCDEF FEDCBA9876543210"),
H("0000000000000000 1111111111111111"),
H("f0fb0320a19f306d ff5880191e616c10"),
H("0011223344556677"));
SUCCESS();
}
#include "testutils.h"
int
test_main(void)
{
test_cipher("CAST-128 CBC", &crypto_cast128_cbc_algorithm,
H("0123456789ABCDEF FEDCBA9876543210"),
H("0000000000000000 1111111111111111"),
H("9a1bf354bca596ad f7b2a2ce5f09a8b2"),
H("0011223344556677"));
SUCCESS();
}
#include "testutils.h"
int
test_main(void)
{
test_cipher("DES3 CBC", &crypto_des3_cbc_algorithm,
H("0123456789ABCDEF 1313131313131313 3232323232323232"),
H("0011223344556677 8899AABBCCDDEEFF"),
H("C4DB96109B6186B2 5F9AA359160909D9"),
H("0001020304050607"));
SUCCESS();
}
#include "testutils.h"
int
test_main(void)
{
test_cipher("Serpent-256 CBC", &crypto_serpent256_cbc_algorithm,
H("0123456789ABCDEF FEDCBA9876543210"
"0011223344556677 8899AABBCCDDEEFF"),
H("0000000000000000 0000000000000000"
"1111111111111111 1111111111111111"),
H("687a151886b6dc16 8d2b667c3b8d5226"
"e63a6c8b3009859c 8ee559565befb77e"),
H("0011223344556677 8899AABBCCDDEEFF"));
SUCCESS();
}
#include "testutils.h"
int
test_main(void)
{
test_cipher("Twofish-256 CBC", &crypto_twofish256_cbc_algorithm,
H("0123456789ABCDEF FEDCBA9876543210"
"0011223344556677 8899AABBCCDDEEFF"),
H("0000000000000000 0000000000000000"
"1111111111111111 1111111111111111"),
H("7c9cde6d86b1d9f2 9fceb6830c451281"
"329f72e3eb36d505 6e8e08c191644dfa"),
H("0011223344556677 8899AABBCCDDEEFF"))
SUCCESS();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment