Branch: Tag:

2015-05-01

2015-05-01 01:58:39 by Martin Nilsson <nilsson@opera.com>

Simplified code a bit, as the salt-update-loop will never happen when digest size is 32 or 64. CID 1294599

384:    } else {    meta->update(ctx, dsz, abcbuf); /* c */    } -  if (r % 3) { /* d */ -  for (i = 0; i + dsz < slen; i += dsz) { -  meta->update(ctx, dsz, dsbuf); -  } -  meta->update(ctx, slen - i, dsbuf); -  } +  if (r % 3) /* d */ +  meta->update(ctx, slen, dsbuf);    if (r % 7) { /* e */    for (i = 0; i + dsz < plen; i += dsz) {    meta->update(ctx, dsz, dpbuf);