Commit Graph

40 Commits

Author SHA1 Message Date
pgoyette
0746ac4120 Sprinkle in some UNCONST() 2014-01-19 13:40:59 +00:00
pgoyette
5e565c166a Include more of the test cases from RFC 1321.
XXX cases 3, 6, and 9 are currently disabled because we don't seem
to handle plain-text in other than 8-byte chunks.
2014-01-18 20:40:27 +00:00
pgoyette
f2915fe1a6 Remove some debugging code. 2014-01-18 20:10:34 +00:00
pgoyette
cd62f2eb7f Free each crypto(4) session when we're done with it. (A new session
is created for each test case.)
2014-01-18 19:44:41 +00:00
pgoyette
435332144e Fix verification to use correct buffer.
Use test cases defined in RFC 1321
2014-01-18 15:55:32 +00:00
pgoyette
101f54fefd Add the test cases for sha1_hmac 2014-01-18 15:15:16 +00:00
joerg
3732193e19 Needs some unconst. 2014-01-18 02:31:14 +00:00
pgoyette
b685948516 Additional tests for SHA1_HMAC (with test cases from RFC2202) 2014-01-17 22:33:02 +00:00
pgoyette
10805d8a0e Add additional test cases from RFC2202 2014-01-17 22:31:25 +00:00
pgoyette
140e400a0b Use RFC 3713 vector, add comment to identify the source 2014-01-17 19:39:51 +00:00
pgoyette
80fe9fc110 Reenable h_null (NULL_CBC) test. It works if we correctly pass a NULL iv. 2014-01-17 19:35:33 +00:00
pgoyette
1b0aa2a2ae Clean up the helper programs. Remove the code to print the results, and
make sure that all helpers actually check the results against the correct
values.
2014-01-17 14:16:08 +00:00
pgoyette
5119ac7130 Disable the arc4 and null_cbc tests for now. The swcrypto driver does
not (yet) support them.
2014-01-17 14:14:54 +00:00
joerg
7fe431c6a2 Use __arraycount and size_t as the format strings are wrong anyway. 2014-01-16 23:56:04 +00:00
pgoyette
075b927c1d Since sizeof() is unsigned, use an unsigned int for the loop index.
Fixes latest build break.
2014-01-16 22:06:45 +00:00
pgoyette
5b57b2e95d Include all of the examples from RFC3566 2014-01-16 18:09:55 +00:00
martin
89ed65c0d4 Remove bogus TESTSDIR 2014-01-15 10:19:55 +00:00
pgoyette
fda7dd4887 Descend into new opencrypto test suite 2014-01-14 18:06:27 +00:00
pgoyette
9bee98a7d5 Add some trivial tests for the in-kernel opencrypto framework, and link
them into the build.  (Thanks to Matthias Drochner for the test programs!)

XXX The arc4 and null tests currently fail - under investigation.
2014-01-14 17:51:39 +00:00
spz
67d12f6407 more MKCRYPTO_IDEA and MKCRYPTO_MDC2 removal (resp, adjustment to IDEA and
MBC2 now always being included)
MKCRYPTO_RC5 now builds shared libs, add the missing files to sets
2012-07-14 16:04:04 +00:00
christos
e2d5622544 MKCRYPTO_{IDEA,MDC2} is no more 2012-07-14 04:06:17 +00:00
mrg
f3383e2258 fix a build issue with MKCRYPTO=no. 2011-10-22 21:13:25 +00:00
spz
8efcedf571 give the idea, rc5 and mdc2 checks a chance of working if they are defined
to be compiled
2011-07-05 10:03:09 +00:00
christos
e4bf07bdfe Fix patented algo compilation 2011-06-12 16:16:26 +00:00
christos
2a18cea9f4 Turn warns on for all tests and fix all the bugs. 2011-06-11 18:03:17 +00:00
spz
56d7efa655 add tests for evb and srp 2011-06-09 05:25:17 +00:00
joerg
a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg
d154c9348e Don't force debug build. 2010-12-18 04:27:17 +00:00
pooka
ae2e5e944c increase timeouts of long-running tests 2010-11-08 19:06:12 +00:00
jmmv
decf2b5e0f Adjusts tests after import of atf-0.12:
- The use.fs property is gone.
- Mark the tests/fs/t_create:attrs test as broken when using the default
  unprivileged-user:_atf setting.  This probably deserves a fix somehow
  but I'm not sure at this point.
2010-11-07 17:51:16 +00:00
christos
0f10aa9dce add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)
2010-11-03 16:10:19 +00:00
jmmv
9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
mrg
6479f6e5b4 ldap is configured to depend upon MKCRYPTO no, so force MKLAP=no if
MKCRYPTO=no.
don't build pkg_install, libcrypto tests or rump_smbfs if MKCRYPTO=no.
mark librumpcrypto, rump_smb, pkg_*

fix set lists as appropriate.
2010-07-11 06:16:54 +00:00
jmmv
b9866b6c00 Do not use awk to generate the test program. Instead, just expand the
code.

While doing this, split the big monolithic test program into more granular
but cohesive test programs.
2010-07-10 16:43:25 +00:00
jmmv
6b84fb92ac atf-0.9 introduces an use.fs test-case property to allow tests to write to
their work directory.  The purpose is to be able to know which tests intend
to touch the file system and to allow a minor optimization in atf-run.

Define use.fs=true for all those tests requiring it.  (This highlights that
some tests currently require modifying the file system but conceptually
they shouldn't be... which leaves room for further improvements/cleanups
later :-)
2010-06-04 08:39:40 +00:00
christos
81908d00ad fix for new openssl 2009-07-20 20:41:52 +00:00
cube
fb825dde7b Use the correct dir to find source files. NetBSD finally builds again.
Please have the decency to at least do a test build when you import such a
huge amount of code.
2009-02-14 05:07:54 +00:00
jmmv
3baa49a10f Convert the threads libcrypto test to ATF and enable it. Drop the old one
in regress.
2009-02-13 22:01:48 +00:00
jmmv
0601c2c71b Remove threads from the list of subdirs. Commited by mistake. 2009-02-13 21:33:27 +00:00
jmmv
fd2c7cbdc1 Convert libcrypto tests to ATF. Original work done by Lukasz Strzygowski
in the GSoC 2008 atfify project.  Reorganization of files and build system
reworked by me.
2009-02-13 20:58:13 +00:00