summaryrefslogtreecommitdiffstats
path: root/crypto/evp
AgeCommit message (Collapse)Author
2015-03-25RAND_bytes updatesMatt Caswell
Ensure RAND_bytes return value is checked correctly, and that we no longer use RAND_pseudo_bytes. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-03-24free NULL cleanupRich Salz
Start ensuring all OpenSSL "free" routines allow NULL, and remove any if check before calling them. This gets DH_free, DSA_free, RSA_free Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-24make ASN1_OBJECT opaqueDr. Stephen Henson
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-24make dependDr. Stephen Henson
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-24Move some EVP internals to evp_int.hDr. Stephen Henson
Move EVP internals to evp_int.h, remove -Ievp hack from crypto/Makefile Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-24Move some ASN.1 internals to asn1_int.hDr. Stephen Henson
Move ASN.1 internals used across multiple directories into new internal header file asn1_int.h remove crypto/Makefile hack which allowed other directories to include "asn1_locl.h" Reviewed-by: Matt Caswell <matt@openssl.org>
2015-03-20Add AES unwrap test with invalid key.Dr. Stephen Henson
This tests the unwrap algorithm with an invalid key. The result should be rejected without returning any plaintext. Reviewed-by: Emilia Käsper <emilia@openssl.org>
2015-03-20Fix memory leak.Dr. Stephen Henson
Reviewed-by: Emilia Käsper <emilia@openssl.org>
2015-03-12Fix EVP_DigestInit_ex with NULL digestMatt Caswell
Calling EVP_DigestInit_ex which has already had the digest set up for it should be possible. You are supposed to be able to pass NULL for the type. However currently this seg faults. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-03-11Merge OPENSSL_NO_EC{DH,DSA} into OPENSSL_NO_ECRich Salz
Suggested by John Foley <foleyj@cisco.com>. Reviewed-by: Matt Caswell <matt@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-27add MD4 test dataDr. 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-26Fix evp_extra_test.c with no-ecMatt Caswell
When OpenSSL is configured with no-ec, then the new evp_extra_test fails to pass. This change adds appropriate OPENSSL_NO_EC guards around the code. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-02-25Import evp_test.c from BoringSSL. Unfortunately we already have a fileMatt Caswell
called evp_test.c, so I have called this one evp_extra_test.c Reviewed-by: Emilia Käsper <emilia@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-14More RSA tests.Dr. Stephen Henson
Reviewed-by: Andy Polyakov <appro@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-13Add EVP_PKEY test data.Dr. Stephen Henson
Add some EVP_PKEY test data for sign and verify tests including failure cases. 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-13Add CMAC test data.Dr. Stephen Henson
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-13Add HMAC test data.Dr. Stephen Henson
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-13New macro to set mac key.Dr. 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-12evp/evp.h: add missing camellia-ctr declarations.Andy Polyakov
Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-11Add Camellia CTR mode.Andy Polyakov
Reviewed-by: Rich Salz <rsalz@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-10Add new test file.Dr. Stephen Henson
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-09Support for alternative KDFs.Dr. Stephen Henson
Don't hard code NID_id_pbkdf2 in PBES2: look it up in PBE table. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-02-09evp/e_aes.c: fix pair of SPARC T4-specific problems:Andy Polyakov
- SIGSEGV/ILL in CCM (RT#3688); - SIGBUS in OCB; Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-02-06ui_compat cleanup; makefiles and vmsRich Salz
Remove ui_compat.h from Makefile dependencies And from two VMS build/install scripts. Reviewed-by: Matt Caswell <matt@openssl.org>
2015-02-06Remove OPENSSL_NO_HMACDr. Stephen Henson
Disabling HMAC doesn't work. If it did it would end up disabling a lot of OpenSSL functionality (it is required for all versions of TLS for example). Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-02Remove old DES APIRich Salz
Includes VMS fixes from Richard. Includes Kurt's destest fixes (RT 1290). Closes tickets 1290 and 1291 Reviewed-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-02Dead code: if 0 removal from crypto/evp and an unused file.Rich Salz
Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Richard Levitte <levitte@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-28Finish removal of DSSRich Salz
Reviewed-by: Matt Caswell <matt@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-27"#if 0" removal: header filesRich Salz
Remove all "#if 0" blocks from header files. Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-27OPENSSL_NO_xxx cleanup: SHARich Salz
Remove support for SHA0 and DSS0 (they were broken), and remove the ability to attempt to build without SHA (it didn't work). For simplicity, remove the option of not building various SHA algorithms; you could argue that SHA_224/256/384/512 should be kept, since they're like crypto algorithms, but I decided to go the other way. So these options are gone: GENUINE_DSA OPENSSL_NO_SHA0 OPENSSL_NO_SHA OPENSSL_NO_SHA1 OPENSSL_NO_SHA224 OPENSSL_NO_SHA256 OPENSSL_NO_SHA384 OPENSSL_NO_SHA512 Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-01-27OPENSSL_NO_xxx cleanup: many removalsRich Salz
The following compile options (#ifdef's) are removed: OPENSSL_NO_BIO OPENSSL_NO_BUFFER OPENSSL_NO_CHAIN_VERIFY OPENSSL_NO_EVP OPENSSL_NO_FIPS_ERR OPENSSL_NO_HASH_COMP OPENSSL_NO_LHASH OPENSSL_NO_OBJECT OPENSSL_NO_SPEED OPENSSL_NO_STACK OPENSSL_NO_X509 OPENSSL_NO_X509_VERIFY This diff is big because of updating the indents on preprocessor lines. Reviewed-by: Richard Levitte <levitte@openssl.org>