Fix when using gcc flag "-mx32" #51
No reviewers
Labels
No labels
bug
duplicate
enhancement
feature
help wanted
improve API
invalid
needs documentation
not-planned
rtfm
stale
support
wishlist
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libtom/libtomcrypt!51
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/x32"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_digitis introduced and used in the relevant functions.