Re: Java encryption implementation

From: Mike Amling (nospam_at_icic.gov.ir)
Date: 11/29/05


Date: Tue, 29 Nov 2005 01:38:00 GMT

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



Relevant Pages

  • Re: reading Java floats from C
    ... The question there would be how Java stores floats in a file, ... no reason to assume that the Java code is storing them in the same binary ... although IEEE 754 is typical. ...
    (comp.lang.c)
  • Re: convert date from VB to java
    ... I was distracted by the fact Microsoft uses ... The difference in days between Microsoft and java is ... >> integer to a java double, if the value contains the proper IEEE ... are no user defined types, or data structures, in java. ...
    (microsoft.public.vb.general.discussion)
  • Re: help finding/replacing NaNs in matrix
    ... It is an IEEE ... standard for double numbers and works in many other languages ... including Java. ...
    (comp.soft-sys.matlab)
  • Re: VAX OpenVMs Java - JVM? SDK?
    ... >> Java requires the use of IEEE floating, which VAX doesn't do. ... they released POSIX on vax. ...
    (comp.os.vms)
  • Re: Why different from expectation
    ... standard. ... IEEE 754 ... Thanks bin YE ... int main{double f = 0.0002; ...
    (comp.lang.c)