miod
1a4a7a3239
Move the `pqueue' part of libcrypto, which is a glorified sorted linked list
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.
10 years ago
tedu
5d44aecec4
remove md5crypt.
while changing things, add a crypt_checkpass wrapper that handles most of
the edge cases. (not quite ready for production, though.)
ok deraadt
10 years ago
espie
a7f9b5b34c
move the ohash functions into libutil by popular demand.
It's not a standard interface, so it doesn't belong in libc.
I hate duplicating the code in client programs, so do beck@, kettenis@,
schwarze@, millert@, miod@... and they agree with libutil.
10 years ago
tedu
508b771a99
change to having four freelists per size, to reduce another source of
deterministic behavior. four selected because it's more than three, less
than five. i.e., no particular reason.
10 years ago
otto
d7088c5a04
fix MALLOC_STATS code that was broken in rev 1.159, not compiled in by default
10 years ago
deraadt
a14ce349c7
move reallocarray() to a seperate file so that -portable applications
can avoid reinventing the wheel
ok guenther schwarze
10 years ago
halex
3a717658e6
comment style fix
ok crickets@
10 years ago
deraadt
7fa36fd938
miod forgot about fcrypt_b.c being needed, before he went off to get his
beauty sleep. He's probably having a nightmare about this right now....
ok tedu
10 years ago
miod
30ccf3f156
Sort CFLAGS, SRC and SSLASM stanzas by the directories they apply to, to make
these files similar in layout to the other md Makefile.inc; no functional
change.
10 years ago
tedu
a894866510
missing NULL checks to see if init is needed. found hard way by deraadt.
10 years ago
tedu
7100c7debd
fix stupid commit
10 years ago
tedu
54db51a88a
use explicit_bzero
10 years ago
tedu
54fc405fe7
clear a stack buffer with explicit_bzero
10 years ago
tedu
df773f2da3
move chacha context and buffer out of bss and allow mmap to place them
wherever it decides it would like them. first step. ok deraadt dlg djm
10 years ago
miod
8f084c73f2
Enable assembler code for DES. Assembler code for BN is commented out as it
uses the `umul' and `udiv' instructions directly, which are not supported
on v7 processors.
10 years ago
deraadt
11e026e9b2
delete useless test code
10 years ago
miod
9e87f680ad
Enable the assembler code for BN, which was lost quite some time ago.
10 years ago
miod
974c31ca77
Remove the !SSLASM conditional. Either there is an arch-specific Makefile.inc,
or the !SSLASM list of files applies. This allows for an arch-specific
Makefile.inc to not specify SSLASM.
10 years ago
miod
638fa5fb96
Enable assembler code for AES, DES, GCM, SHA1, SHA256 and SHA512.
The sparcv9 BN code is not enabled, as it expects to run on a 32-bit
userland and will need to be fixed for 64-bit userland first.
10 years ago
miod
8cbb01b51c
Enable assembler code for AES, BN (Montgomery), GCM128, SHA1, SHA256 and SHA512.
Note that GCM128 Neon code is currently not built (and thus not tested), as
the current toolchain does not support Neon instructions.
10 years ago
miod
31c291d25f
Correctly enable Montgomery code.
10 years ago
tedu
b213b4d39d
now that 5.5 has been released with compatibility for 2b hashes,
switch to generating them by default. prodded by deraadt and sthen
10 years ago
tedu
378adff9c2
1. Drop support for no minor. This variant doesn't exist anymore.
2. Pull up the actual minor processing code into the switch that
parses it.
3. atoi is actually simpler than strtonum in this case, but check the
input beforehand so we don't get unexpected results.
4. Slightly more consistent style between various parse and check and
increment operations on salt.
ok deraadt
10 years ago
miod
c3f1c42b8f
Enable assembler bits for BN (Montgomery), SHA1 and SHA256.
Assembler bits for AES remain commented out as they run slower than the C code.
10 years ago
miod
62cf4a9553
Correctly enable assembler Montgomery routine.
10 years ago
miod
d226e2231e
Correctly enable assembler Montgomery routine.
10 years ago
miod
4a6d2807e8
Reenable assembler code for SHA384 and SHA512 now that it no longer miscomputes
things. Worth doing as it's twice faster than the C code.
10 years ago
miod
b3754d7e6e
Disable assembler version of SHA512 for now, it produces wrong results.
10 years ago
miod
4ccd8f7b9b
Enable use of assembly code for AES, BN (Montgomery), SHA1, SHA256 and SHA512.
RC4 assembler code is not used, as it runs about 35% slower than the C code.
10 years ago
miod
ccdf39aa22
Enable use of the assembly code for BN (Montgomery) and SHA1.
10 years ago
miod
5e5b6a434e
Enable use of the assembly code for AES, BN, SHA1, SHA256 and SHA512.
10 years ago
jmc
55b1910ad3
tweak previous; ok sthen
10 years ago
miod
f8379a3fa2
+ e_chacha.c, and bump minor
10 years ago
jsing
233036e0f3
Add ChaCha to libcrypto, based on djb's public domain implementation.
ok deraadt@
10 years ago
tedu
74c23bc915
nibbles aren't enough random, use bytes. does a better job of picking
a free chunk at random and may allow to increase delayed chunk array.
ok otto
10 years ago
sthen
a82252ad47
first cut at documenting the change to malloc doing a partial 'junk' by
default and the new 'j' option to disable this; ok jmc@
10 years ago
jsing
aafd2acc1e
We do not need a separate file for two compatibility wrapper functions.
ok miod@
10 years ago
tedu
c0d30f0eb0
remove Z option and default to something halfway to J.
we always junk small chunks now, and the first part of pages,
but only after free. J still does the old thing. j disables everything.
Consider experimental as we evaluate performance in the real world.
ok otto
10 years ago
espie
41f1e88953
explain a bit more what's going on for stupid me.
okay otto@
10 years ago
otto
8a0e8854ef
Better, cleaner hash function that computes the same on be and le archs.
Should improve sparc64 and other be archs. ok matthew@ miod@
10 years ago
beck
e96a30fc99
Make libssl and libcrypto compile with -Werror
ok miod@
10 years ago
jmc
c1238dcae0
- one more mallocarray -> reallocarray
- use <>
10 years ago
tedu
07d1cf3ec2
change mallocarray to reallocarray. useful in a few more situations.
malloc can, as always, be emulated via realloc(NULL).
ok deraadt
10 years ago
deraadt
58a64bf376
correct man page section
10 years ago
deraadt
00d28c4faf
Introducing: void *mallocarray(size_t nmemb, size_t size);
Like calloc(), except without the cleared-memory gaurantee
ok beck guenther, discussed for more than a year...
10 years ago
guenther
e004b9b14e
Correctly document the return value of getenv(3)
From Ben Cornett (ben (at) lantern.is)
10 years ago
guenther
792be10b82
Chop off more SSLv2 tentacles and start fixing and noting y2038 issues.
APIs that pass times as longs will have to change at some point...
Bump major on both libcrypto and libssl.
ok tedu@
10 years ago
jmc
b07eaf1c5d
tweak previous;
10 years ago
tedu
fdb6f71674
one small tweak to avoid ever going off the end of a string.
10 years ago
tedu
50bce974c2
improved checking for invalid hashes. from solar designer
10 years ago