-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was implementing RC4 in java and I ran up against the no-unsigned-types property of java. Thus I had to use ints rather than bytes for i and j and for the S-box, and I had to sprinkle my code with masks &255 in some places, and type casts in others. The resulting code seems to work fine, but I feel a little uncomfortable with the bletcherous way I've expressed such an elegant algorithm. Does anybody know of a better way to do this in java? I suspect there isn't, and I realize that using ints might be faster, anyway. Still, it irks me whenever I think about it. Lastly, to forestall confusion, I'd like to make clear that I'm no relation to the "David R. Conrad <[EMAIL PROTECTED]>" who posted to the list recently (passing odd, that). David R. Conrad <[EMAIL PROTECTED]> PGP keys (0x1993E1AE and 0xA0B83D31): DSS Fingerprint20 = 9942 E27C 3966 9FB8 5058 73A4 83CE 62EF 1993 E1AE RSA Fingerprint16 = 1D F2 F3 90 DA CA 35 5D 91 E4 09 45 95 C8 20 F1 This message brought to you by the letter '6' and the number 0xDEADBEEF. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBNrwe+YPOYu8Zk+GuEQJVeACaA8z91cgipNG/jAkm3R0JX3dE1+UAnR93 BcPCowzSPuSE2ItYS6+ovgqC =qHn/ -----END PGP SIGNATURE-----
