Merge branch 'master' into development

This commit is contained in:
Pol Henarejos
2025-12-02 10:18:58 +01:00
32 changed files with 360 additions and 110 deletions

View File

@@ -26,6 +26,7 @@
#include "pico_keys.h"
#include "usb.h"
#include "random.h"
#include "version.h"
const uint8_t sc_hsm_aid[] = {
11,
@@ -44,6 +45,8 @@ const uint8_t *dev_name = NULL;
uint16_t dev_name_len = 0;
uint8_t PICO_PRODUCT = 1;
uint8_t PICO_VERSION_MAJOR = HSM_VERSION_MAJOR;
uint8_t PICO_VERSION_MINOR = HSM_VERSION_MINOR;
static int sc_hsm_process_apdu();

View File

@@ -18,7 +18,7 @@
#ifndef __VERSION_H_
#define __VERSION_H_
#define HSM_VERSION 0x0506
#define HSM_VERSION 0x0600
#define HSM_VERSION_MAJOR ((HSM_VERSION >> 8) & 0xff)
#define HSM_VERSION_MINOR (HSM_VERSION & 0xff)