From 24d66be3d5abca9b9346129f92cb931df40d5adc Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Tue, 13 Feb 2018 21:32:24 +0100 Subject: [PATCH] Use crypto_unlock_ctx for crypto_unlock*() --- src/monocypher.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/monocypher.h b/src/monocypher.h index 8b5db65..70326a9 100644 --- a/src/monocypher.h +++ b/src/monocypher.h @@ -131,11 +131,11 @@ void crypto_lock_final(crypto_lock_ctx *ctx, uint8_t mac[16]); #define crypto_unlock_init crypto_lock_init #define crypto_unlock_auth_ad crypto_lock_auth_ad #define crypto_unlock_auth_message crypto_lock_auth_message -void crypto_unlock_update(crypto_lock_ctx *ctx, - uint8_t *plain_text, - const uint8_t *cipher_text, - size_t text_size); -int crypto_unlock_final(crypto_lock_ctx *ctx, const uint8_t mac[16]); +void crypto_unlock_update(crypto_unlock_ctx *ctx, + uint8_t *plain_text, + const uint8_t *cipher_text, + size_t text_size); +int crypto_unlock_final(crypto_unlock_ctx *ctx, const uint8_t mac[16]); // General purpose hash (Blake2b) -- 2.47.3