From 5b608bbfe00c352f425ebaebad7f1ba2dd41334c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 13 Jun 2017 12:09:52 +0100 Subject: [crypto] Expose RSA_CTX_SIZE constant Signed-off-by: Michael Brown --- src/crypto/rsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crypto') 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, -- cgit v1.2.3-55-g7522