From 4b2dcacf41186b9c5360f65cccf031783aa77e55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric?= Date: Wed, 10 Oct 2018 09:42:09 +0200 Subject: [PATCH] Remove Brainpool 256R1. Not correctly supported in gpg with smartcard. --- src/gpg_ux_nanos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpg_ux_nanos.c b/src/gpg_ux_nanos.c index d9e1808..3138612 100644 --- a/src/gpg_ux_nanos.c +++ b/src/gpg_ux_nanos.c @@ -513,7 +513,7 @@ static unsigned int validate_pin() { //#define LABEL_NISTP384 "NIST P384" //#define LABEL_NISTP521 "NIST P521" #define LABEL_SECP256K1 "SEPC 256K1" -#define LABEL_BPOOL256R1 "Brainpool 256R1" +//#define LABEL_BPOOL256R1 "Brainpool 256R1" //#define LABEL_BPOOL384R1 "Brainpool 384R1" //#define LABEL_BPOOL512R1 "Brainpool 512R1" #define LABEL_Ed25519 "Ed25519" @@ -576,10 +576,10 @@ const bagl_element_t* ui_menu_template_preprocessor(const ux_menu_entry_t* entry snprintf(G_gpg_vstate.menu, sizeof(G_gpg_vstate.menu)," %s", LABEL_SECP256K1); break; + /* case CX_CURVE_BrainPoolP256R1: snprintf(G_gpg_vstate.menu, sizeof(G_gpg_vstate.menu)," %s", LABEL_BPOOL256R1); break; - /* case CX_CURVE_BrainPoolP384R1: snprintf(G_gpg_vstate.menu, sizeof(G_gpg_vstate.menu)," %s", LABEL_BPOOL384R1); break; @@ -709,7 +709,7 @@ const ux_menu_entry_t ui_menu_tmpl_type[] = { // {NULL, ui_menu_tmpl_type_action, CX_CURVE_SECP384R1, NULL, LABEL_NISTP384, NULL, 0, 0}, // {NULL, ui_menu_tmpl_type_action, CX_CURVE_SECP521R1, NULL, LABEL_NISTP521, NULL, 0, 0}, {NULL, ui_menu_tmpl_type_action, CX_CURVE_SECP256K1, NULL, LABEL_SECP256K1, NULL, 0, 0}, - {NULL, ui_menu_tmpl_type_action, CX_CURVE_BrainPoolP256R1, NULL, LABEL_BPOOL256R1, NULL, 0, 0}, +// {NULL, ui_menu_tmpl_type_action, CX_CURVE_BrainPoolP256R1, NULL, LABEL_BPOOL256R1, NULL, 0, 0}, // {NULL, ui_menu_tmpl_type_action, CX_CURVE_BrainPoolP384R1, NULL, LABEL_BPOOL384R1, NULL, 0, 0}, // {NULL, ui_menu_tmpl_type_action, CX_CURVE_BrainPoolP512R1, NULL, LABEL_BPOOL512R1, NULL, 0, 0}, {NULL, ui_menu_tmpl_type_action, CX_CURVE_Ed25519, NULL, LABEL_Ed25519, NULL, 0, 0},