Simplify LNS-specific checks

This commit is contained in:
Alexandre Paillier 2023-02-16 15:47:51 +01:00 committed by Charles-Edouard de la Vergne
parent eaaaa04aae
commit 9ec1fb2bc0
No known key found for this signature in database
GPG Key ID: F12296941B7BB9C6
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@
#include "gpg_api.h"
#include "gpg_vars.h"
#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
#ifndef TARGET_NANOS
const gpg_nv_state_t N_state_pic;
#else
gpg_nv_state_t N_state_pic;

View File

@ -20,7 +20,7 @@
#include "gpg_vars.h"
#include "os_io_seproxyhal.h"
#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
#ifndef TARGET_NANOS
#include "ux.h"
ux_state_t G_ux;
bolos_ux_params_t G_ux_params;
@ -39,4 +39,4 @@ gpg_v_state_t G_gpg_vstate;
#ifdef HAVE_RSA
union cx_u G_cx;
#endif // HAVE_RSA
#endif // HAVE_RSA

View File

@ -34,7 +34,7 @@ extern const unsigned char C_OID_cv25519[10];
extern gpg_v_state_t G_gpg_vstate;
#if defined(TARGET_NANOX) || defined(TARGET_NANOS2)
#ifndef TARGET_NANOS
extern const gpg_nv_state_t N_state_pic;
#define N_gpg_pstate ((volatile gpg_nv_state_t *)PIC(&N_state_pic))
#else