From a615b134c498f8d88e0dab047f40c7096a2f9e03 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 18 Jun 2015 18:44:40 -0400 Subject: Supply public exponent as bigendian byte string rather than unsigned long, since that's the form we'll need for PKCS #11. --- cryptech.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cryptech.h') diff --git a/cryptech.h b/cryptech.h index 81f23f5..d8f1208 100644 --- a/cryptech.h +++ b/cryptech.h @@ -641,8 +641,7 @@ extern hal_error_t hal_rsa_decrypt(hal_rsa_key_t key, extern hal_error_t hal_rsa_key_gen(hal_rsa_key_t *key, void *keybuf, const size_t keybuf_len, const unsigned key_length, - const unsigned long public_exponent); - + const uint8_t * const public_exponent, const size_t public_exponent_len); extern hal_error_t hal_rsa_key_to_der(hal_rsa_key_t key, uint8_t *der, size_t *der_len, const size_t der_max); -- cgit v1.2.3