From: Loup Vaillant Date: Tue, 13 Feb 2018 20:32:24 +0000 (+0100) Subject: Use crypto_unlock_ctx for crypto_unlock*() X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=24d66be3d5abca9b9346129f92cb931df40d5adc;p=Monocypher.git Use crypto_unlock_ctx for crypto_unlock*() --- 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)