aboutsummaryrefslogtreecommitdiff
path: root/cryptech.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-06-18 18:44:40 -0400
committerRob Austein <sra@hactrn.net>2015-06-18 18:44:40 -0400
commita615b134c498f8d88e0dab047f40c7096a2f9e03 (patch)
tree48b0a15338a1d360848273f6b8c8a5b482542133 /cryptech.h
parent30e821659ae85e76082932074cc7463e80bc59b9 (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.h3
1 files changed, 1 insertions, 2 deletions
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);