aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/aes
Commit message (Collapse)AuthorAgeFilesLines
* aes/asm/aesni-x86.pl: fix typo affecting Windows build.Andy Polyakov2015-04-201-1/+1
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* aes/asm/aesni-x86[_64].pl update.Andy Polyakov2015-04-202-239/+1025
| | | | | | | | | | | | | This addresses - request for improvement for faster key setup in RT#3576; - clearing registers and stack in RT#3554 (this is more of a gesture to see if there will be some traction from compiler side); - more commentary around input parameters handling and stack layout (desired when RT#3553 was reviewed); - minor size and single block performance optimization (was lying around); Reviewed-by: Matt Caswell <matt@openssl.org>
* Add assembly support for 32-bit iOS.Andy Polyakov2015-04-202-12/+70
| | | | | Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* aes/asm/vpaes-armv8.pl: make it compile on iOS.Andy Polyakov2015-04-201-5/+8
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* aes/asm/aesv8-armx.pl: optimize for Cortex-A5x.Andy Polyakov2015-04-021-91/+118
| | | | | | | | | | | | | ARM has optimized Cortex-A5x pipeline to favour pairs of complementary AES instructions. While modified code improves performance of post-r0p0 Cortex-A53 performance by >40% (for CBC decrypt and CTR), it hurts original r0p0. We favour later revisions, because one can't prevent future from coming. Improvement on post-r0p0 Cortex-A57 exceeds 50%, while new code is not slower on r0p0, or Apple A7 for that matter. [Update even SHA results for latest Cortex-A53.] Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove EXHEADER, TEST, APPS, links:, install: and uninstall: where relevantRichard Levitte2015-03-311-18/+1
| | | | | | | | | | | | With no more symlinks, there's no need for those variables, or the links target. This also goes for all install: and uninstall: targets that do nothing but copy $(EXHEADER) files, since that's now taken care of by the top Makefile. Also, removed METHTEST from test/Makefile. It looks like an old test that's forgotten... Reviewed-by: Rich Salz <rsalz@openssl.org>
* Stop symlinking, move files to intended directoryRichard Levitte2015-03-311-139/+0
| | | | | | | | | | | | | Rather than making include/openssl/foo.h a symlink to crypto/foo/foo.h, this change moves the file to include/openssl/foo.h once and for all. Likewise, move crypto/foo/footest.c to test/footest.c, instead of symlinking it there. Originally-by: Geoff Thorpe <geoff@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* Add vpaes-amrv8.pl module.Andy Polyakov2015-03-282-0/+1251
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Fix undefined behaviour in shifts.Emilia Kasper2015-03-132-144/+144
| | | | | | | | | | | | | | | Td4 and Te4 are arrays of u8. A u8 << int promotes the u8 to an int first then shifts. If the mathematical result of a shift (as modelled by lhs * 2^{rhs}) is not representable in an integer, behaviour is undefined. In other words, you can't shift into the sign bit of a signed integer. Fix this by casting to u32 whenever we're shifting left by 24. (For consistency, cast other shifts, too.) Caught by -fsanitize=shift Submitted by Nick Lewycky (Google) Reviewed-by: Andy Polyakov <appro@openssl.org>
* Fix crash in SPARC T4 XTS.Andy Polyakov2015-02-241-1/+1
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* aes/asm/bsaes-armv7: fix kernel-side XTS and harmonize with Linux.Andy Polyakov2015-02-241-1/+3
| | | | | | XTS bug spotted and fix suggested by Adrian Kotelba. Reviewed-by: Tim Hudson <tjh@openssl.org>
* "#if 0" removal: header filesRich Salz2015-01-271-7/+0
| | | | | | Remove all "#if 0" blocks from header files. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Add assembly support to ios64-cross.Andy Polyakov2015-01-231-3/+11
| | | | | | Fix typos in ios64-cross config line. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Fix macosx-ppc build (and typos in unwind info).Andy Polyakov2015-01-221-2/+4
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-229-357/+370
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Manually reformat aes_x86core.c and add it to the list of files skipped byMatt Caswell2015-01-221-514/+521
| | | | | | openssl-format-source Reviewed-by: Tim Hudson <tjh@openssl.org>
* Manually reformat aes_core.cMatt Caswell2015-01-221-400/+405
| | | | | | Add aes_core.c to the list of files not processed by openssl-format-source Reviewed-by: Tim Hudson <tjh@openssl.org>
* Fix irix-cc build.Andy Polyakov2015-01-071-1/+1
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Remove inconsistency in ARM support.Andy Polyakov2015-01-042-6/+10
| | | | | | | | | This facilitates "universal" builds, ones that target multiple architectures, e.g. ARMv5 through ARMv7. See commentary in Configure for details. Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* mark all block comments that need format preserving so thatTim Hudson2014-12-302-3/+3
| | | | | | | indent will not alter them when reformatting comments Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Remove fips_constseg references.Dr. Stephen Henson2014-12-081-10/+0
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Remove fipscanister build functionality from makefiles.Dr. Stephen Henson2014-12-081-1/+1
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Remove all .cvsignore filesRich Salz2014-11-281-8/+0
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* aesni-x86_64.pl: make ECB subroutine Windows ABI compliant.Andy Polyakov2014-10-151-25/+27
| | | | | RT: 3553 Reviewed-by: Emilia Kasper <emilia@openssl.org>
* x86[_64] assembly pack: add Silvermont performance data.Andy Polyakov2014-08-303-0/+4
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove some outdated README files, to avoid confusing people.Rich Salz2014-08-301-3/+0
| | | | Reviewed-by: Andy Polyakov <appro@openssl.org>
* x86_64 assembly pack: improve masm support.Andy Polyakov2014-07-091-1/+1
|
* x86_64 assembly pack: refine clang detection.Andy Polyakov2014-06-283-5/+5
|
* aesp8-ppc.pl: rigid input verification in key setup.Andy Polyakov2014-06-251-2/+22
|
* aesv8-armx.pl: rigid input verification in key setup.Andy Polyakov2014-06-251-1/+20
|
* x86_64 assembly pack: addendum to last clang commit.Andy Polyakov2014-06-243-3/+3
|
* x86_64 assembly pack: allow clang to compile AVX code.Andy Polyakov2014-06-243-0/+9
|
* aesv8-armx.pl: inclrease interleave factor.Andy Polyakov2014-06-241-245/+206
| | | | This is to compensate for higher aes* instruction latency on Cortex-A57.
* aesni-sha[1|256]-x86_64.pl: fix logical error and MacOS X build.Andy Polyakov2014-06-162-6/+8
|
* aesp8-ppc.pl: add CTR mode.Andy Polyakov2014-06-161-0/+654
|
* aesni-sha256-x86_64.pl: add missing rex in shaext.Andy Polyakov2014-06-141-1/+1
| | | | PR: 3405
* Facilitate back-porting of AESNI and SHA modules.Andy Polyakov2014-06-122-19/+78
| | | | Fix SEH and stack handling in Win64 build.
* Add support for Intel SHA extension.Andy Polyakov2014-06-112-24/+550
|
* aesni-mb-x86_64.pl: add Win64 SEH.Andy Polyakov2014-06-101-17/+177
|
* ARM assembly pack: get ARMv7 instruction endianness right.Andy Polyakov2014-06-061-2/+3
| | | | Pointer out and suggested by: Ard Biesheuvel.
* aesv8-armx.pl update:Andy Polyakov2014-06-061-17/+24
| | | | | - fix 32-bit build (submitted by Ard Biesheuvel); - fix performance issue in CTR;
* aesp8-ppc.pl: fix typos.Andy Polyakov2014-06-041-4/+4
|
* Engage POWER8 AES support.Andy Polyakov2014-06-012-1/+3
|
* Engage ARMv8 AES support.Andy Polyakov2014-06-012-3/+17
|
* aesv8-armx.pl: add CTR implementation.Andy Polyakov2014-05-291-1/+249
| | | | Submitted by: Ard Biesheuvel.
* aesp8-ppc.pl: optimize CBC decrypt even further.Andy Polyakov2014-05-291-334/+231
| | | | 10-19% improvement depending on key length and endianness.
* aesp8-ppc.pl: add optimized CBC decrypt.Andy Polyakov2014-05-231-86/+733
|
* vpaes-ppc.pl: comply with ABI.Andy Polyakov2014-05-231-109/+114
|
* aesv8-armx.pl: fix typo.Andy Polyakov2014-05-201-2/+2
|
* aesv8-armx.pl: optimize by adding 128-bit code paths.Andy Polyakov2014-05-201-16/+127
|