aead: rename argparams to initparams for consistency

This commit is contained in:
Lucas Gabriel Vuotto 2024-06-09 02:05:10 +00:00
parent df532c57f4
commit fdcba8bcf7

8
aead.c
View File

@ -20,16 +20,16 @@
int
lc_aead_seal(const struct lc_aead_impl *impl, uint8_t *out, size_t *outlen,
const void *argparams, const uint8_t *aad, size_t aadlen,
const void *initparams, const uint8_t *aad, size_t aadlen,
const uint8_t *in, size_t inlen)
{
return impl->seal(out, outlen, argparams, aad, aadlen, in, inlen);
return impl->seal(out, outlen, initparams, aad, aadlen, in, inlen);
}
int
lc_aead_open(const struct lc_aead_impl *impl, uint8_t *out, size_t *outlen,
const void *argparams, const uint8_t *aad, size_t aadlen,
const void *initparams, const uint8_t *aad, size_t aadlen,
const uint8_t *in, size_t inlen)
{
return impl->open(out, outlen, argparams, aad, aadlen, in, inlen);
return impl->open(out, outlen, initparams, aad, aadlen, in, inlen);
}