Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow argon2_context to accept pointers to const buffers #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions include/argon2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand Down