Add Stax support

pull/94/head
Charles-Edouard de la Vergne 9 months ago
parent 6d66b739c6
commit 60bb907f28
No known key found for this signature in database
GPG Key ID: F12296941B7BB9C6

@ -49,6 +49,7 @@ INCLUDES_PATH += $(BOLOS_SDK)/lib_cxng/src
ICON_NANOS = icons/gpg_16px.gif ICON_NANOS = icons/gpg_16px.gif
ICON_NANOX = icons/gpg_14px.gif ICON_NANOX = icons/gpg_14px.gif
ICON_NANOSP = icons/gpg_14px.gif ICON_NANOSP = icons/gpg_14px.gif
ICON_STAX = icons/gpg_32px.gif
# Application allowed derivation curves. # Application allowed derivation curves.
# Possibles curves are: secp256k1, secp256r1, ed25519 and bls12381g1 # Possibles curves are: secp256k1, secp256r1, ed25519 and bls12381g1
@ -97,7 +98,7 @@ VARIANT_VALUES = OpenPGP
######################################## ########################################
#ENABLE_NBGL_QRCODE = 1 #ENABLE_NBGL_QRCODE = 1
#ENABLE_NBGL_KEYBOARD = 1 #ENABLE_NBGL_KEYBOARD = 1
#ENABLE_NBGL_KEYPAD = 1 ENABLE_NBGL_KEYPAD = 1
######################################## ########################################
# Features disablers # # Features disablers #

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

@ -1,7 +1,7 @@
[app] [app]
build_directory = "./" build_directory = "./"
sdk = "C" sdk = "C"
devices = ["nanos", "nanox", "nanos+"] devices = ["nanos", "nanox", "nanos+", "stax"]
[tests] [tests]
unit_directory = "./unit-tests/" unit_directory = "./unit-tests/"

@ -21,6 +21,9 @@
#include "lcx_sha3.h" #include "lcx_sha3.h"
#include "usbd_ccid_if.h" #include "usbd_ccid_if.h"
#include "bolos_target.h" #include "bolos_target.h"
#ifdef HAVE_NBGL
#include "nbgl_layout.h"
#endif
/* cannot send more that F0 bytes in CCID, why? do not know for now /* cannot send more that F0 bytes in CCID, why? do not know for now
* So set up length to F0 minus 2 bytes for SW * So set up length to F0 minus 2 bytes for SW
@ -256,6 +259,7 @@ struct gpg_v_state_s {
/* PINs state */ /* PINs state */
unsigned char verified_pin[5]; unsigned char verified_pin[5];
unsigned char pinmode; unsigned char pinmode;
unsigned char pinmode_req;
/* ux menus */ /* ux menus */
char menu[112]; char menu[112];
@ -273,6 +277,15 @@ struct gpg_v_state_s {
char ux_buff3[32]; char ux_buff3[32];
#endif #endif
#ifdef HAVE_NBGL
char line[112];
unsigned int ux_step;
unsigned int keypadIndex;
unsigned int hiddenDigitsIndex;
unsigned char pinLen;
nbgl_layout_t *layoutCtx;
#endif
#ifdef GPG_LOG #ifdef GPG_LOG
unsigned char log_buffer[32]; unsigned char log_buffer[32];
#endif #endif

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save