LedgerHQ / nanos-secure-sdk

Secure (ST31) SDK for Ledger Nano S
Apache License 2.0
96 stars 54 forks source link

cx_bn_gf2_n_mul() syscall #64

Open aido opened 8 months ago

aido commented 8 months ago

The cx_bn_gf2_n_mul() syscall is not implemented on Nano S but is implemented on all other Ledger devices.

Galois Field operations are used in several areas of cryptography including AES, Shamir's Secret Shares, Elliptic curves etc. So can the cx_bn_gf2_n_mul() syscall be included for the Nano S device?

I have written an app to generate Shamir's Secret Shares and the Galois Field multiplication operation is used extensively. If the cx_bn_gf2_n_mul() syscall was made available on Ledger Nano S it would help reduce the size of the app while at the same time making it more secure.

If this is the wrong place for a request like this please advise on where would be a better place to ask, thanks.

aido commented 4 months ago

If cx_bn_gf2_n_mul() is not and will not be implemented on the Nano S OS can it be implemented in the Nano S SDK instead?