aboutsummaryrefslogtreecommitdiff
path: root/cryptech.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-06-18 16:09:00 -0400
committerRob Austein <sra@hactrn.net>2015-06-18 16:09:00 -0400
commit8bf2dc84a775f53053b632e7ff7401698ada06f5 (patch)
treeabfa89da0f74177a7fb88b1199c3da2749ac27e3 /cryptech.h
parent5e4fc533393e01e16739f450d46f739ca4b24fe8 (diff)
Add RSA blinding.
Diffstat (limited to 'cryptech.h')
-rw-r--r--cryptech.h10
1 files changed, 6 insertions, 4 deletions
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,