Re: SHA-512 and 128-bit integers
From: Shill (devnull_at_example.com)
Date: 04/29/03
- Next message: Roger Schlafly: "Re: Anyone looked at Mithra ?"
- Previous message: Shill: "Re: SHA-512 and 128-bit integers"
- In reply to: Ken Very Big Liar: "SHA-512 and 128-bit integers"
- Next in thread: Benjamin Goldberg: "Re: SHA-512 and 128-bit integers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 29 Apr 2003 20:05:07 +0200
> Ok, does anyone have a good solution to using 128-bit integers on 32
> bit machines? The Linux Pent III that I'm using to develop the
> different SHAs supports the C type "long long", which is a 64-bit
> type, but there is no support for 128-bit integers. Probably because
> there is no machine code for this, I'm not sure.
In x86 assembly language, you can use an ADD and 3 ADC (add with carry)
to add 2 128-bit integers.
In C, you could use an array of 4 unsigned int and detect overflow?
- Next message: Roger Schlafly: "Re: Anyone looked at Mithra ?"
- Previous message: Shill: "Re: SHA-512 and 128-bit integers"
- In reply to: Ken Very Big Liar: "SHA-512 and 128-bit integers"
- Next in thread: Benjamin Goldberg: "Re: SHA-512 and 128-bit integers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|