diff options
author | Rob Austein <sra@hactrn.net> | 2015-06-18 18:44:40 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-06-18 18:44:40 -0400 |
commit | a615b134c498f8d88e0dab047f40c7096a2f9e03 (patch) | |
tree | 48b0a15338a1d360848273f6b8c8a5b482542133 /cryptech.h | |
parent | 30e821659ae85e76082932074cc7463e80bc59b9 (diff) |
Supply public exponent as bigendian byte string rather than unsigned
long, since that's the form we'll need for PKCS #11.
Diffstat (limited to 'cryptech.h')
-rw-r--r-- | cryptech.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |