Fix when using gcc flag "-mx32" #51

Merged
sjaeckel merged 4 commits from fix/x32 into develop 2014-09-29 16:49:58 -05:00
sjaeckel commented 2014-09-10 09:24:43 -05:00 (Migrated from github.com)

the "-mx32" flag can be used to create software that uses 64bit types on 64bit architectures but uses only 32bits for pointers.

This fixes an issue with the ecc code where it was assumend that unsigned long is always the same width as the architecture, which does not apply when using "-mx32".

Therefore a new type ltc_mp_digit is introduced and used in the relevant functions.

the "-mx32" flag can be used to create software that uses 64bit types on 64bit architectures but uses only 32bits for pointers. This fixes an issue with the ecc code where it was assumend that _unsigned long_ is always the same width as the architecture, which does not apply when using "-mx32". Therefore a new type `ltc_mp_digit` is introduced and used in the relevant functions.
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libtom/libtomcrypt!51
No description provided.