Re: Java encryption implementation
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


sci.crypt archive

Re: Java encryption implementation

From: Mike Amling <nospam@icic.gov.ir>
Date: Tue Nov 29 2005 - 02:38:00 CET

Gregory G Rose wrote:
>
> [*] does Java guarantee 64-bit longs? I'm not
> sure. In C/C++, this could give you either 48, 32,
> or even 16 meaningful bits in "seed".

   Yes. A Java long is always exactly 64 signed bits, an int is 32
signed bits, a short is 16 signed bits, a char is 16 unsigned bits, a
byte is 8 signed bits, a float is IEEE 32-bit and a double is IEEE
64-bit, regardless of platform or version.

--Mike Amling
Received on Sat Dec 3 04:20:17 2005