summaryrefslogtreecommitdiffstats
path: root/crypto
AgeCommit message (Collapse)Author
2017-08-30Add some C64x assembly modules [by minor adjustments of C64x+ modules].Andy Polyakov
AES, SHA256 and SHA512 modules can actually replace corresponding C64x+ modules. This is because C64x+ instructions don't actually provide "killer-argument" advantage in these modules. As for SHA1, even though its performance exactly same, C64x+ module is more responsive to interrupts, i.e. doesn't inhibit them for as long periods as C64x module. Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Stephen Henson <steve@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4265)
2016-07-01FIPS MIPS assembly pack refresh.Andy Polyakov
Backport CVE-2014-3570 bug and postability fixes. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-06-21PowerPC assembly pack: add POWER8 support.Andy Polyakov
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2015-05-20crypto/modes/modes_lcl.h: let STRICT_ALIGNMENT be on ARMv7.Andy Polyakov
While ARMv7 in general is capable of unaligned access, not all instructions actually are. And trouble is that compiler doesn't seem to differentiate those capable and incapable of unaligned access. Side effect is that kernel goes into endless loop retrying same instruction triggering unaligned trap. Problem was observed in xts128.c and ccm128.c modules. It's possible to resolve it by using (volatile u32*) casts, but letting STRICT_ALIGNMENT be feels more appropriate. (cherry picked from commit 3bdd80521a81d50ade4214053cd9b293f920a77b) Reviewed-by: Dr. Stephen Henson <steve@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-05-13Add iOS-specific armv4cpud.S module.Andy Polyakov
Normally it would be generated from a perlasm module, but doing so would affect existing armv4cpuid.S, which in turn would formally void previously validated platforms. Hense separate module is generated. Reviewed-by: Dr. Stephen Henson <steve@openssl.org> (cherry picked from commit 5837e90f08ffcf5ad84933793bc285630018ce26)
2015-05-13Adapt ARM assembly pack for iOS.Andy Polyakov
This is achieved by filtering perlasm output through arm-xlate.pl. But note that it's done only if "flavour" argument is not 'void'. As 'void' is default value for other ARM targets, permasm output is not actually filtered on previously validated platforms. Reviewed-by: Dr. Stephen Henson <steve@openssl.org> (cherry picked from commit 874faf2ffb22187ad5483d9691a3a2eb7112f161)
2015-05-13Engage ARMv8 assembly pack.Andy Polyakov
Reviewed-by: Dr. Stephen Henson <steve@openssl.org> (cherry picked from commit 083ed53defb42ab4d3488bc7f80d9170d22293e7)
2015-05-13Add ARMv8 assembly pack.Andy Polyakov
Reviewed-by: Dr. Stephen Henson <steve@openssl.org> (cherry picked from commit b84813ec017cb03b8dd0b85bce2bb3e021c45685)
2014-07-11Fix copy for CCM, GCM and XTS.Dr. Stephen Henson
Internal pointers in CCM, GCM and XTS contexts should either be NULL or set to point to the appropriate key schedule. This needs to be adjusted when copying contexts. Combination of 2 commits: 370bf1d708e6d7af42e1752fb078d0822c9bc73d c2fd5d79ffc4fc9d120a0faad579ce96473e6a2f
2014-07-05Check return smaller of ret and f.Alan Hryngle
PR#3418. (cherry picked from commit d4909f9a8dbbda9c5d140476b34a8f80b02b51f3)
2014-04-02cryptlib.c: fix typo in WIN32 version of OPENSSL_showfatal.Andy Polyakov
2012-10-16Don't require tag before ciphertext in AESGCM modeDr. Stephen Henson
2012-10-15e_aes.c: uninitialized variable in aes_ccm_init_key.Dr. Stephen Henson
PR: 2874 Submitted by: Tomas Mraz (backport from HEAD)
2012-10-14sha1-armv4-large.pl: comply with ABI.Dr. Stephen Henson
(backport from HEAD)
2012-10-14gcm128.c: fix AAD-only case with AAD length not divisible by 16.Dr. Stephen Henson
PR: 2859 Submitted by: John Foley (backport from HEAD)
2012-10-14optimize make_kn (from HEAD, by Andy)Dr. Stephen Henson
2012-10-14CMAC reset fix (from HEAD)Dr. Stephen Henson
2012-10-04Add support for Windows CE and C64+ to FIPS module. (from fips2-stable)Dr. Stephen Henson
2012-05-23add commentDr. Stephen Henson
2012-05-23fix typoDr. Stephen Henson
2012-05-22Changes needed to support WinCE compilation:Dr. Stephen Henson
Don't try to raise SIGABRT if not defined. Return from fips_dhvs.c main instead of calling exit. Workaround for lack of GetSystemFileAsFileTime. Disable optimisation for part of bn_nist.c to avoid compiler bug. Remove /WX flag so we don't exist on warnings.
2012-01-18give a hand old assemblers assembling loop instruction. (original by Andy)Dr. Stephen Henson
2011-12-04Workaround for VxWorksDr. Stephen Henson
2011-12-03Fix x86cpuid so it doesn't fail for some (currently theoretical) virtualDr. Stephen Henson
machines.
2011-12-03Change EVP_MAXCHUNK so it doesn't wraparound to 0 on some platforms (IP32L64).Dr. Stephen Henson
2011-12-03functions aren't unused: revertDr. Stephen Henson
2011-12-03remove unused functions from moduleDr. Stephen Henson
2011-12-03bn/asm/mips.pl: fix typos [from HEAD], original by AndyDr. Stephen Henson
2011-11-25return error if counter exceeds limit and seed value suppliedDr. Stephen Henson
2011-11-25check counter value against 4 * L, not 4096Dr. Stephen Henson
2011-11-19Add flag to support cofactor ECDHDr. Stephen Henson
2011-11-16In EC_KEY_set_public_key_affine_coordinates include explicit check to see ↵Dr. Stephen Henson
passed components do not exceed field order
2011-11-06e_aes.c: fold aesni_xts_cipher and [most importantly] fix aes_xts_cipher'sAndy Polyakov
return value after custom flag was rightly reverted [from HEAD].
2011-11-05armv4cpuid.S, armv4-gf2m.pl: make newest code compilable by older assembler ↵Andy Polyakov
[from HEAD].
2011-11-05x86cpuid.pl: don't punish "last-year" OSes on "this-year" CPUs [from HEAD].Andy Polyakov
PR: 2633
2011-11-05ppc.pl: fix bug in bn_mul_comba4 [from HEAD].Andy Polyakov
PR: 2636 Submitted by: Charles Bryant
2011-11-05Add single call public key sign and verify functions.Dr. Stephen Henson
2011-10-26PR: 2632Dr. Stephen Henson
Submitted by: emmanuel.azencot@bull.net Reviewed by: steve Return -1 immediately if not affine coordinates as BN_CTX has not been set up.
2011-10-24typoDr. Stephen Henson
2011-10-24e_aes.c: fold even aesni_ccm_cipher.Andy Polyakov
2011-10-23e_aes.c: prevent potential DoS in aes_gcm_tls_cipher.Andy Polyakov
2011-10-23cryptlib.c: remove stdio dependency in Windows fipscanister.lib.Andy Polyakov
2011-10-23No need for custom flag in XTS mode: block length is 1.Dr. Stephen Henson
2011-10-22Check for selftest failure in various places.Dr. Stephen Henson
2011-10-22x86gas.pl: relax .init segment alignment.Andy Polyakov
2011-10-21Update error codes.Dr. Stephen Henson
2011-10-20armcap.c: auto-setup processor capability vector.Andy Polyakov
2011-10-20sha1-mips.pl: fix typo.Andy Polyakov
2011-10-19add authentication parameter to FIPS_module_mode_setDr. Stephen Henson
2011-10-19vxworks-mips: unify and add assembler.Andy Polyakov