From 574f7315059d6ad79875717f45a47165602e39db Mon Sep 17 00:00:00 2001 From: Jesper Louis Andersen Date: Tue, 16 Dec 2014 15:16:43 +0100 Subject: [PATCH] Fix an error in the timing code. Luckily this has had no effect on timing in practice save for a small unmeasurable constant factor. Thanks to the dialyzer for finding the problem. --- src/enacl_timing.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enacl_timing.erl b/src/enacl_timing.erl index 35d1028..24edb20 100644 --- a/src/enacl_timing.erl +++ b/src/enacl_timing.erl @@ -65,7 +65,7 @@ auth(M, K, N) -> auth_verify(_A, _M, _K, 0) -> ok; auth_verify(A, M, K, N) -> enacl_nif:crypto_auth_verify_b(A, M, K), - auth(M, K, N-1). + auth_verify(A, M, K, N-1). %% STREAM %% -----------