aboutsummaryrefslogtreecommitdiff
path: root/cryptech.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-06-18 14:55:51 -0400
committerRob Austein <sra@hactrn.net>2015-06-18 14:55:51 -0400
commit5e4fc533393e01e16739f450d46f739ca4b24fe8 (patch)
treeb1ded623fb65555921a75ca3966817e6e5f8a56b /cryptech.h
parent35733aaf5f384f26a3a736f2ab54f638646bc086 (diff)
Refactor CRT code into public API.
Diffstat (limited to 'cryptech.h')
-rw-r--r--cryptech.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/cryptech.h b/cryptech.h
index 6af9ce8..4b8fe17 100644
--- a/cryptech.h
+++ b/cryptech.h
@@ -628,9 +628,13 @@ extern hal_error_t hal_rsa_key_load(const hal_rsa_key_type_t type,
extern void hal_rsa_key_clear(hal_rsa_key_t key);
-extern hal_error_t hal_rsa_crt(hal_rsa_key_t key,
- const uint8_t * const m, const size_t m_len,
- uint8_t * result, const size_t result_len);
+extern hal_error_t hal_rsa_encrypt(hal_rsa_key_t key,
+ const uint8_t * const input, const size_t input_len,
+ uint8_t * output, const size_t output_len);
+
+extern hal_error_t hal_rsa_decrypt(hal_rsa_key_t key,
+ const uint8_t * const input, const size_t input_len,
+ uint8_t * output, const size_t output_len);
extern hal_error_t hal_rsa_key_gen(hal_rsa_key_t *key,
void *keybuf, const size_t keybuf_len,