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

hkdf_expand info arg can be const #402

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib_cxng/src/cx_hkdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void cx_hkdf_extract(const cx_md_t hash_id, const unsigned char* ikm, unsigned i

}

void cx_hkdf_expand(const cx_md_t hash_id, const unsigned char *prk, unsigned int prk_len, unsigned char *info,
void cx_hkdf_expand(const cx_md_t hash_id, const unsigned char *prk, unsigned int prk_len, const unsigned char *info,
unsigned int info_len, unsigned char *okm, unsigned int okm_len) {
unsigned char i;
unsigned int offset = 0;
Expand Down
2 changes: 1 addition & 1 deletion lib_cxng/src/cx_hkdf.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

void cx_hkdf_extract(const cx_md_t hash_id, const unsigned char *ikm, unsigned int ikm_len, unsigned char *salt,
unsigned int salt_len, unsigned char *prk);
void cx_hkdf_expand(const cx_md_t hash_id, const unsigned char *prk, unsigned int prk_len, unsigned char *info,
void cx_hkdf_expand(const cx_md_t hash_id, const unsigned char *prk, unsigned int prk_len, const unsigned char *info,
unsigned int info_len, unsigned char *okm, unsigned int okm_len);

#endif // CX_HKDF_H