summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorMichael Brown2017-06-13 13:09:52 +0200
committerMichael Brown2017-06-20 10:49:00 +0200
commit5b608bbfe00c352f425ebaebad7f1ba2dd41334c (patch)
tree58e99073e4f62b4f791c0f68a39cecd152d6e36b /src/crypto
parent[cpuid] Allow input %ecx value to be specified (diff)
downloadipxe-5b608bbfe00c352f425ebaebad7f1ba2dd41334c.tar.gz
ipxe-5b608bbfe00c352f425ebaebad7f1ba2dd41334c.tar.xz
ipxe-5b608bbfe00c352f425ebaebad7f1ba2dd41334c.zip
[crypto] Expose RSA_CTX_SIZE constant
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/rsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/rsa.c b/src/crypto/rsa.c
index 36109280..7ac0bca5 100644
--- a/src/crypto/rsa.c
+++ b/src/crypto/rsa.c
@@ -625,7 +625,7 @@ static int rsa_match ( const void *private_key, size_t private_key_len,
/** RSA public-key algorithm */
struct pubkey_algorithm rsa_algorithm = {
.name = "rsa",
- .ctxsize = sizeof ( struct rsa_context ),
+ .ctxsize = RSA_CTX_SIZE,
.init = rsa_init,
.max_len = rsa_max_len,
.encrypt = rsa_encrypt,