From e672b665e7982e58ce9f73fdaf61c035a040fd80 Mon Sep 17 00:00:00 2001 From: SlowRiot Date: Sat, 25 Dec 2021 17:25:31 +0000 Subject: [PATCH] allow argon2_context to accept pointers to const buffers --- include/argon2.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/argon2.h b/include/argon2.h index 3980bb3..85d83e2 100644 --- a/include/argon2.h +++ b/include/argon2.h @@ -192,17 +192,17 @@ typedef struct Argon2_Context { uint8_t *out; /* output array */ uint32_t outlen; /* digest length */ - uint8_t *pwd; /* password array */ - uint32_t pwdlen; /* password length */ + uint8_t const *pwd; /* password array */ + uint32_t pwdlen; /* password length */ - uint8_t *salt; /* salt array */ - uint32_t saltlen; /* salt length */ + uint8_t const *salt; /* salt array */ + uint32_t saltlen; /* salt length */ - uint8_t *secret; /* key array */ - uint32_t secretlen; /* key length */ + uint8_t const *secret; /* key array */ + uint32_t secretlen; /* key length */ - uint8_t *ad; /* associated data array */ - uint32_t adlen; /* associated data length */ + uint8_t const *ad; /* associated data array */ + uint32_t adlen; /* associated data length */ uint32_t t_cost; /* number of passes */ uint32_t m_cost; /* amount of memory requested (KB) */