Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement cx_bn_gf2_n_mul() #426

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Implement cx_bn_gf2_n_mul() #426

merged 2 commits into from
Oct 27, 2023

Conversation

aido
Copy link
Contributor

@aido aido commented Oct 10, 2023

cx_bn_gf2_n_mul() is currently not implemented on Speculos which causes an error every time cx_bn_gf2_n_mul() is called in an app:

syscall 0x05000046 not handled

However, OpenSSL has a function BN_GF2m_mod_mul() which can be used to implement cx_bn_gf2_n_mul() in Speculos. BN_GF2m_mod_mul() can be accessed when OpenSSL is built without the no-ec2m option.

src/emulate_2.0.c Outdated Show resolved Hide resolved
sdk/bolos_syscalls_2.0.h Outdated Show resolved Hide resolved
@xchapron-ledger xchapron-ledger merged commit c59b939 into LedgerHQ:master Oct 27, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants