Skip to content

Commit b98ef26

Browse files
levittesjaeckel
authored andcommitted
Remove unnecessary casts in the Sober128 implementation
1 parent fc32d77 commit b98ef26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stream/sober128/sober128_stream.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ int sober128_stream_setup(sober128_state *st, const unsigned char *key, unsigned
172172
st->konst = INITKONST;
173173

174174
for (i = 0; i < keylen; i += 4) {
175-
k = BYTE2WORD((unsigned char *)&key[i]);
175+
k = BYTE2WORD(&key[i]);
176176
ADDKEY(k);
177177
cycle(st->R);
178178
XORNL(nltap(st));
@@ -214,7 +214,7 @@ int sober128_stream_setiv(sober128_state *st, const unsigned char *iv, unsigned
214214
}
215215

216216
for (i = 0; i < ivlen; i += 4) {
217-
k = BYTE2WORD((unsigned char *)&iv[i]);
217+
k = BYTE2WORD(&iv[i]);
218218
ADDKEY(k);
219219
cycle(st->R);
220220
XORNL(nltap(st));

0 commit comments

Comments
 (0)