random: resolve Coverity warnings
This commit is contained in:
parent
93eadc7040
commit
533f61249b
1 changed files with 2 additions and 1 deletions
|
@ -92,7 +92,8 @@ int rijndael_makekey(rd_keyinstance *key,
|
||||||
else break;
|
else break;
|
||||||
|
|
||||||
if (keylen >= 256/8) return RD_BAD_KEY_MAT;
|
if (keylen >= 256/8) return RD_BAD_KEY_MAT;
|
||||||
B(k)[keylen++] = b;
|
k[keylen/4][keylen%4] = b;
|
||||||
|
keylen++;
|
||||||
}
|
}
|
||||||
if (c != 0) return RD_BAD_KEY_MAT;
|
if (c != 0) return RD_BAD_KEY_MAT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue