Andrew Kozlik
60f6ab9087
core: Fix mypy warnings.
2019-10-18 14:36:40 +02:00
Andrew Kozlik
39b4376b65
core/sd-protect: If writing to the SD card fails in request_sd_salt(), inform the user and allow them to retry or abort.
2019-10-18 14:34:43 +02:00
Pavol Rusnak
7644cb4c79
core: rework exception handling in boot.py
2019-10-18 10:20:11 +00:00
Pavol Rusnak
9b7a2095b3
common/defs: update coins info
2019-10-18 10:14:33 +00:00
Tomas Susanka
0f34b50c05
core/features: add sd card and protection
2019-10-17 16:04:11 +02:00
Tomas Susanka
f0cd99c545
common/protob: add sd card/protection to Features
2019-10-17 15:58:12 +02:00
Pavol Rusnak
d17ced9305
common/defs: remove ZCL as per maintainer request
2019-10-16 20:50:45 +00:00
Pavol Rusnak
d28bc3c3a6
common/defs: remove BSD - website does not exist, maintainer not reachable
2019-10-16 10:18:33 +00:00
Pavol Rusnak
3e20c51dbf
common/defs: remove MTNS - maintainer not reachable
...
website does not exist, backends don't work
2019-10-16 10:15:19 +00:00
Tomas Susanka
899a03dd1d
docs/build: update debug build on device
2019-10-15 11:26:39 +02:00
Pavol Rusnak
e16c27a401
core: update changelog
2019-10-14 11:33:18 +02:00
Pavol Rusnak
ab62715606
core: bump version to 2.1.8
2019-10-12 19:13:44 +02:00
apollo
74bcc05e2e
common/defs: add ZCR ( #611 )
2019-10-11 21:01:11 +02:00
Pavol Rusnak
76eefd026f
all: let's use -Wno-missing-braces because clang does not respect
...
initialization of structs with = {0};
2019-10-11 09:59:32 +02:00
Pavol Rusnak
1bdc83838b
legacy+core: properly handle non-printable ascii characters
...
(convert them to '_')
2019-10-10 15:58:26 +00:00
Pavol Rusnak
ab534c18d3
Merge pull request #612 from trezor/andrewkozlik/sd-protect-ui
...
SD-protect error handling
2019-10-10 15:48:27 +02:00
Andrew Kozlik
564b24191e
debug: Add left and right swipe direction to DebugLinkDecision message and unify terminology around swipe direction.
2019-10-10 14:56:49 +02:00
Andrew Kozlik
9a641b6b01
core/sd-protect: Allow user to retry if write fails.
2019-10-10 12:17:36 +02:00
Andrew Kozlik
795fa07822
core/sd-protect: Add SD_CARD_HOT_SWAPPABLE option and improve error handling.
2019-10-10 12:17:36 +02:00
Andrew Kozlik
710866074b
core/webauthn: Fix mypy warnings.
2019-10-09 18:13:48 +02:00
Andrew Kozlik
c25a41aa57
core: Fix mypy warnings in FatFS and SD salt code.
2019-10-09 17:07:25 +02:00
Andrew Kozlik
5401f88d52
core/webauthn: Fix user input timeout bug.
2019-10-09 15:18:25 +02:00
Tomas Susanka
a2fed79f7e
Merge pull request #603 from trezor/tsusanka/groups-info
...
Small refactor in Info dialog
2019-10-09 10:15:34 +02:00
Andrew Kozlik
e385eae433
core/webauthn: Use popups for webauthn error messages instead of confirmation dialogs to simplify device testing.
2019-10-08 13:29:15 +02:00
Andrew Kozlik
8ce8916beb
core/webauthn: Remove AUTOCONFIRM option.
2019-10-08 13:29:04 +02:00
Sirak Ghazaryan
8317774e06
common/defs: enable CRW ( #600 )
2019-10-07 14:39:37 +02:00
Tomas Susanka
29bb2dcb95
Add unit test for process_slip39 function ( #601 )
...
Add unit test for process_slip39 function
2019-10-04 21:57:37 +02:00
Tomas Susanka
1068acae40
core/tests: assert secret in process_slip39 test
2019-10-04 13:47:52 +00:00
Tomas Susanka
74a283c271
core/recovery: small refactor in Info dialog
2019-10-04 15:21:39 +02:00
Andrew Kozlik
ba9eee3b8f
core, legacy: Don't allow change_pin if device is not initialized.
2019-10-04 13:54:43 +02:00
Tomas Susanka
75dfcacc21
core/tests: add unit test for process_slip39 function
...
updates #542
2019-10-03 16:54:35 +02:00
matejcik
861e999425
core: draft unit test for process_slip39
2019-10-03 16:01:01 +02:00
Tomas Susanka
07b4f6e399
core/recovery: remove unused get/set_slip39_threshold
2019-10-03 09:57:35 +00:00
Pavol Rusnak
adbec13779
core/sd_salt: fix bug introduced in ede1a0bae3
2019-10-02 16:46:42 +00:00
Pavol Rusnak
04466402ce
core/monero: use const where possible
2019-10-02 15:45:36 +00:00
Pavol Rusnak
ed0336c0a9
core/monero: add gc.collect before large allocations in bulletproof code
2019-10-02 15:45:33 +00:00
Pavol Rusnak
5f980b50a0
core/monero: refactor bulletproof look-up-tables
2019-10-02 15:43:03 +00:00
Pavol Rusnak
ede1a0bae3
core/sd_salt: introduce _get_device_dir, _get_salt_path
...
prefix dialog functions with underscore
2019-10-02 15:39:42 +00:00
Pavol Rusnak
2217b680e3
core: update changelog
2019-10-02 10:00:10 +00:00
Pavol Rusnak
2e877b5762
core: refactor fido2 stuff into webauthn/fido2
2019-10-01 14:02:28 +00:00
Tomas Susanka
6b8f63c624
docs: improve tests documentation
2019-10-01 15:14:36 +02:00
matejcik
3c62db2696
stellar: fix ManageDataOp value padding
2019-10-01 15:12:37 +02:00
Andrew Kozlik
18998ff42f
core/webauth: Remove "alg" parameter validation for key-agreement public keys to avoid compatibility issues.
2019-10-01 12:05:14 +02:00
Andrew Kozlik
4a81101c84
core/webauthn: Modify error handling to match fido2-tests.
2019-10-01 11:55:36 +02:00
Andrew Kozlik
9537bc40a5
core/webauthn: Use ECDH_ES_HKDF_256 instead of ES256 as the algorithm type for key-agreement keys.
...
ECDH_ES_HKDF_256 is the wrong type to use, since the key-agreement does not use HKDF, but ES256 is even more wrong, because it is an ECDSA type rather than an ECDH type. Currently there is no correct algorithm type defined. ES256 is used by libfido2, whereas ECDH_ES_HKDF_256 is used by Chrome, YubiKey and SoloKey, so it has the majority.
2019-09-30 19:37:46 +02:00
Pavol Rusnak
69142e56e7
core/tests: don't use curl, use wget
2019-09-30 12:46:00 +00:00
Andrew Kozlik
500401d81f
core/webauthn: Place a 500 ms timeout on CTAP HID continuation packets.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
0495d18b1e
core/webauthn: Fix CTAP HID protocol to correctly handle invalid channel IDs and interleaving packets from different channels.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
9ea8136545
u2f: Add keepersecurity.eu to knownapps.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
e4c13b6357
u2f: Store hashes of U2F application parameters instead of pre-images.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
6a33889706
common/webauthn: Add new URLs for gandi.net and Slush Pool.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
528ee9ccf1
core/webauthn: Ensure user-presence option is not present in MakeCredential requests.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
e341f133a3
core/webauthn: Add length checks in CTAPHID protocol.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
ae70741e48
core/webauthn: Add more type checking for CBOR command parameters and return CTAP2_ERR_CBOR_UNEXPECTED_TYPE.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
5ca4ed2347
core/webauth: Add _AUTOCONFIRM option for testing.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
7ad1467dbf
core/webauthn: Process debuglink signals in Fido2ConfirmGetAssertion.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
3d91cb5c5b
core/webauthn: Return ERR_MISSING_PARAMETER instead of generic error.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
eaf63fff45
core/webauthn: In GetAssertion do not return user ID for server resident credentials.
2019-09-26 19:02:29 +02:00
Andrew Kozlik
f54c968039
core/webauthn: Validate U2F key handle length.
2019-09-25 21:06:36 +02:00
Andrew Kozlik
638a861137
core/webauthn: Add U2F_V2 to authenticatorGetInfo supported versions.
2019-09-25 20:00:11 +02:00
Andrew Kozlik
cf6949332f
core/webauthn: Claim that PIN is set even when it's not, because login.live.com shows an error, but doesn't instruct the user to set a PIN.
2019-09-25 20:00:11 +02:00
Andrew Kozlik
5e99058832
common/webauthn: Add webauthn RP ID for google.com.
2019-09-25 19:59:59 +02:00
Pavol Rusnak
40c66e6d85
core: handle removal of non-existing PIN in require_confirm_change_pin
2019-09-25 17:35:37 +00:00
Pavol Rusnak
ad76b5fb9f
core: regenerate mocks
2019-09-25 10:27:04 +00:00
Pavol Rusnak
dcff4ade01
core: use set_clr_card_detect to disable SD card pull-up resistor
2019-09-25 12:13:53 +02:00
Pavol Rusnak
6c14ee7ec0
core: initialize fatfs only after we know the SD card is powered
2019-09-25 12:13:52 +02:00
Pavol Rusnak
7394ecfa77
core: add exist_ok parameter to fatfs.mkdir
2019-09-25 12:13:52 +02:00
Pavol Rusnak
d393fc6e85
Revert "core: replace BITCOIN_ONLY with a constant only in src/trezor/utils.py"
...
This reverts commit b9e7e93bcf
.
Unfortunately this does not work, compiler cannot see it is a literal constant,
so it won't get optimized out, even when we use const(0). Also const(False)
is not supported at all.
2019-09-25 12:05:13 +02:00
Tomas Susanka
f53694c3fe
core/recovery: rename variable and add a comment in Info button
2019-09-24 16:12:19 +02:00
Tomas Susanka
6c6bd44ee8
core/recovery: fix Info button when the threshold was reached ( #566 )
2019-09-24 16:10:09 +02:00
matejcik
65d2a55bff
core/recovery: improve comment
2019-09-24 14:07:46 +02:00
matejcik
02ee0b63c0
core/recovery: fix type signature of _process_words
2019-09-24 14:07:08 +02:00
matejcik
1c53c2bdf2
core/recovery: allow changing word count again ( fixes #554 )
2019-09-24 14:04:51 +02:00
Tomas Susanka
7f959250e7
Merge pull request #563 from trezor/tsusanka/562-fix-info-btn
...
core/recovery: fix Info dialog
2019-09-24 13:20:14 +02:00
ciny
1337ff97b7
core: fixed confirmation screen during advanced slip39 reset flow
2019-09-24 12:11:18 +02:00
Tomas Susanka
51bf0dde12
core/recovery: fix Info dialog
...
closes #562
2019-09-24 11:23:29 +02:00
Pavol Rusnak
78041d261b
crypto: refactor bip39 api
2019-09-23 17:56:36 +02:00
Andrew Kozlik
524a2ac721
core: Show success dialogs in sd-protect.
2019-09-23 10:38:58 +02:00
Andrew Kozlik
a7485c0840
core: In sd-salt and webauthn error dialogs replace "X" button with "Close" button.
2019-09-23 10:38:58 +02:00
Andrew Kozlik
de74750569
core: Show success and failure dialogs in change-pin.
2019-09-23 10:38:58 +02:00
Pavol Rusnak
b9e7e93bcf
core: replace BITCOIN_ONLY with a constant only in src/trezor/utils.py
2019-09-22 15:07:04 +02:00
Pavol Rusnak
bb4dd3cf18
core: respect PYOPT in firmware build
2019-09-20 23:35:47 +02:00
matejcik
03f1403c93
core: clean up backup type handling in reset_device
2019-09-20 18:00:14 +02:00
matejcik
78ecc38b1b
core: fix BIP39 backup
...
Refers to #550 . Not marking fixed because we need more tests.
2019-09-20 17:14:59 +02:00
Tomas Susanka
eca0a719db
core: bump version to 2.1.7
2019-09-20 15:00:34 +02:00
Pavol Rusnak
702f865e8d
core/webauthn: let's use Self Attestation for now
2019-09-20 12:07:49 +02:00
Tomas Susanka
5d32fc37ae
core/changelog: complete 2.1.6 changelog
2019-09-20 12:07:11 +02:00
Andrew Kozlik
576a211c3d
core: Clarify the messages on the screens and get rid of overflows.
2019-09-20 12:06:32 +02:00
Tomas Susanka
bf518665a0
Merge pull request #546 from trezor/tsusanka/1of1
...
core: enable 1of1 in reset device
2019-09-20 10:37:37 +02:00
Tomas Susanka
e25686e079
core: enable 1of1 in reset device
...
updates #500
2019-09-20 10:12:33 +02:00
Tomas Susanka
871e159bee
core/recovery: remove group threshold from storage
2019-09-20 09:47:15 +02:00
Tomas Susanka
6731d1bbf2
core/recovery: remove word count and backup type
2019-09-20 09:46:49 +02:00
Tomas Susanka
cf5a794436
core/storage: swap arguments in recovery_shares.set
2019-09-20 09:22:30 +02:00
Tomas Susanka
6938d2b238
Merge pull request #541 from trezor/ciny/slip39_various_fixes
...
core: various fixes to slip39
2019-09-20 09:20:31 +02:00
Pavol Rusnak
39a1e308a0
core/webauthn: change the default icon
2019-09-20 00:33:48 +02:00
Andrew Kozlik
9efc3b4431
core/webauthn: Use basic attestation in FIDO2 MakeCredential responses.
2019-09-19 20:28:51 +02:00
Pavol Rusnak
8da121ff5c
core+python: regenerate coins
2019-09-19 20:17:35 +02:00
matejcik
e14edd77a9
core: simplify confirm_share_words
2019-09-19 17:34:02 +02:00
matejcik
e4ac47b0b3
core: simplify fetch_slip39_remaining_shares
2019-09-19 17:27:23 +02:00
Andrew Kozlik
8024f6d069
core/storage: Rename APP_FIDO2 to APP_WEBAUTHN.
2019-09-19 17:17:22 +02:00
Pavol Rusnak
68513a0b39
Merge pull request #538 from trezor/andrewkozlik/fido2-signcount
...
Disable FIDO2 signature counter for some relying parties
2019-09-19 17:00:51 +02:00
ciny
cb029fa905
core: various fixes to slip39
2019-09-19 16:42:10 +02:00
Tomas Susanka
cefb1cf4fd
core: refactor slip39
2019-09-19 16:38:29 +02:00
Andrew Kozlik
315a30b42b
core/webauthn: Disable FIDO2 signature counter for some relying parties
2019-09-19 16:16:58 +02:00
Pavol Rusnak
649d14898f
core/tests: remove also sdcard files in test runner
2019-09-18 19:14:35 +02:00
Andrew Kozlik
a5f5a1709f
core/tests: Increase sleep to 30 after emulator launch to allow for FatFS.mkfs.
2019-09-18 18:55:58 +02:00
Andrew Kozlik
f5ea81f905
core: Move some PIN-related functions to apps.common.request_pin and implement verify_user_pin().
2019-09-18 18:55:58 +02:00
Andrew Kozlik
262434ea1b
python/tests: Add SD protection device test.
2019-09-18 18:55:58 +02:00
Andrew Kozlik
6350b1c61c
core: Implement SD card protection.
2019-09-18 18:55:58 +02:00
Andrew Kozlik
06fc676cc9
common/messages: Add SdProtect message.
2019-09-18 18:53:42 +02:00
Andrew Kozlik
4f01003637
storage: Add external salt parameter to unlock() and change_pin().
2019-09-18 18:53:42 +02:00
Pavol Rusnak
69d936a390
core: remove unused script
2019-09-18 17:23:27 +02:00
Tomas Susanka
5c9fd5875a
core/recovery: inform about ToS
...
updates #495
2019-09-18 12:26:53 +02:00
Andrew Kozlik
b89a9dc590
core: Implement credential management.
2019-09-17 18:32:31 +02:00
Andrew Kozlik
091053507d
common/messages: Add credential management message.
2019-09-17 18:32:31 +02:00
Pavol Rusnak
650db2a5c0
ci: add u2f tests to CI
2019-09-14 14:47:45 +02:00
Pavol Rusnak
9414a2b2f5
tests: fix file permissions
2019-09-14 14:41:12 +02:00
Andrew Kozlik
5472499326
core/webauthn: Process debuglink signals in dialogs ( #519 )
2019-09-13 18:34:23 +02:00
Ciny
a0180d233e
Merge pull request #494 from notatestuser/improve-binance-ux
...
Binance UX improvements
2019-09-13 15:05:55 +02:00
Tomas Susanka
e4c8cb1315
core: move public_key_to_wif to helpers
2019-09-13 12:55:04 +02:00
Tomas Susanka
adedb7df97
core: remove underscores in symbols used externally
...
closes #504
2019-09-13 12:55:04 +02:00
Pavol Rusnak
2711ce2a3d
Merge pull request #394 from trezor/andrewkozlik/fido2-squashed
...
Add FIDO2 support
2019-09-13 11:20:48 +02:00
Tomas Susanka
75c539ec55
all: replace /bin/bash with /usr/bin/env bash
2019-09-12 17:35:55 +02:00
matejcik
cad297ed36
style: fix weirdness in modtrezorio-fatfs.h
2019-09-12 16:49:51 +02:00
Andrew Kozlik
58c2691ad9
core/pin: Avoid flicker in remaining time message.
2019-09-12 12:04:01 +02:00
Andrew Kozlik
6ee1ea0fde
core/webauthn: Add README.md.
2019-09-12 12:04:01 +02:00
Andrew Kozlik
26193245d4
core/webauthn: Generate random part of U2F key handles with uniform distribution.
2019-09-12 12:04:01 +02:00
Andrew Kozlik
5020ae9757
core/tests: Test SLIP-0022 FIDO2 credential decode.
2019-09-12 12:04:01 +02:00
Andrew Kozlik
70fe14e84c
core/webauthn: Implement CTAP2 protocol for FIDO2 support.
2019-09-12 12:04:01 +02:00
Andrew Kozlik
6366f3ac0d
core/storage: Implement storage of FIDO2 resident credentials.
2019-09-12 11:46:19 +02:00
Andrew Kozlik
de183849b9
core/webauthn: Implement SLIP-0022 FIDO2 credential ID format.
2019-09-12 11:46:13 +02:00
Andrew Kozlik
f658958057
core/ui: Add ui.alert() for CTAP WINK command.
2019-09-11 15:33:16 +02:00
Andrew Kozlik
509a815f73
core/ui: Implement multi-page confirmation screen.
2019-09-11 15:33:16 +02:00
Andrew Kozlik
1f58ee7ae9
core/ui: Add text_center_trim_left() and text_center_trim_right().
2019-09-11 15:33:16 +02:00
Andrew Kozlik
84674a7463
core/usb: Add write_blocking() to trezor.io.HID.
2019-09-11 15:33:16 +02:00
Andrew Kozlik
5cbbcd0ce7
core/ui: Add offset parameter to ui.pulse() and specify the pulse rate in terms of period.
2019-09-11 15:33:16 +02:00
Andrew Kozlik
2142b37f86
core/usb: Ensure that USB interface is not busy before writing.
2019-09-11 15:33:16 +02:00
Pavol Rusnak
6ad3294f31
core: fix visibility of apps.common.device.U2F_COUNTER
2019-09-11 09:51:51 +02:00
Pavol Rusnak
e7955357b0
core: fix style
2019-09-10 13:48:25 +02:00
Pavol Rusnak
898c421752
core: enable debuglink+webauth together in the emulator firmware
2019-09-09 17:59:49 +02:00
Pavol Rusnak
a635ba6bff
build: clean up build-docker scripts a little
2019-09-08 16:21:16 +02:00
Milan Rossa
f962a18785
core: enhance testing runners
2019-09-07 11:29:55 +02:00
Pavol Rusnak
f87d033345
core: rename PROFILING to TREZOR_PROFILING in trezor_cmd.sh
2019-09-07 11:22:21 +02:00
Tomas Susanka
3cb023ec21
core: add Capabilities to 2.1.5 changelog
2019-09-06 11:05:07 +02:00
Tomas Susanka
b7d2fa9643
core: add Binance to 2.1.5 changelog
2019-09-06 10:57:51 +02:00
Tomas Susanka
c66a1e7780
Merge pull request #497 from romanz/segwit-multisig
...
core/wallet: fix segwit multisig comment
2019-09-05 10:59:21 +02:00
Roman Zeyde
cb04f5774b
core/wallet: fix segwit multisig comment
2019-09-04 13:34:30 +03:00
Pavol Rusnak
bfe01707b1
build: add BITCOIN_ONLY variable to docker build scripts
2019-09-04 12:16:55 +02:00
Luke Plaster
9c2d911dcb
core: improve binance ux
2019-09-04 12:21:25 +08:00
Pavol Rusnak
9d5bac50fd
core: alphabetically order files in SConscript files
2019-09-03 18:15:47 +02:00