Commit Graph

507 Commits (066d4b4e9adad4eef1ccf83d577d1563eb0cb977)

Author SHA1 Message Date
Pavol Rusnak 14b0d4439a
embed: add GPLv3 source code headers
7 years ago
Pavol Rusnak db141fbc14
src/trezor: rework PIN progress update
7 years ago
Pavol Rusnak 2bb9d80c18
embed/unix: implement nice background into emulator
7 years ago
Pavol Rusnak 64f7089d45
embed/extmod/modtrezorui: implement proper backlight
7 years ago
Pavol Rusnak 35e1135c95
embed/extmod/modtrezorutils: add symbol() func
7 years ago
Pavol Rusnak fae8ffda9f
embed/trezorhal: simplify systick, remove microsecond precision
7 years ago
Pavol Rusnak 02358b3932
embed/trezorhal: move systick from vendor to trezorhal
7 years ago
Pavol Rusnak 21bb815945
embed/trezorhal: move mpu to trezorhal - enable it in firmware
7 years ago
Pavol Rusnak 2bebd0eec5
embed/trezorhal+unix: add copyright headers
7 years ago
Pavol Rusnak 8e3e1837d1
embed/firmware: call display_clear in main
7 years ago
Pavol Rusnak 3eab20e278
embed: refactor MIN/MAX macros in common.h
7 years ago
Pavol Rusnak d5ab82ae2b
embed/extmod/modtrezorui: refactor DISPLAY_OFFSET
7 years ago
Pavol Rusnak 30396f9cf0
embed/extmod/modtrezorui: refactor BUFFER_OFFSET and PIXELWINDOW structures
7 years ago
Pavol Rusnak e264090678
embed/extmod/modtrezorui: refactor DATA into DATA and PIXELDATA in display
7 years ago
Pavol Rusnak 4ad6a7a634
embed/bootloader: increase USB timeout to 500
7 years ago
Pavol Rusnak 5ded086800
embed/trezorhal: introduce jump_to_unprivileged, disable mpu in bootloader
7 years ago
Pavol Rusnak 302a31e8d2
embed/bootloader: enable mpu and drop to unprivileged mode before running a firmware
7 years ago
Pavol Rusnak 1469ede956
embed: bump versions
7 years ago
Pavol Rusnak c115faf2cd
embed/trezorhal/usb: correct handling of interface messages in usb_class_setup
7 years ago
Pavol Rusnak 7b2fd6ae4c
embed/bootloader: move Welcome! string 5px above
7 years ago
Pavol Rusnak 936f0e3e26
embed: fix 3 TODO items
7 years ago
Pavol Rusnak 8a409bd99a
embed/bootloader: move USB_IFACE_NUM to main.c
7 years ago
mcudev 0a15b03917 bootloader: fix process_msg_unknown remaining chunk calculation
7 years ago
Pavol Rusnak 34c6fb987a
embed/bootloader: better detection of broken firmware at start
7 years ago
Pavol Rusnak 9aa947d2e1
embed/extmod/modtrezorcrypto: remove redundant code in bip32
7 years ago
Pavol Rusnak 593ccdafec
embed/extmod/modtrezorcrypto: use uint32_t for HDNode int attributes
7 years ago
Pavol Rusnak 2fe0ce542f
firmware: introduce PYOPT, use it consistently in mpy-cross and in runtime, set it to 1 by default
7 years ago
Pavol Rusnak fa697ba322
embed/vendorheader: add unsafe_signed_prod, use it by default
7 years ago
Pavol Rusnak 77ea31aa8a
embed/extmod/modtrezorui: revert NO_HINT change
7 years ago
Pavol Rusnak 329b7d1488
embed/extmod/modtrezorui: regenerate fonts with NO_HINTING, update rendering to subpixel precision
7 years ago
Pavol Rusnak a25af7d22a
embed/extmod/modtrezorui: refactor text bar prefill into from display.c into extmod
7 years ago
Pavol Rusnak 47c598b56e
embed/bootloader: don't show build field in version (stick to major.minor.patch)
7 years ago
Pavol Rusnak 1c5beb1c12
embed/bootloader: add information about firmware (version, vendor, etc.) to Features message
7 years ago
Pavol Rusnak 548b8cb25b
embed/trezorhal: move cmd_buffer into usb_vcp_state_t
7 years ago
Jan Pochyla 00c4da83b9 modtrezorconfig: fix has_pin
7 years ago
Pavol Rusnak e865012663
bootloader: use webusb by default
7 years ago
Pavol Rusnak 40e20e2e9d
trezorhal: fix usb class behaviour
7 years ago
Pavol Rusnak 61b4e3d6e3
trezorhal: fix typos
7 years ago
Pavol Rusnak b8b8e38765
trezorhal: rename winusb_enabled to usb21_enabled
7 years ago
Pavol Rusnak 4f44c2577b
trezorhal: add option to programatically enable/disable WinUSB
7 years ago
Pavol Rusnak d1b5a254ef
prodtest: bump release_num in usb
7 years ago
Pavol Rusnak 94fc0f7ac0
extmod: if debug build is used, disable LoadDevice, wipe storage on start, draw red square in corner
7 years ago
Pavol Rusnak 1e03a5d554
unix: start udp port for each active hid/webusb interface
7 years ago
Pavol Rusnak db71afca60
prodtest: use different release_num
7 years ago
Pavol Rusnak 488e516cbf
trezorhal: add device_class, etc. to usb object
7 years ago
Pavol Rusnak 52a942afd4
bootloader: fix anti-aliasing in install icon
7 years ago
Pavol Rusnak cf9c97288e
build: rework vendorheader handling, move them to embed/vendorheader
7 years ago
Pavol Rusnak bfa79cbfd3
firmware: update versions in version.h
7 years ago
Pavol Rusnak ebc585fd40
trezorhal: fix bug in flash_otp_write
7 years ago
Pavol Rusnak 1bf278c3ee
firmware: add vendorheader_sl_signed.bin
7 years ago
Pavol Rusnak c934109d65
boardloader, bootloader: bump versions to 2.0
7 years ago
Pavol Rusnak 0b4c703813
bootloader: update booting ui
7 years ago
Pavol Rusnak 1b712a0446
trezorhal: fix simple interface behaviour on windows
7 years ago
Pavol Rusnak 399d6d2f65
trezorhal: make webusb more robust
7 years ago
Pavol Rusnak 08c145c4da
trezorhal: fix winusb
7 years ago
Pavol Rusnak 5e4b632f14
bootloader: firmware: use "Go to" instead of "Open", because that's what Chrome uses :-/
7 years ago
Pavol Rusnak ba8224f598
trezorhal: remove configuration from usb string table
7 years ago
Pavol Rusnak 55d0416641
trezorhal: make usb stack more robust
7 years ago
Pavol Rusnak d6681efff2
trezorhal: update usb maxpower
7 years ago
Pavol Rusnak efd926208d
bootloader: refactor version formatting into format_ver
7 years ago
Pavol Rusnak c0220192d4
tools: fix binctl script
7 years ago
Pavol Rusnak 0d7f486733
bootloader: show different dialogs for firmware upgrade and vendor change
7 years ago
Pavol Rusnak 6e81a68fbe
bootloader: refactor flash erase after first chunk is received
7 years ago
Pavol Rusnak 739e4f2e45
fix release_num values
7 years ago
Pavol Rusnak b785fcce44
bootloader: revert ui color change
7 years ago
Pavol Rusnak a9f5ed9119
trezorhal: remove unnecessary casting for vstr, small ui nitpicks
7 years ago
Pavol Rusnak 1280073c04
trezorhal: remove unnecessary casting for usb strings
7 years ago
Pavol Rusnak d39ceb0d99
bootloader: fix ui_screen_done flicker
7 years ago
Pavol Rusnak d27111472e
bootloader: show fingerprint on info click
7 years ago
Pavol Rusnak 8fc65d7f32
bootloader: small UI nitpicks
7 years ago
Pavol Rusnak 117a3efbe2
bootloader: refactor fadeins/fadeouts
7 years ago
Pavol Rusnak 5538614a79
bootloader: rework onboarding
7 years ago
Pavol Rusnak 2e00c090b6
bootloader: add confirm dialogs for wipe/upgrade
7 years ago
Pavol Rusnak ae94bc95fb
bootloader: add "connect to host" screen
7 years ago
Pavol Rusnak 8ef2098763
trezorhal: unix: refactor touch get/pack functionality
7 years ago
Pavol Rusnak 2f567ee822
bootloader: rework UI
7 years ago
Pavol Rusnak f6f6e8593a
bootloader: don't crash on empty usb queue
7 years ago
Pavol Rusnak 9fcb59c3ca
trezorhal: reply with winusb guid just for interface 0
7 years ago
Pavol Rusnak ca0918dbce
trezorhal: rework winusb
7 years ago
Pavol Rusnak 00c193f5cc
trezorhal, unix: drop flash_write_{byte,word} usage, rename flash_write_{byte,word}_rel to flash_write_{byte,word}
7 years ago
Pavol Rusnak 1e7920435c
bootloader: fix flashing of non-continous firmware areas
7 years ago
Pavol Rusnak 089168209b
trezorhal: fix webusb landing page
7 years ago
Pavol Rusnak 919e2b9c3b
trezorhal: formatting nits in usb
7 years ago
Pavol Rusnak 9f80d5614a
trezorhal: add winusb magic to webusb interface
7 years ago
Pavol Rusnak f50afd2d2a
bootloader: add (optional) WebUSB support
7 years ago
Pavol Rusnak 5ef0967857
trezorhal: small fixes to USB stack
7 years ago
Pavol Rusnak aa8c192040
trezor.io: remove unused fields from WebUSB class
7 years ago
Pavol Rusnak 8bf19b4c92
trezorhal: refactor trezor.io USB stuff into more files, add WebUSB
7 years ago
Pavol Rusnak d927b80b50
trezorhal: more tests in usb
7 years ago
Pavol Rusnak 51db0c4099
fix typo
7 years ago
Pavol Rusnak 311af09236
trezor.io: fix typo in VCP class
7 years ago
Pavol Rusnak 9d10a7a508
trezorhal: more switch formatting
7 years ago
Pavol Rusnak 30ff61b588
trezorhal: add configuration, interface strings to usb descriptors, minor typos
7 years ago
Pavol Rusnak 08376a4a54
fix typo
7 years ago
Pavol Rusnak e92440dfc8
introduce and use memzero instead of explicit_bzero
7 years ago
Pavol Rusnak 3098dc8447
unix: don't use usb_hid_write from usb_hid_read for PING/PONG
7 years ago
Pavol Rusnak fea8d53b85
trezor.io: cleanup usb code
7 years ago
Pavol Rusnak ea116d742a
use explicit_bzero where possible; update trezor-crypto
7 years ago
Jan Pochyla 2c3df7381f unix/usb: fix wur
7 years ago
Jan Pochyla 20c4900df1 modtrezorcrypto/bip39: throw less exceptions
7 years ago
Pavol Rusnak 27d9abe883
trezor.config: add public values (readable without unlock)
7 years ago
Pavol Rusnak 1530afe4ad
vendor: update trezor-crypto, adapt codebase to changes
7 years ago
Pavol Rusnak d11bbde2e1
trezor.crypto: fix sha3-{256,512} argument handling
7 years ago
Pavol Rusnak 7efef68e97
trezor.crypto: add static keyword to crc
7 years ago
Pavol Rusnak ee925f7813
prodtest: draw border on start too
7 years ago
Jan Pochyla 622cb847e5 prodtest: fix touch coordinates
7 years ago
Pavol Rusnak 7537c26c83
trezor.crypto: use mp_obj_new_str_from_vstr where we already have preallocated vstr
7 years ago
Pavol Rusnak 981ec87877
trezor.crypto: put back vstr where it makes sense (= user controlled input)
7 years ago
Pavol Rusnak 4a7592d470
trezor.crypto: remove vstr usage, refactor mp_obj_new_str_from_vstr into mp_obj_new_bytes and mp_obj_new_str
7 years ago
Pavol Rusnak b98a1db6ee
embed: cleanup unused modules
7 years ago
Pavol Rusnak fa95f0a037
trezor.crypto: implement chacha20poly1305 aka rfc7539
7 years ago
Pavol Rusnak b9d5af8c19
modtrezorcrypto: remove ssss (different implementation will be re-added later)
7 years ago
Pavol Rusnak 4cc8a5432d
bootloader: use normal/regular font rather than bold
7 years ago
Pavol Rusnak 94588dd588
modtrezorui: introduce TREZOR_FONT_PREFILL, set it to 0 in bootloader
7 years ago
Pavol Rusnak 424115967f
embed: fix wur for usb functions
7 years ago
Pavol Rusnak f1a75b36f7
vendor: update micropython to 1.9.3 release
7 years ago
Pavol Rusnak d6593e710b
apps.ethereum: implement SignMessage/VerifyMessage
7 years ago
Pavol Rusnak 333c0a633a
trezor.crypto: adopt crc32 function
7 years ago
Pavol Rusnak eff3ce2aa8
unix: use ensure, not (void)
7 years ago
Jan Pochyla 7be96048f8 unix: fix wur in usb
7 years ago
Pavol Rusnak 4b54bfbbf2
modtrezorui: change loader size to 120x120
7 years ago
Pavol Rusnak 63e999ab84
trezor.ui: introduced minwidth to display.text functions; more optimizations
7 years ago
Pavol Rusnak 47f5cba439
flash/sdcard: introduce wur, simplify code
7 years ago
Pavol Rusnak 5e93cca0a9
WIP
7 years ago
Jochen Hoenicke beef9ecfb5 Moved flash_unlock to norcow_update
7 years ago
Pavol Rusnak 6aae87437f
modtrezorui: draw bars under letters
7 years ago
Pavol Rusnak 11a3ff055c
boardloader/bootloader: typo
7 years ago
Pavol Rusnak 4584861385
trezor.ui: introduce ui.SIZE
7 years ago
Pavol Rusnak 79a3f84c3c
modtrezorui: invert FONT macro inclusion logic
7 years ago
Pavol Rusnak 80707f195b
modtrezorui: small cleanup
7 years ago
Pavol Rusnak 7504366a02
bootloader: simplify vtrust code
7 years ago
Jochen Hoenicke c0cd252c83 Store pin as integer
7 years ago
Pavol Rusnak 125ab8471c
trezorhal: store image fingerprint in the image_header structure
7 years ago
Pavol Rusnak be302480fd
modtrezorcrypto: cleanup random
7 years ago
Pavol Rusnak 1a32e46e5d
bootloader: cleanup ui code
7 years ago
Pavol Rusnak 5e476b856e
unix: implement sdcard, add unit test
7 years ago
Pavol Rusnak 48ef409fdb
modtrezorio: remove mocks
7 years ago
Pavol Rusnak b4933f969e
bootloader: don't downgrade firmware below fix_version in the current firmware
7 years ago
Pavol Rusnak 965aa73b63
trezorhal: introduce fix_version in image header (version of last critical bugfix)
7 years ago
Pavol Rusnak e8f70ed4af
pin: implement graphics pin timeout
7 years ago
Jochen Hoenicke 87f7054e46 Added callback for PIN timeout
7 years ago
Jochen Hoenicke 9f2bbb0e1a Removed references to pin fail area
7 years ago
Jochen Hoenicke 497021f2ef storage: New pin fail section inside NORCOW
7 years ago
Pavol Rusnak b7444ac13e
modtrezorconfig: fix wipe error
7 years ago
Pavol Rusnak 2f719526e7
bootloader: implement vendor keys lock
7 years ago
Pavol Rusnak 45c290d24c
trezorhal: introduce vendor_keys_hash, use it in compare_to_current_vendor_header
7 years ago
Pavol Rusnak 70ac202d7a
modtrezorcrypto: add trezor.crypto.hashlib.blake256
7 years ago
Pavol Rusnak 34322d5fb6
firmware: enable stack protector (except nlr stuff)
7 years ago
Pavol Rusnak 1aba175d7d
build: adapt to new trezor-crypto changes
7 years ago
Pavol Rusnak 7b9fcf98ae
drop embed/extmod/modtrezorcrypto/trezor-crypto symlink
7 years ago