summaryrefslogtreecommitdiffstats
path: root/src/crypto/axtls
diff options
context:
space:
mode:
authorMichael Brown2012-03-13 17:35:21 +0100
committerMichael Brown2012-03-14 00:27:30 +0100
commit071184a6e488f68b2b3149b801ab56e2b02cec3e (patch)
tree59e6a1ab5c4ae22bb748be2267b1dbf931bc768d /src/crypto/axtls
parent[crypto] Add ASN.1 functions for X.509 certificate parsing (diff)
downloadipxe-071184a6e488f68b2b3149b801ab56e2b02cec3e.tar.gz
ipxe-071184a6e488f68b2b3149b801ab56e2b02cec3e.tar.xz
ipxe-071184a6e488f68b2b3149b801ab56e2b02cec3e.zip
[crypto] Add big-integer library for RSA calculations
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>
Diffstat (limited to 'src/crypto/axtls')
-rw-r--r--src/crypto/axtls/axtls_bigint.c (renamed from src/crypto/axtls/bigint.c)0
1 files changed, 0 insertions, 0 deletions
diff --git a/src/crypto/axtls/bigint.c b/src/crypto/axtls/axtls_bigint.c
index e228a218e..e228a218e 100644
--- a/src/crypto/axtls/bigint.c
+++ b/src/crypto/axtls/axtls_bigint.c