summaryrefslogtreecommitdiffstats
path: root/src/crypto/axtls
Commit message (Collapse)AuthorAgeFilesLines
* [crypto] Remove AXTLS headersMichael Brown2015-07-275-526/+0Star
| | | | | | | | Remove AXTLS headers now that no AXTLS code remains, with many thanks to the AXTLS project for use of their cryptography code over the past several years. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [crypto] Replace AES implementationMichael Brown2015-07-271-457/+0Star
| | | | | | | | | Replace the AES implementation from AXTLS with a dedicated iPXE implementation which is slightly smaller and around 1000% faster. This implementation has been verified using the existing self-tests based on the NIST AES test vectors. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [crypto] Remove obsolete AXTLS RSA algorithmMichael Brown2012-03-182-1782/+0Star
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [crypto] Add native RSA algorithmMichael Brown2012-03-181-0/+0
| | | | | | Add an implementation of RSA that uses the iPXE big-integer support. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [crypto] Use real prototypes for AXTLS' AES_encrypt() and AES_decrypt()Michael Brown2012-03-141-3/+3
| | | | | | | | Avoid a compiler warning on some versions of gcc by using real function prototypes. Reported-by: Rob Shelley <Rob@cirris.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [crypto] Add big-integer library for RSA calculationsMichael Brown2012-03-141-0/+0
| | | | | | | | | | | | | | RSA requires modular exponentiation using arbitrarily large integers. Given the sizes of the modulus and exponent, all required calculations can be done without any further dynamic storage allocation. The x86 architecture allows for efficient large integer support via inline assembly using the instructions that take advantage of the carry flag (e.g. "adcl", "rcrl"). This implemention is approximately 80% smaller than the (more generic) AXTLS implementation. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [crypto] Upgrade AES and RSA code to upstream axTLS version 1.4.5Michael Brown2012-03-098-600/+491Star
| | | | | | | | | All axTLS files are now vanilla versions of the upstream axTLS files, with one minor exception: the unused "ctx" parameter of bi_int_divide() has been marked with "__unused" to avoid a compilation error. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [crypto] Replace SHA-1 implementationMichael Brown2012-03-041-240/+0Star
| | | | | | | | | Replace SHA-1 implementation from AXTLS with a dedicated iPXE implementation which is around 40% smaller. This implementation has been verified using the existing SHA-1 self-tests (including the NIST SHA-1 test vectors). Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [crypto] Use ANS X9.82 Approved get_random_nz() for RSAMichael Brown2012-02-211-2/+9
| | | | Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [legal] Add FILE_LICENCE macro to some GPL-v2-or-later filesShao Miller2010-12-043-0/+6
| | | | | | | | | Changes were made to files where the licence text within the files themselves confirms that the files are GPL version 2 or later. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca> Modified-by: Michael Brown <mcb30@ipxe.org> Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [crypto] Add our own general-purpose cipher-block chaining routinesMichael Brown2009-02-192-6/+6
|
* [tls] Use our own ASN.1 routines for certificate parsingMichael Brown2009-02-101-867/+0Star
| | | | | | Use our own, more robust, ASN.1 parsing routines to extract the RSA public key from a server certificate. Remove the now-unused AXTLS ASN.1 parser.
* [crypto] Remove spurious #include "config.h"Michael Brown2008-09-251-2/+0Star
|
* use malloc attributeHolger Lubitz2007-08-201-1/+1
|
* Inhibit compiler warningMichael Brown2007-07-301-1/+1
|
* Upgrade AXTLS import to version 1.1.5-aMichael Brown2007-07-307-62/+906
|
* disable AES_convert_key by #if 0'ing it out (suggested by mcb30)Holger Lubitz2007-07-271-0/+2
|
* disable AES_convert_key by #if 0'ing it out (suggested by mcb30)Holger Lubitz2007-07-271-0/+4
|
* Warnings purge: src/{crypto,hci,net}Marty Connor2007-07-031-1/+1
|
* Conflicts with native asn1.cMichael Brown2007-06-081-867/+0Star
|
* Required for public key extractionMichael Brown2007-02-011-0/+867
|
* Vanilla copies from axtlsMichael Brown2007-02-012-0/+1749
|
* Quick hacks to get it workingMichael Brown2007-02-011-0/+7
|
* Original axtls RSA codeMichael Brown2007-01-311-0/+331
|
* Adding missing includeMichael Brown2007-01-311-0/+1
|
* We need this, I thinkMichael Brown2007-01-311-0/+1
|
* Should be correct for building RSAMichael Brown2007-01-281-1/+1
|
* Add aes.c and required headers from axtls treeMichael Brown2007-01-264-0/+969
|
* Enable the axtls code to at least build within gPXEMichael Brown2007-01-261-0/+62