[Cryptech-Commits] [sw/stm32] branch master updated: Mutex for RSA blinding factors cache.

git at cryptech.is git at cryptech.is
Sun May 20 19:54:52 UTC 2018


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository sw/stm32.

The following commit(s) were added to refs/heads/master by this push:
     new 85f1e04  Mutex for RSA blinding factors cache.
85f1e04 is described below

commit 85f1e04bdc3676c33d0534093ea89fc655b63500
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Sun May 20 15:50:41 2018 -0400

    Mutex for RSA blinding factors cache.
---
 projects/hsm/hsm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c
index f20ee64..64529f6 100644
--- a/projects/hsm/hsm.c
+++ b/projects/hsm/hsm.c
@@ -409,6 +409,12 @@ task_mutex_t ks_mutex = { 0 };
 void hal_ks_lock(void)   { task_mutex_lock(&ks_mutex); }
 void hal_ks_unlock(void) { task_mutex_unlock(&ks_mutex); }
 
+/* A mutex to arbitrary concurrent access to the RSA blinding factors cache.
+ */
+task_mutex_t rsa_bf_mutex = { 0 };
+void hal_rsa_bf_lock(void)   { task_mutex_lock(&rsa_bf_mutex); }
+void hal_rsa_bf_unlock(void) { task_mutex_unlock(&rsa_bf_mutex); }
+
 /* Sleep for specified number of seconds.
  */
 void hal_sleep(const unsigned seconds) { task_delay(seconds * 1000); }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list