Andy Polyakov
5837e90f08
Add iOS-specific armv4cpud.S module.
...
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>
2015-05-13 16:47:10 +02:00
Andy Polyakov
874faf2ffb
Adapt ARM assembly pack for iOS.
...
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>
2015-05-13 16:46:58 +02:00
Andy Polyakov
0b45df73d2
crypto/modes/modes_lcl.h: let STRICT_ALIGNMENT be on iOS.
...
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. As result exceptions could
be observed in xts128.c and ccm128.c modules. Contemporary Linux kernels
handle such exceptions by performing requested operation and resuming
execution as is if it succeeded. While on iOS exception is fatal.
Correct solution is to let STRICT_ALIGNMENT be on all ARM platforms,
but doing so is in formal conflict with FIPS maintenance policy.
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2015-05-13 16:46:44 +02:00
Andy Polyakov
083ed53def
Engage ARMv8 assembly pack.
...
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2015-05-13 16:45:07 +02:00
Andy Polyakov
b84813ec01
Add ARMv8 assembly pack.
...
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2015-05-13 16:43:25 +02:00
Andy Polyakov
baab0cf780
sha1-armv4-large.pl: comply with ABI.
...
(cherry picked from commit 1a9d60d2e3b02d5e1954fc71c92bf3a6af691495)
2013-12-16 14:08:56 +00:00
Dr. Stephen Henson
7e98d95f56
Don't require tag before ciphertext in AESGCM mode
...
(cherry picked from commit 964eaad78ccdc6c4537664924e6082b08cc1c8ee)
2013-12-16 14:08:30 +00:00
Dr. Stephen Henson
c616200172
Add support for Windows CE and C64+ to FIPS module.
2012-10-04 13:27:11 +00:00
Dr. Stephen Henson
ac381944ac
give a hand old assemblers assembling loop instruction. (original by Andy)
2012-01-18 14:54:20 +00:00
Dr. Stephen Henson
61c3085d47
Workaround for VxWorks
2011-12-04 15:11:44 +00:00
Dr. Stephen Henson
efd031abca
Fix x86cpuid so it doesn't fail for some (currently theoretical) virtual
...
machines.
2011-12-03 21:47:48 +00:00
Dr. Stephen Henson
dd4eefdb7b
Change EVP_MAXCHUNK so it doesn't wraparound to 0 on some platforms (IP32L64).
2011-12-03 21:44:01 +00:00
Dr. Stephen Henson
5e900f3cef
functions aren't unused: revert
2011-12-03 19:19:34 +00:00
Dr. Stephen Henson
75b250a4ed
remove unused functions from module
2011-12-03 18:27:31 +00:00
Dr. Stephen Henson
44cb365eaf
bn/asm/mips.pl: fix typos [from HEAD], original by Andy
2011-12-03 18:26:26 +00:00
Dr. Stephen Henson
31bf5f13e0
return error if counter exceeds limit and seed value supplied
2011-11-25 16:03:27 +00:00
Dr. Stephen Henson
7dcdc0d94d
check counter value against 4 * L, not 4096
2011-11-25 15:00:20 +00:00
Dr. Stephen Henson
f6385248f6
Add flag to support cofactor ECDH
2011-11-19 17:03:44 +00:00
Dr. Stephen Henson
901b9b5c36
In EC_KEY_set_public_key_affine_coordinates include explicit check to see passed components do not exceed field order
2011-11-16 13:28:11 +00:00
Andy Polyakov
68b2f55b90
e_aes.c: fold aesni_xts_cipher and [most importantly] fix aes_xts_cipher's
...
return value after custom flag was rightly reverted [from HEAD].
2011-11-06 19:49:58 +00:00
Andy Polyakov
04c8062636
armv4cpuid.S, armv4-gf2m.pl: make newest code compilable by older assembler [from HEAD].
2011-11-05 13:57:02 +00:00
Andy Polyakov
6fcc2bbce8
x86cpuid.pl: don't punish "last-year" OSes on "this-year" CPUs [from HEAD].
...
PR: 2633
2011-11-05 13:56:10 +00:00
Andy Polyakov
f2b0cf9178
ppc.pl: fix bug in bn_mul_comba4 [from HEAD].
...
PR: 2636
Submitted by: Charles Bryant
2011-11-05 13:55:20 +00:00
Dr. Stephen Henson
485ef852ac
Add single call public key sign and verify functions.
2011-11-05 01:32:52 +00:00
Dr. Stephen Henson
9ab6d6813e
PR: 2632
...
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-26 16:46:20 +00:00
Dr. Stephen Henson
319c7264b0
typo
2011-10-24 13:24:28 +00:00
Andy Polyakov
f2784994ec
e_aes.c: fold even aesni_ccm_cipher.
2011-10-24 06:00:06 +00:00
Andy Polyakov
507b0d9d38
e_aes.c: prevent potential DoS in aes_gcm_tls_cipher.
2011-10-23 22:58:40 +00:00
Andy Polyakov
181fbb77f3
cryptlib.c: remove stdio dependency in Windows fipscanister.lib.
2011-10-23 19:41:00 +00:00
Dr. Stephen Henson
f59a5d6079
No need for custom flag in XTS mode: block length is 1.
2011-10-23 17:06:28 +00:00
Dr. Stephen Henson
5fd722600b
Check for selftest failure in various places.
2011-10-22 17:24:27 +00:00
Andy Polyakov
5b198d5eea
x86gas.pl: relax .init segment alignment.
2011-10-22 10:49:52 +00:00
Dr. Stephen Henson
8d742dd561
Update error codes.
2011-10-21 11:46:16 +00:00
Andy Polyakov
033a25cef5
armcap.c: auto-setup processor capability vector.
2011-10-20 20:52:26 +00:00
Andy Polyakov
d528caa725
sha1-mips.pl: fix typo.
2011-10-20 08:39:29 +00:00
Dr. Stephen Henson
5e4eb9954b
add authentication parameter to FIPS_module_mode_set
2011-10-19 22:34:53 +00:00
Andy Polyakov
227a822ab6
vxworks-mips: unify and add assembler.
2011-10-19 21:49:20 +00:00
Andy Polyakov
a9cf0b81fa
Remove superseded MIPS assembler modules.
2011-10-19 21:42:21 +00:00
Andy Polyakov
3ee4d41fe1
arm_arch.h: add missing pre-defined macro, __ARM_ARCH_5TEJ__.
2011-10-19 18:57:03 +00:00
Bodo Möller
e5641d7f05
BN_BLINDING multi-threading fix.
...
Submitted by: Emilia Kasper (Google)
2011-10-19 14:59:27 +00:00
Bodo Möller
e0d6132b8c
Fix warnings.
...
Also, use the common Configure mechanism for enabling/disabling the 64-bit ECC code.
2011-10-19 08:59:53 +00:00
Bodo Möller
3e00b4c9db
Improve optional 64-bit NIST-P224 implementation, and add NIST-P256 and
...
NIST-P521. (Now -DEC_NISTP_64_GCC_128 enables all three of these;
-DEC_NISTP224_64_GCC_128 no longer works.)
Submitted by: Google Inc.
2011-10-18 19:43:16 +00:00
Andy Polyakov
07904e0c6c
evp/e_aes.c: fold AES-NI modes that heavily rely on indirect calls
...
(trade 2% small-block performance), engage bit-sliced AES in GCM.
2011-10-18 13:37:26 +00:00
Andy Polyakov
4010b341b7
x86_64-xlate.pl: make vpaes-x86_64.pl and rc4-md5-x86_64 work with ml64,
...
fix bug in .crt section alignment.
PR: 2620, 2624
2011-10-18 09:50:23 +00:00
Andy Polyakov
5a326467dc
bsaes-x86_64.pl: make it work with ml64.
2011-10-18 09:22:04 +00:00
Andy Polyakov
3b7c14bb90
[bs|vp]aes-x86[_64].pl: typos and clarifications.
2011-10-18 08:03:02 +00:00
Andy Polyakov
e2473dcc7d
c_allc.c: add aes-xts to loop.
2011-10-18 07:53:50 +00:00
Andy Polyakov
78f288d5c9
bn_mont.c: get corner cases right in updated BN_from_montgomery_word.
2011-10-17 23:35:00 +00:00
Andy Polyakov
8329e2e776
bn_exp.c: further optimizations using more ideas from
...
http://eprint.iacr.org/2011/239 .
2011-10-17 17:41:49 +00:00
Andy Polyakov
3f66f2040a
x86_64-mont.pl: minor optimization.
2011-10-17 17:39:59 +00:00