Commit Graph

49 Commits (master)

Author SHA1 Message Date
Xavier Chapron 6d38d5374f
src: sdk: usbd_impl.c: Fix build now that HAVE_LOCAL_APDU_BUFFER_FEATURE is enabled for all device 8 months ago
Xavier Chapron a476fa0413
src: sdk.c: usbd_impl.c: Fix build with new SDK which changed the prototype of USBD_HID_DataOut_impl 1 year ago
Edouard Merle 59c4316d03 add: usb descriptor for lns+ 1 year ago
Edouard Merle 58c53a930e add: rsa4096 key generation on lnx/lns+ 1 year ago
Edouard Merle 660b9b667d fix: build for lns+ 1 year ago
Edouard Merle 5897a5ecdc remove shake256 calls 1 year ago
Edouard Merle 5aa623c103 adding info param in sign pso 1 year ago
Edouard Merle 36a650bdac removing cxng sources from the app 1 year ago
Edouard Merle 7640bf76a6 updating local Makefile.rules file 1 year ago
Edouard Merle 5435547497 cxng compatibility 1 year ago
Antoine FERRON 97806c68db Fix challenge length handling, Fix #63 4 years ago
TamtamHero effaf86009
Disable RSA 4096 key gen for Nano X until it gets a fw update to fix it 4 years ago
cslashm 8cf68b051c fix issue #12 4 years ago
cslashm 1151672873 Add two levels of reset
- Reset application
- Reset current key slot only
4 years ago
cslashm 6348318cf0 Fix PIN on screen: issue #7 4 years ago
cslashm 99cfcdd6bb CRLF->LF 5 years ago
cslashm f6766c4441 Compatibility with 1.6.0.1-og SDK 5 years ago
BTChip 3ae6f0d8f5 Compatibility with 1.6 SDK 5 years ago
cslashm 6eb81afec9 fix XL version 5 years ago
cslashm f217b4539f add missing file 5 years ago
cslashm e376170687 add missing file 5 years ago
cslashm 72df4f7d20 Add NanoX support
- embed shake256 as NanoX bug workarround
- replace 'C' by 'C' in PIN Entry
- fix the fact cx_hash does not accept any more NULL as output buff
- add clang formatter
5 years ago
cslashm f92dd4730c UIF for PSO:ENC + minor fixes
Add UIF-decryption rule for "PSO:ENC" command
Fix Makefile load rule
Fix display glitch in "back" menus
5 years ago
Cédric 2a83a90099
Merge pull request #42 from mlapaj/master
fixed UIF
5 years ago
cslashm bcf9cd3c82 Minor Fixes
Fix Makefile for 'Multi/Single slot' compilation
Fix unnecessary conditionnal code for 'Multi/Single slot' compilation
Fix name display: remove '<' filler
5 years ago
Marcin Lapaj 1334de23e5 fixed UIF 5 years ago
Cédric 8f841e7188 Enhancement + bugfix
Application

- full independant serial per slot
- EXIT instruction ('02') controlled by PW2
- remove code belonging  curves other than Ed25519/NISTP256
- fix io bug when APDU is 4 bytes lenght

Makefile:

- dual version XL/1slot. XL contains 3 key slots, normal only one.
  use "MULTISLOT=1 make" to compile XL version
- add exit rule

doc:

- update dev/user

tool:

- froce backup filename suffix: _slot<x>.pickle
- add --set_template option
- add --slot option
- rename --set-fp to  --set-fingerprints
6 years ago
Cédric 4b2dcacf41 Remove Brainpool 256R1.
Not correctly supported in gpg with smartcard.
6 years ago
Cédric 14cfe899ff Add full backup/restore with python tool
app:

- support DO 'B6'/'B8'/'A4' in get/put data for full backup.
  private key are backuped encrypted with AES and a key based on the master seed
- fix missing DO 'CB' access
- fix TERMINATE_DF command: the command did not return
- fix stack corruption in ECC key generation, when key size is greater than 256bits

tools:

- add full backup/restore cli tool

misc:

- add 'make run' rules
6 years ago
OTO fafc85c324 fix apdu state machine end after response apdu is sent 6 years ago
Cédric c07cb00cb6 Fix SSH authentication with Ed25519.
When message to sign was too long, it overlayd the signature destination.
6 years ago
Cédric 281ea42cbb 1.2.0 code
SDK 1.4.2.x port
Add uif support
Refactor memory layout
Try to add more curve
  gpg 2.2.x handle curves other than ed25519 in a such strange way
  that it is very difficult to do such support.
  So secp256k1, secp256r1 and brainpoolp256 seems works, but according to gpg
  code it works by side effects :-/
Update user documentation for UIF

There is still an issue with ssh authentication with Ed25519. It works with NIST-P256, Brainpool256 curves
6 years ago
Cédric a0d537dcec Merge branch '1.1.0_fw.1.4.1' 6 years ago
Cédric b71d2d02d7 port SDK 1.4.2.1 6 years ago
Cédric 81090d3f23 1.4.1 firmware port
Code update for 1.4.1 fw
Fix PUT_DATA[serial] command
6 years ago
Cédric e6026d5809 intermediate commit 6 years ago
Cédric Mesnil cf6e295e47 1.1.0 fixes
Fix PIN management
   PINPAD CCID command was in conflict with new PIN get status APDU. Use class CLA=0xEF to
   differenciate both case.

Fix Terminate status management

Fix RC code setting

Add MSE support
Set MSE supported in capabilities
7 years ago
Cédric Mesnil a1c8e7766c On the road to 1.1.0
Fix PIN management

Add 3.3.1 spec addons
  - VERIFY with get status
  - MSE
  - ECC public key import
  - AES PSO:ENC
  - AES multi blcok
7 years ago
Cédric Mesnil f8522808b6 BugFix: set ACCESCOND for changing PIN mode tp PW1, not PW2
Allow PIN_CONFIRM switch with USER PIN level
7 years ago
Cédric Mesnil 9dec68f892 RC7
Fix Signatrure counter:  now incremented
Fix PIN status init: was not correctly initialized
Fix "only once" CDS management: PIN was not invalidated after signing
Change all return 0 by corresponding THROW error code
PIN API refacto
7 years ago
Cédric Mesnil 2e0d755fb6 RC6
Features:
  "PIN confirm" is now the default PIN input mode.
  Add EF 01F8 for setting default RSA public exponent for key generation. Access control is PW3/Admin.

Bug fixes:
  Fix Issue #2:  Add explicit return after each throw.
7 years ago
Cédric Mesnil f3356cb4fe Fix keytocard bug 7 years ago
Cédric Mesnil de35c7ac78 Add missing decl 7 years ago
Cédric Mesnil c1efa87a7b Try to fix windows card detection issue 7 years ago
Cédric Mesnil fc0e37d5f0 Fix onscreen PIN
Add onscreen PIN modification
Fix default PIN mode management
7 years ago
Cédric Mesnil 8430858dfb Async interaction and PIN on screen
Add PIN on screen
Fix strings declarations and usages to avoid PIC fails
Fix IO for Async interaction
Move UX code in dedicated file
7 years ago
Cédric Mesnil b0d13ad6d5 1.0 RC2
App:
  Serial value depends on active slot: last nible encode active slot
  Fix severals PIN management bugs
  Make PW1 distinction (81/82 tag) for commands PSO:CDS/DEC
  Invalid PW1 'verified' status on PSO:CDS command according to PWstatus
  Remove access control on INS_CHANGE_REFERENCE_DATA
  Remove unused variables
  New icon

 Build
   Add glyphs GIF sources
   Use sdk 1.3.1-4
7 years ago
Cédric Mesnil 278d85a821 1.0 RC1
Add-on Spec:
 Add intermediate SHA256 in seeded key derivation
 Beautify spec

Pytool:
  Remove some log

 App:
  Fix GET_CHALLENGE commande to support addon mode
  Add '01F2' '01F1' access control
  Replace ugly temporary cx_sha_t address definition by clean union
  Rewrite dynamic menu management in ui
  Add 'About' menu

 Build:
  Rename application from GNUPG3 to OpenPGP and version to 1.0
  Lock path & curve
  Compile in optimization mode
7 years ago
Cédric Mesnil bfb950e21b Initial commit
Functional application in beta stage
7 years ago