mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
commit
8def190877
1 changed files with 3 additions and 1 deletions
|
|
@ -61,7 +61,9 @@ int hkdf_expand(int hash_idx, const unsigned char *info, unsigned long infolen,
|
|||
if (T == NULL) {
|
||||
return CRYPT_MEM;
|
||||
}
|
||||
XMEMCPY(T + hashsize, info, infolen);
|
||||
if (info != NULL) {
|
||||
XMEMCPY(T + hashsize, info, infolen);
|
||||
}
|
||||
|
||||
/* HMAC data T(1) doesn't include a previous hash value */
|
||||
dat = T + hashsize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue