* [9fans] libsec/port/hmac.c
@ 2015-11-28 0:54 erik quanstrom
0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2015-11-28 0:54 UTC (permalink / raw)
To: 9fans
hmac_x(uchar *p, ulong len, uchar *key, ulong klen, uchar *digest, DigestState *s,
DigestState*(*x)(uchar*, ulong, uchar*, DigestState*), int xlen)
{
int i;
uchar pad[Hmacblksz+1], innerdigest[256];
if(xlen > sizeof(innerdigest))
return nil;
if(klen > Hmacblksz)
return nil;
/* first time through */
if(s == nil || s->seeded == 0){
>> if(klen >= Hmacblksz){
print("klen too large: %lud", klen);
assert(0);
i'm pretty sure that > is ment here, not >=. am i missing something?
- erik
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-28 0:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-28 0:54 [9fans] libsec/port/hmac.c erik quanstrom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).