@@ -263,7 +263,7 @@ int sober128_stream_crypt(sober128_state *c, const unsigned char *in, unsigned l
|
||||
|
||||
/* handle any previously buffered bytes */
|
||||
while (c->nbuf != 0 && inlen != 0) {
|
||||
*out++ = *in++ ^ (c->sbuf & 0xFF);
|
||||
*out++ = *in++ ^ (unsigned char)(c->sbuf & 0xFF);
|
||||
c->sbuf >>= 8;
|
||||
c->nbuf -= 8;
|
||||
--inlen;
|
||||
@@ -311,7 +311,7 @@ int sober128_stream_crypt(sober128_state *c, const unsigned char *in, unsigned l
|
||||
c->sbuf = nltap(c);
|
||||
c->nbuf = 32;
|
||||
while (c->nbuf != 0 && inlen != 0) {
|
||||
*out++ = *in++ ^ (c->sbuf & 0xFF);
|
||||
*out++ = *in++ ^ (unsigned char)(c->sbuf & 0xFF);
|
||||
c->sbuf >>= 8;
|
||||
c->nbuf -= 8;
|
||||
--inlen;
|
||||
|
||||
Reference in New Issue
Block a user