david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[crypto] Expose RSA_CTX_SIZE constant

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-06-13 12:09:52 +01:00
parent a6a5825f8d
commit 5b608bbfe0
2 changed files with 4 additions and 1 deletions

View File

@ -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,

View File

@ -77,6 +77,9 @@ struct rsa_context {
void *tmp;
};
/** RSA context size */
#define RSA_CTX_SIZE sizeof ( struct rsa_context )
extern struct pubkey_algorithm rsa_algorithm;
#endif /* _IPXE_RSA_H */