summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bntest.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-08remove FIPS module code from crypto/evpDr. Stephen Henson8-47/+23
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08remove FIPS module code from crypto/bnDr. Stephen Henson1-8/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08remove FIPS module code from crypto/ecdhDr. Stephen Henson1-8/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08remove FIPS module code from crypto/ecdsaDr. Stephen Henson3-129/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove FIPS module code from crypto/dhDr. Stephen Henson3-49/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08remove FIPS module code from crypto/dsaDr. Stephen Henson4-198/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08remove FIPS module code from crypto/rsaDr. Stephen Henson4-236/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove FIPS error library from openssl.ec mkerr.plDr. Stephen Henson2-3/+1
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08make dependDr. Stephen Henson1-113/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove fips.h reference.Dr. Stephen Henson1-1/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove fips_constseg references.Dr. Stephen Henson18-114/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08remove another FIPSCANISTER referenceDr. Stephen Henson1-10/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08remove unnecessary OPENSSL_FIPS referenceDr. Stephen Henson1-3/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove OPENSSL_FIPSCANISTER code.Dr. Stephen Henson7-58/+0
OPENSSL_FIPSCANISTER is only set if the fips module is being built (as opposed to being used). Since the fips module wont be built in master this is redundant. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove FIPSCANISTERINTERNAL reference.Dr. Stephen Henson1-1/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove fips utility build rules from test/MakefileDr. Stephen Henson1-104/+2
The fips test utilities are only build if an FIPS module is being built from source. As this isn't done in master these are redundant. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove fipscanister build functionality from makefiles.Dr. Stephen Henson56-82/+62
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove fipscanister from Configure, delete fips directoryDr. Stephen Henson87-37786/+4
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Remove some unnecessary OPENSSL_FIPS referencesDr. Stephen Henson9-33/+0
FIPS_mode() exists in all versions of OpenSSL but always returns 0 if OpenSSL is not FIPS capable. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Add CHANGES entry for OCBMatt Caswell1-0/+5
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Added OPENSSL_NO_OCB guardsMatt Caswell7-6/+35
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Add documentation for OCB modeMatt Caswell1-13/+31
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Add tests for OCB modeMatt Caswell2-11/+45
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Add EVP support for OCB modeMatt Caswell8-3/+463
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-08Add support for OCB mode as per RFC7253Matt Caswell4-2/+656
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-05Clarify the return values for SSL_get_shared_curve.Emilia Kasper2-14/+22
Reviewed-by: Matt Caswell <matt@openssl.org>
2014-12-05Add extra checks for odd-length EC curve lists.Emilia Kasper3-74/+111
Odd-length lists should be rejected everywhere upon parsing. Nevertheless, be extra careful and add guards against off-by-one reads. Also, drive-by replace inexplicable double-negation with an explicit comparison. Reviewed-by: Matt Caswell <matt@openssl.org>
2014-12-05Reject elliptic curve lists of odd lengths.Emilia Kasper1-1/+3
The Supported Elliptic Curves extension contains a vector of NamedCurves of 2 bytes each, so the total length must be even. Accepting odd-length lists was observed to lead to a non-exploitable one-byte out-of-bounds read in the latest development branches (1.0.2 and master). Released versions of OpenSSL are not affected. Thanks to Felix Groebert of the Google Security Team for reporting this issue. Reviewed-by: Matt Caswell <matt@openssl.org>
2014-12-05Fix broken buildEmilia Kasper4-3/+4
Add includes missing from commit 33eab3f6af51c6d7fe68ee4960930df4f1616bd5 Reviewed-by: Geoff Thorpe <geoff@openssl.org>
2014-12-04Replace GOST_R_MALLOC_FAILURE and GOST_R_NO_MEMORY with ERR_R_MALLOC_FAILUREKurt Roeckx6-13/+9
Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04capi_get_provname: Check return valuesKurt Roeckx1-6/+12
Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04ssl_create_cipher_list: check whether push onto cipherstack succeedsJonas Maebe1-1/+6
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04ssl_cert_dup: Fix memory leakJonas Maebe1-22/+2
Always use goto err on failure and call ssl_cert_free() on the error path so all fields and "ret" itself are freed Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04dtls1_new: free s on error pathKurt Roeckx1-4/+9
Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04dtls1_heartbeat: check for NULL after allocating s->cert->ctypesJonas Maebe1-0/+5
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04dtls1_process_heartbeat: check for NULL after allocating bufferJonas Maebe1-0/+2
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04capi_get_key: check for NULL after allocating keyJonas Maebe1-0/+2
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04capi_cert_get_fname: check for NULL after allocating wfnameJonas Maebe1-0/+2
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04capi_get_provname: free name on error if it was malloc'edJonas Maebe1-0/+2
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04pkey_gost_mac_keygen: check for NULL after allocating keydataJonas Maebe1-0/+2
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04pkey_gost_ctrl: check for NULL after allocating pctx->shared_ukmJonas Maebe1-0/+5
Signed-off-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-04Update changes to indicate that SSLv2 support has been removedKurt Roeckx1-0/+4
Reviewed-by: Matt Caswell <matt@openssl.org>
2014-12-04Remove incorrect code inadvertently introduced through commit 59669b6ab.Matt Caswell1-4/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-04Remove SSLv2 supportKurt Roeckx69-5569/+229
The only support for SSLv2 left is receiving a SSLv2 compatible client hello. Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-03New location on website for binaries.Rich Salz1-1/+1
Reviewed-by: Bodo Moeller <bodo@openssl.org>
2014-12-03Remove "#if 0" codeMatt Caswell1-22/+0
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-03Only use the fallback mtu after 2 unsuccessful retransmissions if it is lessMatt Caswell1-1/+5
than the mtu we are already using Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-03Updates to s_client and s_server to remove the constant 28 (for IPv4 headerMatt Caswell2-4/+30
and UDP header) when setting an mtu. This constant is not always correct (e.g. if using IPv6). Use the new DTLS_CTRL functions instead. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-03If we really get a situation where the underlying mtu is less than the minimumMatt Caswell1-1/+4
we will support then dtls1_do_write can go into an infinite loop. This commit fixes that. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-03Fix dtls_query_mtu so that it will always either complete with an mtu that isMatt Caswell1-37/+24
at least the minimum or it will fail. There were some instances in dtls1_query_mtu where the final mtu can end up being less than the minimum, i.e. where the user has set an mtu manually. This shouldn't be allowed. Also remove dtls1_guess_mtu that, despite having logic for guessing an mtu, was actually only ever used to work out the minimum mtu to use. Reviewed-by: Tim Hudson <tjh@openssl.org>