sim-password-manager
sim-password-manager copied to clipboard
Unable to compile: ant
Missing short casts before modulus:
for (i = 0; i < 4; i++) {
sourceOffset = (short) ( (/*todo here*/(short)(i + 1) % 4) + ((KEYN-1) * 4) + hlp );
targetOffset = (short) ( i + (0 * 4) + hlp );
aesRoundKeys[targetOffset] ^= SBox[(aesRoundKeys[sourceOffset] >= 0) ? aesRoundKeys[sourceOffset] : (short) (256 + aesRoundKeys[sourceOffset])];
}
and
// tempBuffer WILL CONTAINS SHIFTED STATE a
for(i = 0; i < 4; i++) {
for(j = 0; j < BLOCKN; j++) tempBuffer[(short) (i + j * 4)] = a[(short) ((/*todo here*/(short)(i + (byte) ((j + shifts[(short) (i + d*4)] % BLOCKN) * 4)) % STATELEN) + dataOffset)];
}
Util.arrayCopyNonAtomic(tempBuffer, (short) 0, a, dataOffset, STATELEN);