aboutsummaryrefslogtreecommitdiff
path: root/cryptech.h
diff options
context:
space:
mode:
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,