summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-15More KNF.Joel Sing
2014-05-15Use C99 initialisers for the AEAD struct.Joel Sing
2014-05-15KNF.Joel Sing
2014-05-15Add a ChaCha20-Poly1305 AEAD EVP implementation to libcrypto, from AdamJoel Sing
Langley's Chromium OpenSSL patches. ok miod@
2014-05-15KNF.Joel Sing
2014-05-15KNF.Joel Sing
2014-05-15KNF.Joel Sing
2014-05-15Add an AEAD EVP interface to libcrypto, along with AES-GCM AEADJoel Sing
implementations. This largely pulls in Adam Langley's AEAD patches from Chromium's OpenSSL. ok miod@
2014-05-15Stop being a dummy... presumably these are left overs from pedantic modeJoel Sing
that were not wrapped with #if PEDANTIC. ok miod@
2014-05-14Add poly1305 to libcrypto utilising Andrew Moon's public domainJoel Sing
implementation. ok miod@
2014-05-12Remove AES_bi_ige_encrypt() from libcrypto. This routine is supposed to useMiod Vallat
two keys and four IVs to do much magic, is specified as such with test vectors, but the implementation actually always uses the first key, and the test vectors were computed with it, so they are wrong. Fixing the code to match the intended specification would break interoperability with existing code (assuming such code would exist), so it is better to remove this interface, which is obviously too complex for mere mortals if even its author can not implement it correctly. Riding on the libcrypto major bump.
2014-05-12Bring back ASN1_seq_pack(), ASN1_seq_unpack(), ASN1_pack_string() andMiod Vallat
ASN1_unpack_string() from the NO_ASN1_OLD purge; turns out that some Ruby extensions still use them, unfortunately, so we need to give them some more time to catch up on ``recent'' interfaces. Riding on the libcrypto major bump.
2014-05-12Move the `pqueue' part of libcrypto, which is a glorified sorted linked listMiod Vallat
of 64-bit data, and only used by DTLS, to libssl where it belongs. Remove pqueue_print() which is a debugging interface and serves no useful purpose, except for the regress test, which grows its own pqueue_print() routine. Bump libcrypto major and libssl minor. WARNING: do not update your tree right now, more changes are coming, which will ride the libcrypto major bump.
2014-05-11More KNF.Joel Sing
2014-05-11KNF.Joel Sing
2014-05-10__bounded => __attribute__((__bounded__Damien Miller
2014-05-09Typo in C99 field initializer introduced in r1.3;Miod Vallat
reported by Steven Chamberlain
2014-05-09Replace Apache v2 license with ISC license.Matthew Dempsky
Thanks to Google for agreeing to offer the code under more agreeable licensing terms!
2014-05-08Replace hand-crafted STRICT_ALIGNMENT with system provided __STRICT_ALIGNMENT.Miod Vallat
Forgotten during yesterday's STRICT_ALIGNMENT cleanup commit.
2014-05-08More KNF.Joel Sing
2014-05-08KNF.Joel Sing
2014-05-08Remove KSSL debug code.Joel Sing
"fire bomb" tedu@
2014-05-08KNF.Joel Sing
2014-05-08Nuke OPENSSL_FIPS - having #ifdefs inside a #ifndef for the same thingJoel Sing
is amusing. ok deraadt@
2014-05-08KNF.Joel Sing
2014-05-08knfectomie.Joel Sing
2014-05-08Emergency knfectomie requested by tedu@.Joel Sing
2014-05-08kill some more VMS ifdefsGiovanni Bechis
ok miod@
2014-05-07Get __STRICT_ALIGNMENT from <machine/endian.h> and decide upon it, ratherMiod Vallat
than defining it for not (i386 and amd64 (and sometimes s390)) only. Compile-time tests remain compile-time tests, and runtime-test remain runtime-test instead of being converted to compile-time tests, per matthew@'s explicit demand (rationale: this makes sure the compiler checks your code even if you won't run it). No functional change except on s390 (which we don't run on) and vax (which we run on, but noone cares about) ok matthew@
2014-05-07don't free memory unless we allocated it.Ted Unangst
reported to openssl by David Ramos (rt 3338) stealing commit from logan, who's run away. ok miod.
2014-05-07with the first bug it uncovered fixed, clear all bignums again.Ted Unangst
i've never worked on codebase so resistant to efforts to improve it.
2014-05-07in BN_clear_free, don't cleanse the data if the static data flag is set.Ted Unangst
much debugging work done by otto. ok miod otto. side note: BN_FLG_STATIC_DATA doesn't actually mean the data is static. it's also used to indicate the data may be secretly shared behind your back as a sort of poor man's refcounting, but without the refcounting.
2014-05-07KNF.Joel Sing
2014-05-07KNF.Joel Sing
2014-05-07revert, thanks sthenTed Unangst
2014-05-07add additional includes from eng_cryptodev.cJonathan Gray
makes this compile with OPENSSL_NO_DEPRECATED defined. ok deraadt@
2014-05-07miod forgot about fcrypt_b.c being needed, before he went off to get hisTheo de Raadt
beauty sleep. He's probably having a nightmare about this right now.... ok tedu
2014-05-06Assorted cleanups:Miod Vallat
- replace hardcoded sizes with sizeof() - pqueue_find() apparently used to need to keep track of the previous node when iterating, which causes its logic to be complicated. However, nowadays it only needs to iterate, so replace with a straightforward, much readable logic. - remove #if 0'ed code From ``sin'' from 2f30 dot org on tech@, thanks!
2014-05-06Remove broken-by-design testMiod Vallat
2014-05-06Make sure PKCS7_get_octet_string() return values are checked for NULL.Miod Vallat
Reported by David Ramos (and simultaneously to OpenSSL as PR#3339). ok beck@ logan@
2014-05-06Sort CFLAGS, SRC and SSLASM stanzas by the directories they apply to, to makeMiod Vallat
these files similar in layout to the other md Makefile.inc; no functional change.
2014-05-06knf approximationTed Unangst
2014-05-05inspired by a cloudflare diff, cleanse old memory when expanding a bignum.Ted Unangst
however, instead of trying to audit all the places where a secret bignum is used, apply the big hammer and clear all bignums when freed. ok deraadt miod
2014-05-05Sort and group includes.Joel Sing
2014-05-05Repair BIO_socket_nbio operation.Joel Sing
ok miod@
2014-05-05Remove SRP and Kerberos support from libssl. These are complex protocolsTed Unangst
all on their own and we can't effectively maintain them without using them, which we don't. If the need arises, the code can be resurrected.
2014-05-05Enable assembler code for DES. Assembler code for BN is commented out as itMiod Vallat
uses the `umul' and `udiv' instructions directly, which are not supported on v7 processors.
2014-05-04Improve line wrapping for lines exceeding 80 chars.Jim Razmus II
ok jmc@
2014-05-04Remove trailing whitespace.Jim Razmus II
fine jmc@
2014-05-04i give up. reuse problem is unfixable. dlg says puppet crashes.Ted Unangst