Commit Graph

96 Commits

Author SHA1 Message Date
Charles-Edouard de la Vergne
37f7ab8571
Replace multiple 'if' by 'switch/case' 2024-03-21 12:11:21 +01:00
Charles-Edouard de la Vergne
d97b0ea3b4
Minor code optimization to ease readability
- Remove useless parameter for 'ui_info'
- Remove useless functions 'gpg_init_ux' and 'io_seproxyhal_display'
- Add constant definition
- Unique function 'app_reset' instead of duplicate code
2024-03-21 12:07:07 +01:00
Charles-Edouard de la Vergne
3847b0636d
Add inline comment for functions description 2024-03-21 12:05:01 +01:00
Charles-Edouard de la Vergne
6a587af35b
Fix missing curve 'secp256k1' in the menus 2024-03-14 16:13:38 +01:00
Charles-Edouard de la Vergne
8c60342f05
Revert "Add few buffer checks"
Causing issue with secp256r1 curve!

This reverts commit 7b7bd27fa3.
2024-03-14 16:13:37 +01:00
Charles-Edouard de la Vergne
2d309b8c79
Add debug PRINTF 2024-03-14 11:13:50 +01:00
Charles-Edouard de la Vergne
3e98639670
Fix #80: set 'URL of public key' on each slot 2024-03-14 11:13:50 +01:00
Charles-Edouard de la Vergne
7b7bd27fa3
Add few buffer checks 2024-03-14 11:13:50 +01:00
Charles-Edouard de la Vergne
43da863428
Fix Name display 2024-03-14 09:02:45 +01:00
Charles-Edouard de la Vergne
6541cf32f8
Clear return buffer in case of error 2024-03-14 09:02:44 +01:00
Charles-Edouard de la Vergne
ae8d1f7607
Cleanup / comment dead code 2024-03-14 09:02:44 +01:00
Charles-Edouard de la Vergne
cc8de8eb97
Clean magic numbers with define constants 2024-03-14 09:02:43 +01:00
Charles-Edouard de la Vergne
b4a5c236ea
Replace memmove by strlcpy 2024-03-13 14:49:47 +01:00
Charles-Edouard de la Vergne
710de03cad
Replace memset by explicit_bzero 2024-03-13 14:49:47 +01:00
Charles-Edouard de la Vergne
f3070bb886
Remove useless TODO comments 2024-03-13 14:49:46 +01:00
Charles-Edouard de la Vergne
c3c0fde6fc
Fix Security Audit issue OPGP-#01
- Fix buffer overflow in pinentry buffer
- Add dedicated variable to manage the pin length
2024-03-13 14:49:46 +01:00
Charles-Edouard de la Vergne
6983d8cbb8
Fix screen message buffer overwrite 2024-03-13 14:49:46 +01:00
Charles-Edouard de la Vergne
1d16c87fc8
Cleanup unused fields 2024-03-13 14:49:45 +01:00
Charles-Edouard de la Vergne
9f917865c4
Add curve secp256K1 2024-03-01 18:39:40 +01:00
Charles-Edouard de la Vergne
29961974e1
Fix Supported curves 2024-02-29 17:46:46 +01:00
Charles-Edouard de la Vergne
f60feb09ab
Disable RSA4096 - watchdog issue 2024-02-29 17:46:45 +01:00
Charles-Edouard de la Vergne
69532fde5a
fix nistp256 template 2024-02-29 17:46:45 +01:00
Charles-Edouard de la Vergne
f49c574428
custo & formatting 2024-02-29 16:38:35 +01:00
Charles-Edouard de la Vergne
4390142ffa
Fix EC templates on Stax 2024-02-28 11:16:57 +01:00
Charles-Edouard de la Vergne
285fbcfaf3
Allow verified PW1 or PW2 before changing pin mode 2024-02-28 11:16:57 +01:00
Charles-Edouard de la Vergne
7d68daf254
Fix Historical Bytes buffer with correct padding 2024-02-28 11:16:57 +01:00
Charles-Edouard de la Vergne
2969c0e150
Fix Historical Bytes Status Indicator value 2024-02-28 10:24:58 +01:00
Charles-Edouard de la Vergne
a36e567524
Re-align with latest Stax SDK update 2024-02-28 10:24:57 +01:00
Charles-Edouard de la Vergne
09d1e9509e
Stax with future nbgl_useCaseKeypad (compilation flag) 2024-02-14 09:29:16 +01:00
Charles-Edouard de la Vergne
60bb907f28
Add Stax support 2024-02-14 09:29:16 +01:00
Charles-Edouard de la Vergne
6d66b739c6
PRODUCT: Update SEED mode management
- Set SEED mode On at startup
- Add a warning if the user disables it
2024-02-14 09:29:15 +01:00
Charles-Edouard de la Vergne
1eda5785e7
PRODUCT: Update PIN modes management
- Remove support of "On Host"
- Add warnning message if user select "Trust"
2024-02-14 09:29:15 +01:00
Charles-Edouard de la Vergne
56c0ece628
PRODUCT: Remove deprecated RSA1024 2024-02-14 09:29:15 +01:00
Charles-Edouard de la Vergne
9f3130e88b
PRODUCT: Change Key slots management
- Only a single slot for "Nanos"
- 3 slots for other platforms
- No more Variants to manage, only OpenPGP is a valid App Name
2024-02-14 09:29:14 +01:00
Charles-Edouard de la Vergne
f336a1988f
Code bugfix
- Fix APDU Set Slot to refresh the current key slot
- Fix Manage Security Environment bad parameter
- Fix set offset in APDU buffer (io buffers)
- Fix ui_info empty string
- Fix Nanos Main menu bad display
2024-02-14 09:29:14 +01:00
Charles-Edouard de la Vergne
4257be08b5
Code refactoring
- Update and cleanup error codes
- Add constant defines
- Fix Select missing tag
- Add missing General Feature Management Tag
- Syntax and formatting
- Remove TRY/CATCH
- Cleanup THROW/return statements
- Remove usuless goto
- improve readability
- Use ledger_assert
- Improve popup messages
- Remove flag GPG_SHAKE256; same code for all devices
- Optimize PIN counter write and correct return code
- Cleanup ux code
  - Factorization
  - Add indication in About menu for debug build
  - Use global label constants
2024-02-14 09:29:14 +01:00
Charles-Edouard de la Vergne
ce190aa9c1
Activate Standard App Files; Add App manifest 2024-02-14 09:29:13 +01:00
Charles-Edouard de la Vergne
bebae9bfa9
Use the latest SDK
- Update the Makefile
- Fix glyphs and use those from sdk
- Remove hardcoded files
2024-02-14 09:29:07 +01:00
Charles-Edouard de la Vergne
e8e46d7990
Fix crypto deprecated warnings 2024-01-08 17:21:07 +01:00
Charles-Edouard de la Vergne
1b7e959b1b
Fix scan-build issues 2024-01-08 17:21:07 +01:00
Charles-Edouard de la Vergne
91714aac94
Fix linter output and formatting 2024-01-08 17:20:43 +01:00
Alexandre Paillier
8f03f2378f
Fixed unused variable warnings 2023-10-17 16:08:46 +02:00
Alexandre Paillier
7f6abae529
Removed Blue specific code 2023-10-17 16:08:03 +02:00
Alexandre Paillier
9ec1fb2bc0
Simplify LNS-specific checks 2023-10-17 16:08:02 +02:00
Alexandre Paillier
eaaaa04aae
Fix excess elements in struct initializer warnings 2023-10-17 16:08:02 +02:00
Alexandre Paillier
ee371daaef
Fix implicit cast warnings 2023-10-17 16:07:59 +02:00
Alexandre Paillier
3c54f1d289
Fixed use of deprecated os_ prefixed functions 2023-10-17 15:32:47 +02:00
Xavier Chapron
6d38d5374f
src: sdk: usbd_impl.c: Fix build now that HAVE_LOCAL_APDU_BUFFER_FEATURE is enabled for all device 2023-10-10 17:43:14 +02:00
Xavier Chapron
a476fa0413
src: sdk.c: usbd_impl.c: Fix build with new SDK which changed the prototype of USBD_HID_DataOut_impl 2023-05-22 17:27:01 +02:00
Edouard Merle
59c4316d03 add: usb descriptor for lns+ 2023-02-15 16:45:59 +01:00