From 8bf2dc84a775f53053b632e7ff7401698ada06f5 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 18 Jun 2015 16:09:00 -0400 Subject: Add RSA blinding. --- cryptech.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cryptech.h') diff --git a/cryptech.h b/cryptech.h index 4b8fe17..81f23f5 100644 --- a/cryptech.h +++ b/cryptech.h @@ -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, -- cgit v1.2.3