if (t > 0)
{
- memset (plain + k + ctx_len, 1, 1);
+ plain[k + ctx_len] = (char) 1;
#if DEBUG_HKDF
dump ("K(1)", plain, plain_len);
#endif
for (i = 1; i < t; i++)
{
GNUNET_memcpy (plain, result - k, k);
- memset (plain + k + ctx_len, i + 1, 1);
+ plain[k + ctx_len] = (char) (i + 1);
gcry_md_reset (prf);
#if DEBUG_HKDF
dump ("K(i+1)", plain, plain_len);
GNUNET_memcpy (plain, result - k, k);
i++;
}
- memset (plain + k + ctx_len, i, 1);
+ plain[k + ctx_len] = (char) i;
gcry_md_reset (prf);
#if DEBUG_HKDF
dump ("K(t):d", plain, plain_len);