mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
Match wc_ecc_ctx_set_kdf_salt
argument names between header and implementation.
This commit is contained in:
@ -1722,7 +1722,7 @@ int wc_ecc_ctx_set_peer_salt(ecEncCtx* ctx, const byte* salt);
|
|||||||
|
|
||||||
\param ctx pointer to the ecEncCtx for which to set the salt
|
\param ctx pointer to the ecEncCtx for which to set the salt
|
||||||
\param salt pointer to salt buffer
|
\param salt pointer to salt buffer
|
||||||
\param len length salt in bytes
|
\param sz length salt in bytes
|
||||||
|
|
||||||
_Example_
|
_Example_
|
||||||
\code
|
\code
|
||||||
@ -1742,7 +1742,7 @@ int wc_ecc_ctx_set_peer_salt(ecEncCtx* ctx, const byte* salt);
|
|||||||
\sa wc_ecc_ctx_get_peer_salt
|
\sa wc_ecc_ctx_get_peer_salt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int wc_ecc_ctx_set_kdf_salt(ecEncCtx* ctx, const byte* salt, word32 len);
|
int wc_ecc_ctx_set_kdf_salt(ecEncCtx* ctx, const byte* salt, word32 sz);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\ingroup ECC
|
\ingroup ECC
|
||||||
|
@ -13834,13 +13834,13 @@ int wc_ecc_ctx_set_peer_salt(ecEncCtx* ctx, const byte* salt)
|
|||||||
* @return 0 on success.
|
* @return 0 on success.
|
||||||
* @return BAD_FUNC_ARG when ctx is NULL or salt is NULL and len is not 0.
|
* @return BAD_FUNC_ARG when ctx is NULL or salt is NULL and len is not 0.
|
||||||
*/
|
*/
|
||||||
int wc_ecc_ctx_set_kdf_salt(ecEncCtx* ctx, const byte* salt, word32 len)
|
int wc_ecc_ctx_set_kdf_salt(ecEncCtx* ctx, const byte* salt, word32 sz)
|
||||||
{
|
{
|
||||||
if (ctx == NULL || (salt == NULL && len != 0))
|
if (ctx == NULL || (salt == NULL && sz != 0))
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
|
|
||||||
ctx->kdfSalt = salt;
|
ctx->kdfSalt = salt;
|
||||||
ctx->kdfSaltSz = len;
|
ctx->kdfSaltSz = sz;
|
||||||
|
|
||||||
if (ctx->protocol == REQ_RESP_CLIENT) {
|
if (ctx->protocol == REQ_RESP_CLIENT) {
|
||||||
ctx->cliSt = ecCLI_SALT_SET;
|
ctx->cliSt = ecCLI_SALT_SET;
|
||||||
|
Reference in New Issue
Block a user