From 5e4fc533393e01e16739f450d46f739ca4b24fe8 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 18 Jun 2015 14:55:51 -0400 Subject: Refactor CRT code into public API. --- cryptech.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cryptech.h') 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, -- cgit v1.2.3