[crypto] Expose RSA_CTX_SIZE constant
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
a6a5825f8d
commit
5b608bbfe0
|
@ -625,7 +625,7 @@ static int rsa_match ( const void *private_key, size_t private_key_len,
|
||||||
/** RSA public-key algorithm */
|
/** RSA public-key algorithm */
|
||||||
struct pubkey_algorithm rsa_algorithm = {
|
struct pubkey_algorithm rsa_algorithm = {
|
||||||
.name = "rsa",
|
.name = "rsa",
|
||||||
.ctxsize = sizeof ( struct rsa_context ),
|
.ctxsize = RSA_CTX_SIZE,
|
||||||
.init = rsa_init,
|
.init = rsa_init,
|
||||||
.max_len = rsa_max_len,
|
.max_len = rsa_max_len,
|
||||||
.encrypt = rsa_encrypt,
|
.encrypt = rsa_encrypt,
|
||||||
|
|
|
@ -77,6 +77,9 @@ struct rsa_context {
|
||||||
void *tmp;
|
void *tmp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** RSA context size */
|
||||||
|
#define RSA_CTX_SIZE sizeof ( struct rsa_context )
|
||||||
|
|
||||||
extern struct pubkey_algorithm rsa_algorithm;
|
extern struct pubkey_algorithm rsa_algorithm;
|
||||||
|
|
||||||
#endif /* _IPXE_RSA_H */
|
#endif /* _IPXE_RSA_H */
|
||||||
|
|
Reference in New Issue