LedgerHQ / app-monero

Monero wallet application for Ledger Nano S & X
Apache License 2.0
273 stars 101 forks source link

Invalid status 6f42 (Unknown reason) with firmware 1.6.0 #53

Closed ph4r05 closed 4 years ago

ph4r05 commented 4 years ago

Hi @cslashm !

I wanted to compile this version and install it on Ledger Nano S v1.6.0 but the

 cx_aes(&G_monero_vstate.spk, CX_ENCRYPT|CX_CHAIN_CBC|CX_LAST|CX_PAD_NONE,
         buffer, len,
         G_monero_vstate.io_buffer+G_monero_vstate.io_offset, len);

Causes an error: Invalid status 6f42 (Unknown reason)

If I switch to IODUMMYCRYPT everything works fine. Any idea what could be the problem with the new firmware?

Thanks!

cslashm commented 4 years ago

Hi,

AES/RSA (ie strong encryption) is not available by default on device. This is because of french cryptography exports laws.

ph4r05 commented 4 years ago

Aah OK, thanks for info!

I've made some custom modifications so the app can be deployed to 1.6.0 firmware.

The changes are here: https://github.com/ph4r05/blue-app-monero/commit/8ddb467678873046e3f8b7f0833cad6b8f0a48e7

Basically I've added custom lightweight AES-CBC implementation in C which is used instead of cx_aes if IOCUSTOMCRYPT is defined. This works well.

mdPlusPlus commented 2 years ago

@cslashm

AES/RSA (ie strong encryption) is not available by default on device. This is because of french cryptography exports laws.

Can we get a source for this statement? This seems like a statement straight from the US of the 1990s.