summaryrefslogtreecommitdiffstats
path: root/crypto/evp/evp_test.c
AgeCommit message (Collapse)Author
2015-03-20Fix memory leak.Dr. Stephen Henson
Reviewed-by: Emilia Käsper <emilia@openssl.org>
2015-03-04add RIPEMD160 whirlpool testsDr. Stephen Henson
Add RIPEMD160 and whirlpool test data. Add Count keyword to repeatedly call EVP_DigestUpate. Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-27reformat evp_test.cDr. Stephen Henson
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-27Add OCB support and test vectors for evp_test.Dr. Stephen Henson
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-27Skip unsupported digests in evp_testDr. Stephen Henson
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-27Skip unsupported ciphers in evp_test.Dr. Stephen Henson
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-27Add algorithm skip support.Dr. Stephen Henson
Add support for skipping disabled algorithms: if an attempt to load a public or private key results in an unknown algorithm error then any test using that key is automatically skipped. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-02-22evp/evp_test.c: avoid crashes when referencing uninitialized pointers.Andy Polyakov
For some reason failure surfaced on ARM platforms. Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-13remove unused method declarationDr. Stephen Henson
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-13Add leak detection, fix leaks.Dr. Stephen Henson
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-13EVP_PKEY support for evp_testDr. Stephen Henson
Add two new keywords "PublicKey" and "PrivateKey". These will load a key in PEM format from the lines immediately following the keyword and assign it a name according to the value. These will be used later for public and private key testing operations. Add tests for Sign, Verify, VerifyRecover and Decrypt. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-13MAC support for evp_testDr. Stephen Henson
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-13Return error code is any tests fail.Dr. Stephen Henson
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-10New evp_test updates.Dr. Stephen Henson
Print usage message. Print expected and got values if mismatch. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-02-10Initial version of new evp_test program.Dr. Stephen Henson
Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-02-02Dead code cleanup: #if 0 dropped from testsRich Salz
Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-01-29clang on Linux x86_64 complains about unreachable code.Richard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-01-28Rationalise testing of AEAD modesMatt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-28Harmonise use of EVP_CTRL_GET_TAG/EVP_CTRL_SET_TAG/EVP_CTRL_SET_IVLENMatt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-28Replace EVP_CTRL_OCB_SET_TAGLEN with EVP_CTRL_SET_TAG for consistency withMatt Caswell
CCM Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Added OPENSSL_NO_OCB guardsMatt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Add tests for OCB modeMatt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-07-01Test copying of contexts in evp_test.Dr. Stephen Henson
Test EVP_CIPHER_CTX_copy in evp_test. This will catch any problems with copying in underlying ciphers.
2013-07-17EVP support for wrapping algorithms.Dr. Stephen Henson
Add support for key wrap algorithms via EVP interface. Generalise AES wrap algorithm and add to modes, making existing AES wrap algorithm a special case. Move test code to evptests.txt
2013-04-06Fix warnings.Ben Laurie
2013-03-06GCM and CCM test supportDr. Stephen Henson
Add code to support GCM an CCM modes in evp_test. On encrypt this will compare the expected ciphertext and tag. On decrypt it will compare the expected plaintext: tag comparison is done internally. Add a simple CCM test case and convert all tests from crypto/modes/gcm128.c
2011-09-01PR: 2588Dr. Stephen Henson
Submitted by: Thomas Jarosch <thomas.jarosch@intra2net.com> Reviewed by: steve Close file pointer.
2009-03-03Use the right length (reported by Quanhong Wang).Ben Laurie
2008-11-02Fix warnings: printf format mismatches on 64 bit platforms.Dr. Stephen Henson
Change assert to OPENSSL_assert(). Fix e_padlock prototype.
2008-08-06Remove the dual-callback scheme for numeric and pointer thread IDs,Geoff Thorpe
deprecate the original (numeric-only) scheme, and replace with the CRYPTO_THREADID object. This hides the platform-specifics and should reduce the possibility for programming errors (where failing to explicitly check both thread ID forms could create subtle, platform-specific bugs). Thanks to Bodo, for invaluable review and feedback.
2008-07-03Revert my earlier CRYPTO_THREADID commit, I will commit a reworkedGeoff Thorpe
version some time soon.
2008-03-28There was a need to support thread ID types that couldn't be reliably castGeoff Thorpe
to 'unsigned long' (ie. odd platforms/compilers), so a pointer-typed version was added but it required portable code to check *both* modes to determine equality. This commit maintains the availability of both thread ID types, but deprecates the type-specific accessor APIs that invoke the callbacks - instead a single type-independent API is used. This simplifies software that calls into this interface, and should also make it less error-prone - as forgetting to call and compare *both* thread ID accessors could have led to hard-to-debug/infrequent bugs (that might only affect certain platforms or thread implementations). As the CHANGES note says, there were corresponding deprecations and replacements in the thread-related functions for BN_BLINDING and ERR too.
2007-04-23Add SEED encryption algorithm.Bodo Möller
PR: 1503 Submitted by: KISA Reviewed by: Bodo Moeller
2006-06-09Camellia cipher, contributed by NTTBodo Möller
Submitted by: Masashi Fujita Reviewed by: Bodo Moeller
2005-05-31changes from 0.9.8Nils Larsch
2004-07-12I think it could be a good thing to know what went wrong with the tests...Richard Levitte
2003-01-30Add the possibility to build without the ENGINE framework.Richard Levitte
PR: 287
2002-12-06Some compilers are quite picky about non-void functions that don't returnRichard Levitte
anything.
2002-12-01EXIT() needs to be in a function that returns int.Richard Levitte
2002-11-28Have all tests use EXIT() to exit rather than exit(), since the latter doesn'tRichard Levitte
always give the expected result on some platforms.
2002-06-03use sstrsep() to get the proper type to aoti().Richard Levitte
Remove unneeded cast in ustrsep(). PR: 69
2002-05-31Make it possible to give vectors only for decryption or encryption.Richard Levitte
2002-05-15Zero cipher_data in EVP_CIPHER_CTX_cleanupDr. Stephen Henson
Add cleanup calls to evp_test.c Allow reuse of cipher contexts by removing automatic cleanup in EVP_*Final().
2002-02-20gcc figures that the format specifier %2x means unsigned int, so let'sRichard Levitte
make n unsigned.
2002-02-14don't call OPENSSL_config(), this does not make any sense during "make test"Bodo Möller
2002-01-18Constification, add config to /dev/crypto.Ben Laurie
2001-11-06Win32 fixes.Dr. Stephen Henson
2001-10-17Modify EVP cipher behaviour in a similar wayDr. Stephen Henson
to digests to retain compatibility.
2001-10-16Retain compatibility of EVP_DigestInit() and EVP_DigestFinal()Dr. Stephen Henson
with existing code. Modify library to use digest *_ex() functions.