summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/sha
AgeCommit message (Collapse)AuthorFilesLines
2019-01-21lenght -> lengthjsg1-2/+2
2018-01-24Make the NEON codepaths conditional on __STRICT_ALIGNMENT not beingkettenis1-2/+2
defined as they rely on unaligned access. ok joel@
2018-01-07On OpenBSD/armv7 we deliberately trap unaligned access. Unfortunatelykettenis3-4/+4
the assembly code in libcrypto assumes unaligned access is allowed for ARMv7. Make these paths conditional on __STRICT_ALIGNMENT not being defined and define __STRICT_ALIGNMENT in arm_arch.h for OpenBSD. ok tom@
2016-12-23Move __BEGIN_HIDDEN_DECLS out of the middle of a function declaration.patrick1-3/+3
ok jca@
2016-12-21Explicitly export a list of symbols from libcrypto.jsing1-1/+6
Move the "internal" BN functions from bn.h to bn_lcl.h and stop exporting the bn_* symbols. These are documented as only being intended for internal use, so why they were placed in a public header is beyond me... This hides 363 previously exported symbols, most of which exist in headers that are not installed and were never intended to be public. This also removes a few crusty old things that should have died long ago (like _ossl_old_des_read_pw). But don't worry... there are still 3451 symbols exported from the library. With input and testing from inoguchi@. ok beck@ inoguchi@
2016-11-04Replace all uses of magic numbers when operating on OPENSSL_ia32_P[] bymiod3-10/+11
meaningful constants in a private header file, so that reviewers can actually get a chance to figure out what the code is attempting to do without knowing all cpuid bits. While there, turn it from an array of two 32-bit ints into a properly aligned 64-bit int. Use of OPENSSL_ia32_P is now restricted to the assembler parts. C code will now always use OPENSSL_cpu_caps() and check for the proper bits in the whole 64-bit word it returns. i386 tests and ok jsing@
2016-11-04Remove I386_ONLY define. It was only used to prefer amiod1-12/+1
faster-on-genuine-80386-but-slower-on-80486-onwards innstruction sequence in the SHA512 code, and had not been enabled in years, if at all. ok tom@ bcook@
2016-09-04Less S390.jsing2-568/+0
ok deraadt@
2016-09-04Less IA64.jsing2-977/+0
ok deraadt@
2016-03-15'accomodate' -> 'accommodate' in comments.krw2-3/+3
Started by diff from Mical Mazurek.
2015-11-14mutli -> multimiod1-1/+1
2015-11-14Various *syncron* -> *synchron* typos.miod1-1/+1
2015-09-13Remove SHA-0 support.doug5-194/+6
SHA-0 was withdrawn shortly after publication 20 years ago and replaced with SHA-1. This will require a major crank. ok bcook@, jsing@
2015-09-10Correct spelling of OPENSSL_cleanse.jsing4-10/+10
ok miod@
2015-08-18typosmiod1-1/+1
2014-12-07Make sure to load absolute symbol address with `dla' instead of `la' whenmiod1-1/+7
generating code for 64-bit mips userland.
2014-12-07Remove OPENSSL_FIPSCANISTER mentions.miod2-8/+0
2014-10-28deregister; no binary changejsg1-3/+3
ok jsing@ miod@
2014-10-20digests: *_LONG_LOG2 is not used, stop talking about it.bcook1-3/+2
Modified patch from Dmitry Eremin-Solenikov leave the sole public define in ripemd.h ok deraadt@ miod@
2014-08-19Three independent typos for `independent' or `independently'.miod1-1/+1
2014-08-18remove return value from HOST_c2l/l2c macrosbcook2-25/+25
These macros and asm inlines simulate a function returning a value, but nothing ever uses this return value. Remove the pseudo-returns and (void) casts discarding the unused values. This, maybe unsurprisingly, speeds things up a bit. It also removes the GCC 4.9 warnings about unused values. ok miod@ deraadt@
2014-07-13unbreak build this needed to be an and..beck1-2/+2
ok jsing@
2014-07-13Take out __bounded__ in the include files we use it in when not on OpenBSD.beck1-1/+4
while we can take it out in portable at compile time, it is still a problem when we install this header file on a system that doesn't support __bounded__ if this is unguarded. ok miod@ bcook@
2014-07-11Only import cryptlib.h in the four source files that actually need it.jsing1-4/+2
Remove the openssl public includes from cryptlib.h and add a small number of includes into the source files that actually need them. While here, also sort/group/tidy the includes. ok beck@ miod@
2014-07-10Explicitly include <openssl/opensslconf.h> in every file that referencesjsing7-17/+33
an OPENSSL_NO_* define. This avoids relying on something else pulling it in for us, plus it fixes several cases where the #ifndef OPENSSL_NO_XYZ is never going to do anything, since OPENSSL_NO_XYZ will never defined, due to the fact that opensslconf.h has not been included. This also includes some miscellaneous sorting/tidying of headers.
2014-07-10Remove bogus preprocessor statements trying to pick the largest integermiod1-8/+1
type for BF_LONG, MD[45]_LONG and SHA_LONG. First, the preprocessor symbols they check for a 64-bit system is __ILP64__ which no sane system provides; second, on the platforms which have assembler code to speed things up, the assembler code assumes a 32-bit type will be used.
2014-07-09Remove leading underscore from _BYTE_ORDER and _{LITTLE,BIG}_ENDIAN, to bemiod3-8/+8
more friendly to systems where the underscore flavours may be defined as empty. Found the hard way be bcook@; joint brainstrom with bcook beck and guenther
2014-07-09remove unused, private version strings except SSL_version_strbcook4-12/+4
Also remove unused des_ver.h, which exports some of these strings, but is not installed. ok miod@ tedu@
2014-06-14Add more bounded attributes to the buffer and md5/sha headers in libsslavsm1-13/+25
ok miod@
2014-06-12tags as requested by miod and teduderaadt8-8/+8
2014-05-30Move sha256 and sha512 tests to regress and wire them up.jsing2-331/+0
2014-05-24Almost nothing actually needs to include <openssl/e_os2.h>, however byjsing1-1/+2
including it they get <openssl/opensslconf.h>. So instead of pulling in <openssl/e_os2.h>, just pull in <openssl/opensslconf.h>. "go ahead" miod@
2014-05-07Get __STRICT_ALIGNMENT from <machine/endian.h> and decide upon it, rathermiod1-4/+1
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-02The assembly sha512 code detects at runtime if it is running on a 64-bitmiod1-0/+6
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-01Do not output SOM-specific directives.miod2-0/+12
2014-05-01Fix include filename to get register name aliases under BSDmiod1-6/+1
2014-05-01Remove fips_md_init() macro indirection for digest algorithms, used by themiod3-6/+6
OpenSSL FIPS module to prevent forbidden digests to be allowed. No functional change but readability. ok deraadt@
2014-04-30First pass at removing win64 support from the assembly generating Perljsing1-109/+0
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-28Remove WIN32, WIN64 and MINGW32 tentacles.miod1-4/+1
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-23Unifdef -UPEDANTIC. ok beck@ tedu@miod1-20/+12
2014-04-23Figure out endianness at compile-time, using _BYTE_ORDER frommiod2-4/+6
<machine/endian.h>, rather than writing 1 to a 32-bit variable and checking whether the first byte is nonzero. tweaks and ok matthew@; ok beck@ tedu@
2014-04-22Remove meat which either duplicates code found in apps/, or is only of valuemiod2-249/+0
for 20th century historians, and can be put in the Attic.
2014-04-18Unsurprisingly, since <unistd.h> was so darn hard to find for OpenSSL developersbeck1-3/+1
they had resorted to manually protyping read(2) instead of incredible amount of preprocessor wizardry needed to find the ever illusive <unistd.h>. Let's just include <unistd.h> and we don't need to do this.. While we're at it flense out _OSD_POSIX and __DGJPP__ cruft. ok krw@
2014-04-18Do not ask the user to pass either -DB_ENDIAN or -DL_ENDIAN to the compiler,miod1-3/+4
but rather figure out the endianness from <machine/endian.h> automagically; help from guenther@ ok jca@ guenther@ beck@ and the rest of the `Buena SSL rampage club'
2014-04-17Get rid of MS Visual C compiler and Intel C compiler specific defines.miod1-30/+0
2014-04-17There are no plans to ever build this with the Metrojerks compiler.miod1-8/+1
2014-04-17Remove support for big-endian i386 and amd64.miod1-7/+1
Before someone suggests the OpenSSL people are junkies, here is what they mention about this: /* Most will argue that x86_64 is always little-endian. Well, * yes, but then we have stratus.com who has modified gcc to * "emulate" big-endian on x86. Is there evidence that they * [or somebody else] won't do same for x86_64? Naturally no. * And this line is waiting ready for that brave soul:-) */ So, yes, they are on drugs. But they are not alone, the stratus.com people are, too.
2014-04-17Aren't you glad to have this file tell you that ``C2.pl works''? Bonus pointmiod1-1/+0
if you can spot C2.pl.
2014-04-17No need to consider being compiled by NASM anymore.miod1-4/+0
2014-04-16Remove _CRAY references. Note that this pleads for the use of <stdint.h>miod1-1/+1
fixed-width types instead of choosing int or long depending upon what we think the architecture support.