CFLAGS= $(INCLUDES) $(CFLAG)
GENERAL=Makefile
-TEST=evp_test.c
+TEST=evp_test.c aeadtest.c
TESTDATA=evptests.txt
APPS=
CT, /* hex encoded ciphertext (not including the authenticator,
which is next. */
TAG, /* hex encoded authenticator. */
- NUM_TYPES,
+ NUM_TYPES
};
static const char NAMES[6][NUM_TYPES] =
unsigned int i, type_len = 0;
unsigned char *buf = NULL;
- unsigned int *buf_len;
+ unsigned int *buf_len = NULL;
if (!fgets(line, sizeof(line), f))
break;
AFLAGS= $(ASFLAGS)
GENERAL=Makefile
-TEST=
+TEST=poly1305test
APPS=
LIB=$(TOP)/libcrypto.a
* ====================================================================
*/
+#ifdef PEDANTIC
+# include "poly1305.c"
+#else
+
/* This implementation of poly1305 is by Andrew Moon
* (https://github.com/floodyberry/poly1305-donna) and released as public
* domain. It implements SIMD vectorization based on the algorithm described in
}
#endif /* !OPENSSL_NO_POLY1305 */
+
+#endif /* !PEDANTIC */
@echo "Test Poly1305"
../util/shlib_wrap.sh ./$(POLY1305TEST)
-test_aead: $(AEADTEST)$(EXE_EXT)
+test_aead: $(AEADTEST)$(EXE_EXT) chacha20_poly1305_tests.txt \
+ aes_128_gcm_tests.txt aes_256_gcm_tests.txt
@echo "Test ChaCha20+Poly1305"
../util/shlib_wrap.sh ./$(AEADTEST) chacha20-poly1305 \
chacha20_poly1305_tests.txt
my %tests;
my %alltests;
my %fakes;
+ my $info = '';
while (my $line = <M>)
{
chomp $line;
$targets{$t} = '';
$alltests{$t} = undef;
}
+ $info .= '# targets = ' . join(' ', sort keys %targets) . "\n";
+ }
+
+ if ($line =~ /^(?<t>\S+):(?<d>.*)$/ && !exists $targets{$1})
+ {
+ $info .= "# no match: $line\n";
}
if (($line =~ /^(?<t>\S+):(?<d>.*)$/ && exists $targets{$1})
|| $line =~ /^(?<t>test_(ss|gen) .*):(?<d>.*)/)
{
+ $info .= "# match: $line\n";
my $t = $+{t};
my $d = $+{d};
# If there are multiple targets stupid FreeBSD make runs the
'testssl',
'testsslproxy',
'serverinfo.pem',
+ 'chacha20_poly1305_tests.txt',
+ 'aes_128_gcm_tests.txt',
+ 'aes_256_gcm_tests.txt',
);
my $copies = copy_scripts(1, 'test', @copies);
$copies .= copy_scripts(0, 'test', ('smcont.txt'));
}
}
- return "$scripts\n$copies\n$tests\n$all\n\n$each";
+ return "$info\n$scripts\n$copies\n$tests\n$all\n\n$each";
}
1;