aboutsummaryrefslogtreecommitdiff
path: root/engines/e_padlock.c
AgeCommit message (Collapse)AuthorFilesLines
2018-09-11Update copyright yearMatt Caswell1-1/+1
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7176)
2018-06-22enable-ec_nistp_64_gcc_128: Fix function prototype warning [-Wstrict-prototypes]Nicola Tuveri1-2/+2
Fix prototype warnings triggered by -Wstrict-prototypes when configuring with `enable-ec_nistp_64_gcc_128` Reviewed-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/6556)
2016-11-15Only build the body of e_padlock when there are lower level routinesRichard Levitte1-7/+3
engines/e_padlock.c assumes that for all x86 and x86_64 platforms, the lower level routines will be present. However, that's not always true, for example for solaris-x86-cc, and that leads to build errors. The better solution is to have configure detect if the lower level padlock routines are being built, and define the macro PADLOCK_ASM if they are, and use that macro in our C code. Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1510)
2016-05-17Copyright consolidation 02/10Rich Salz1-61/+6
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-05-02Remove obsolete defined(__INTEL__) condition.Andy Polyakov1-2/+1
This macro was defined by no-longer-supported __MWERKS__ compiler. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-04-13Remove OPENSSL_NO_AES guardsMatt Caswell1-44/+34
no-aes is no longer a Configure option and therefore the OPENSSL_NO_AES guards can be removed. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-04-13Rename int_*() functions to *_int()Matt Caswell1-2/+2
There is a preference for suffixes to indicate that a function is internal rather than prefixes. Note: the suffix is only required to disambiguate internal functions and public symbols with the same name (but different case) Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-04-13Rename lots of *_intern or *_internal function to int_*Matt Caswell1-2/+2
There was a lot of naming inconsistency, so we try and standardise on one form. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-04-04Make sure the rand_byte buffer in padlock engine is cleansed.Richard Levitte1-1/+1
Submitted by Michael McConville <mmcco@mykolab.com> Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-03-23Move dso.h to internalRich Salz1-1/+0
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-03-18Resolved unresolved symbols with no-hwMatt Caswell1-7/+10
Compiling on Windows with no-hw was resulting in unresolved symbols in the padlock engine. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-03-07Rename EVP_CIPHER_CTX_cipher_data to EVP_CIPHER_CTX_get_cipher_dataMatt Caswell1-1/+1
We had the function EVP_CIPHER_CTX_cipher_data which is newly added for 1.1.0. As we now also need an EVP_CIPHER_CTX_set_cipher_data it makes more sense for the former to be called EVP_CIPHER_CTX_get_cipher_data. Reviewed-by: Tim Hudson <tjh@openssl.org>
2016-02-09Auto init/deinit libcryptoMatt Caswell1-2/+2
This builds on the previous commit to auto initialise/deinitialise libcrypto. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-01-12Adapt all engines that need it to opaque EVP_CIPHERRichard Levitte1-44/+56
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-01-12Adapt cipher implementations to opaque EVP_CIPHER_CTXRichard Levitte1-20/+21
Note: there's a larger number of implementations in crypto/evp/ that aren't affected because they include evp_locl.h. They will be handled in a separate commit. Reviewed-by: Rich Salz <rsalz@openssl.org>
2015-11-09Continue malloc standardisation in enginesMatt Caswell1-1/+1
Continuing from previous work standardise use of malloc in the engine code. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-05-05memset, memcpy, sizeof consistency fixesRich Salz1-1/+1
Just as with the OPENSSL_malloc calls, consistently use sizeof(*ptr) for memset and memcpy. Remove needless casts for those functions. For memset, replace alternative forms of zero with 0. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-02-06Live code cleanup: remove #if 1 stuffRich Salz1-3/+4
For code bracketed by "#if 1" then remove the alternate "#else .. #endif" lines. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell1-553/+572
Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-30mark all block comments that need format preserving so thatTim Hudson1-1/+1
indent will not alter them when reformatting comments Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
2014-08-18RT1815: More const'ness improvementsJustin Blanchard1-1/+1
Add a dozen more const declarations where appropriate. These are from Justin; while adding his patch, I noticed ASN1_BIT_STRING_check could be fixed, too. Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2011-11-15Configure: reimplement commit#21695.Andy Polyakov1-2/+2
2011-11-14Fix some warnings caused by __owur. Temporarily (I hope) remove the moreBen Laurie1-2/+2
aspirational __owur annotations.
2011-10-05e_padlock: add CTR mode.Andy Polyakov1-3/+45
2011-09-06Padlock engine: make it independent of inline assembler.Andy Polyakov1-788/+181
2011-05-25e_padlock.c: fix typo.Andy Polyakov1-1/+1
2011-05-24e_padlock.c: last x86_64 commit didn't work with some optimizers.Andy Polyakov1-13/+15
2011-05-18e_padlock.c: make it compile on MacOS X.Andy Polyakov1-7/+11
2011-01-30stop warnings about no previous prototype when compiling shared enginesDr. Stephen Henson1-0/+10
2009-05-12e_padlock.c: fix typo (missing #endif) and switch to __builtin_allocaAndy Polyakov1-5/+6
(with introduction of 64-bit support alloca must be declared and there is no standard way of doing that, switching to __bultin_alloca is considered appropriate because code explicitly targets gcc anyway).
2009-05-06Make sure the padlock code compiles correctly even on hardware thatRichard Levitte1-1/+6
doesn't have padlocks.
2009-04-26e_padlock: add support for x86_64 gcc.Andy Polyakov1-18/+122
2008-11-12Revert another size_t change.Dr. Stephen Henson1-1/+1
2008-11-02Fix warnings: printf format mismatches on 64 bit platforms.Dr. Stephen Henson1-1/+1
Change assert to OPENSSL_assert(). Fix e_padlock prototype.
2008-01-03Netware support.Dr. Stephen Henson1-0/+3
Submitted by: Guenter Knauf <eflash@gmx.net>
2007-11-20Avoid warning.Dr. Stephen Henson1-2/+2
2007-05-20Padlock engine fails to compile with -O0 -fPIC.Andy Polyakov1-1/+1
2006-12-29Move eng_padlock.c to ./engines.Andy Polyakov1-0/+1218
Submitted by: Michal Ludvig <michal@logix.cz>