summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-05-02More use of 64-bit registers which needs to be disabled under OpenBSD.miod4-0/+8
2014-05-02Correctly enable assembler Montgomery routine.miod2-2/+4
2014-05-02Reenable assembler code for SHA384 and SHA512 now that it no longer miscomputesmiod2-6/+6
things. Worth doing as it's twice faster than the C code.
2014-05-02The assembly sha512 code detects at runtime if it is running on a 64-bitmiod2-0/+12
processor (PA2.0) and, if so, switches to 64-bit code. However, when running under a 32-bit OpenBSD/hppa kernel, there is no guarantee that the upper part of the registers will be preserved accross context switches (or even userland->kernel boundaries), which causes this code to fail. Wrap the generated code within #ifndef __OpenBSD__ in that case, to avoid using the 64-bit code completely. (OpenBSD/hppa64, once stable, will not be affected by this)
2014-05-02Simple sha{224,256,384,512} test using the FIPS 180-2 test vectors availablemiod2-2/+45
from http://csrc.nist.gov/groups/ST/toolkit/examples.html
2014-05-02Disable assembler version of SHA512 for now, it produces wrong results.miod2-6/+6
2014-05-02Add ChaCha as a cipher.jsing1-0/+3
ok beck@ miod@
2014-05-02remove crazy #undefs; ok jsingderaadt10-13/+0
2014-05-02Nuke OPENSSL_NO_SOCK since any half sane operating system has sockets.jsing9-35/+0
ok beck@
2014-05-02Sort and group includes. We also do not need to include openssl/evp.h morejsing1-45/+47
than once. ok beck@
2014-05-02Sort function prototypes and group/sort entries within the functions array.jsing1-237/+125
ok beck@
2014-05-01Enable use of assembly code for AES, BN (Montgomery), SHA1, SHA256 and SHA512.miod2-0/+100
RC4 assembler code is not used, as it runs about 35% slower than the C code.
2014-05-01Do not output SOM-specific directives.miod14-0/+80
2014-05-01Remove unreferenced OPENSSL_instrument_bus and OPENSSL_instrument_bus2 routines.miod4-210/+0
2014-05-01Make the implicit `l' in `impicit' explicit.miod2-2/+2
2014-05-01Enable use of the assembly code for BN (Montgomery) and SHA1.miod2-0/+80
2014-05-01Fix include filename to get register name aliases under BSDmiod6-36/+6
2014-05-01Pass -Werror in the !BN_LLONG !BN_UMULT_LOHI !BN_UMULT_HIGH case.miod2-8/+8
2014-05-01Enable use of the assembly code for AES, BN, SHA1, SHA256 and SHA512.miod2-0/+72
2014-05-01dead meatmiod4-5056/+0
2014-05-01tweak previous; ok sthenjmc1-3/+3
2014-05-01+ e_chacha.c, and bump minormiod3-3/+4
2014-05-01Update with recently added objects.jsing2-0/+36
ok miod@
2014-05-01KNF.jsing1-324/+296
2014-05-01Nuke unused evptests.txt - the real one is over in regress.jsing2-668/+0
ok miod@
2014-05-01Provide an EVP implementation for ChaCha.jsing14-0/+233
ok miod@
2014-05-01Add ChaCha to libcrypto, based on djb's public domain implementation.jsing10-2/+904
ok deraadt@
2014-05-01Add support for the french ANSSI FRP256v1 elliptic curve.miod4-2/+70
While not to be considered a good choice of elliptic curve (refer to http://safecurves.cr.yp.to/ for more details), it is nevertheless deemed a good decision to allow developers with requirements to use such a curve, to be able to do this via a crypto library allowing for much better choices to be made, without having to change (much of) their code to get better crypto. ok beck@ deraadt@
2014-05-01Add Brainpool elliptic curves. From OpenSSL RT#2239 via ${DAYJOB}.miod4-2/+922
Be sure to rerun `make includes' after updating. ok tedu@ beck@ deraadt@
2014-05-01Remove fips_md_init() macro indirection for digest algorithms, used by themiod18-34/+22
OpenSSL FIPS module to prevent forbidden digests to be allowed. No functional change but readability. ok deraadt@
2014-05-01nibbles aren't enough random, use bytes. does a better job of pickingtedu1-14/+14
a free chunk at random and may allow to increase delayed chunk array. ok otto
2014-04-30first cut at documenting the change to malloc doing a partial 'junk' bysthen1-2/+7
default and the new 'j' option to disable this; ok jmc@
2014-04-30Avoid a potential null pointer dereference by checking that we actuallyjsing2-0/+4
managed to allocate a fragment, before trying to memcpy data into it. ok miod@
2014-04-30First pass at removing win64 support from the assembly generating Perljsing16-2132/+2
scripts. We certainly do not need an identical copy of the win64 exception handler in each script (surely one copy would be sufficient). ok miod@
2014-04-30i suck at math. b - 8 = 3, not 4. detected by Antoine Pitrou. thanks.tedu2-2/+2
2014-04-29Constrain bytes read/written to positive values.beck2-0/+20
ok miod@ tedu@
2014-04-28Implement AI_ADDRCONFIGsperreault1-3/+14
This is a getaddrinfo() flag that is defined thusly in RFC 3493: If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be returned only if an IPv4 address is configured on the local system, and IPv6 addresses shall be returned only if an IPv6 address is configured on the local system. The loopback address is not considered for this case as valid as a configured address. For example, when using the DNS, a query for AAAA records should occur only if the node has at least one IPv6 address configured (other than IPv6 loopback) and a query for A records should occur only if the node has at least one IPv4 address configured (other than the IPv4 loopback). The flag is set by default when hints is NULL. ok Eric Faurot, Jason McIntyre
2014-04-28Remove WIN32, WIN64 and MINGW32 tentacles.miod28-130/+14
Also check for _LP64 rather than __arch64__ (the former being more reliable than __LP64__ or __arch64__) to tell 64-bit int platforms apart from 32-bit int platforms. Loosely based upon a diff from Martijn van Duren on tech@
2014-04-28use the correct algorithm mask. reported by satish lvr viatedu2-2/+2
http://marc.info/?l=openssl-dev&m=139779977532459&w=2 ok miod
2014-04-28SSL_OP_ALL is supposed to be all options and workarounds that are safe,tedu2-8/+12
but disabling attack mitigations is not safe. 0.9.6d contained a workaround for an attack against CBC modes. 0.9.6e disabled it by default because "some" implementations couldn't handle empty fragments. 12 years have passed. Does anybody still care? Let's find out. ok miod
2014-04-28Remove ending cplusplus guard followed by starting cplusplus guard; frommiod2-14/+0
Gebruiker Schoot.
2014-04-28Leftover includes and local declarations; from Gebruiker Schootmiod2-10/+0
2014-04-27typo in commentmiod6-6/+6
2014-04-27Remove orphaned l2n6 and n2l6 macros.miod2-28/+0
2014-04-27Use C99 initializers for the various FOO_METHOD structs. More readable, andmiod114-2246/+1672
avoid unreadable/unmaintainable constructs like that: const EVP_PKEY_ASN1_METHOD cmac_asn1_meth = { EVP_PKEY_CMAC, EVP_PKEY_CMAC, 0, "CMAC", "OpenSSL CMAC method", 0,0,0,0, 0,0,0, cmac_size, 0, 0,0,0,0,0,0,0, cmac_key_free, 0, 0,0 }; ok matthew@ deraadt@
2014-04-27static const char * = "" -> static const char[] = "", to produce shorter code.miod6-6/+6
No functional change.
2014-04-27Unifdef -U OPENSSL_BUILD_SHLIBCRYPTO, since all it causes under Unix is tomiod12-70/+2
redefine OPENSSL_EXTERN from `extern' to `extern'.
2014-04-27Put explicit (void) in function declarations and shuffle keywords in somemiod32-36/+36
declaration to pass -Wextra, should we want to add it to CFLAGS. No binary change.
2014-04-27We do not need a separate file for two compatibility wrapper functions.jsing5-140/+38
ok miod@
2014-04-27Fix leak last commit introduced. Spotted by Sebastian Kapfer.beck2-0/+2