[Cryptech-Commits] [sw/libhal] 04/04: Doh! Works better if one tests the right status bit.

git at cryptech.is git at cryptech.is
Fri Mar 3 13:34:05 UTC 2017


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

sra at hactrn.net pushed a commit to branch hw_ecdsa_p256
in repository sw/libhal.

commit ad9bca732bf9001aa5293ede674a52eada3118fa
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Fri Mar 3 08:32:05 2017 -0500

    Doh! Works better if one tests the right status bit.
---
 ecdsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecdsa.c b/ecdsa.c
index bbb9865..3ca377b 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -828,7 +828,7 @@ static hal_error_t verilog_point_pick_random(const verilog_ecdsa_driver_t * cons
 
   check(hal_io_write(core, ADDR_CTRL, zero, sizeof(zero)));
   check(hal_io_next(core));
-  check(hal_io_wait_ready(core));
+  check(hal_io_wait_valid(core));
 
   for (int i = 0; i < sizeof(b); i += 4)
     check(hal_io_read(core, driver->x_addr + i/4, &b[sizeof(b) - 4 - i], 4));



More information about the Commits mailing list