diff options
author | Rob Austein <sra@hactrn.net> | 2015-06-18 14:55:51 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-06-18 14:55:51 -0400 |
commit | 5e4fc533393e01e16739f450d46f739ca4b24fe8 (patch) | |
tree | b1ded623fb65555921a75ca3966817e6e5f8a56b /cryptech.h | |
parent | 35733aaf5f384f26a3a736f2ab54f638646bc086 (diff) |
Refactor CRT code into public API.
Diffstat (limited to 'cryptech.h')
-rw-r--r-- | cryptech.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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, |