diff options
author | Rob Austein <sra@hactrn.net> | 2015-06-18 16:09:00 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-06-18 16:09:00 -0400 |
commit | 8bf2dc84a775f53053b632e7ff7401698ada06f5 (patch) | |
tree | abfa89da0f74177a7fb88b1199c3da2749ac27e3 /cryptech.h | |
parent | 5e4fc533393e01e16739f450d46f739ca4b24fe8 (diff) |
Add RSA blinding.
Diffstat (limited to 'cryptech.h')
-rw-r--r-- | cryptech.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -603,16 +603,18 @@ extern hal_error_t hal_modexp(const uint8_t * const msg, const size_t msg_len, / /* - * RSA. This is not the real API (yet), just test functions for debugging. + * RSA. */ -extern void hal_rsa_set_debug(const int onoff); +typedef enum { HAL_RSA_PRIVATE, HAL_RSA_PUBLIC } hal_rsa_key_type_t; + +typedef struct { void *key; } hal_rsa_key_t; extern const size_t hal_rsa_key_t_size; -typedef enum { HAL_RSA_PRIVATE, HAL_RSA_PUBLIC } hal_rsa_key_type_t; +extern void hal_rsa_set_debug(const int onoff); -typedef struct { void *key; } hal_rsa_key_t; +extern void hal_rsa_set_blinding(const int onoff); extern hal_error_t hal_rsa_key_load(const hal_rsa_key_type_t type, hal_rsa_key_t *key, |