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.
This commit is contained in:
Jesper Louis Andersen 2014-12-16 15:16:43 +01:00
parent 541db5b5ee
commit 574f731505

View File

@ -65,7 +65,7 @@ auth(M, K, N) ->
auth_verify(_A, _M, _K, 0) -> ok; auth_verify(_A, _M, _K, 0) -> ok;
auth_verify(A, M, K, N) -> auth_verify(A, M, K, N) ->
enacl_nif:crypto_auth_verify_b(A, M, K), enacl_nif:crypto_auth_verify_b(A, M, K),
auth(M, K, N-1). auth_verify(A, M, K, N-1).
%% STREAM %% STREAM
%% ----------- %% -----------