Commit Graph

337 Commits (c0c2718c1e4ca449bca492eb69539ff5ac95e2cb)

Author SHA1 Message Date
matejcik fa757f4b7f core: improve type annotation for bip32.derive_path
4 years ago
matejcik 0c3bc53aee core: clean up types for field caching, fix count_message
4 years ago
matejcik f723dca7b1 core: enable PYSTACK
4 years ago
matejcik 85d74ece76 core: implement synchronous v1 codec
4 years ago
Andrew Kozlik 4005f4832f core/embed: Set VCP write timeout to 0.
4 years ago
Ondrej Mikle 33d2bf417b core: replace bootloader only in production. Fix device for T1 core port JLink upload
4 years ago
Tomas Susanka f8b2f0bb7b changelogs: change also bootloader changelogs to the new format
4 years ago
Tomas Susanka 56fe5adcfc Merge branch 'release/2020-06'
4 years ago
Pavol Rusnak 179645e3ad core: unify usage of TREZOR_MODEL
4 years ago
Ondrej Mikle c877dc8dd6 core: port storage to T1
4 years ago
matejcik 872e0fb0e0 core: lower scheduler resolution to milliseconds
4 years ago
matejcik 2cedc687e6 core: disable trezor-crypto BIP32 cache
4 years ago
matejcik 837c4df61f core: expose storage_is_unlocked() as config.is_unlocked()
4 years ago
matejcik 87433995b0 core: add BITCOIN_ONLY to mock file
4 years ago
Tomas Susanka 8859d103f4 core, legacy: bump versions
4 years ago
Ondřej Vejpustek 24ceb0ab6b crypto/bignum: change limb size to 29, add tests
4 years ago
Ondrej Mikle b01b24f090 core: change startup firmware file from .s to .S which enables preprocessing and fixes TT boot
4 years ago
Ondrej Mikle 10f0f107e0 core: Adds T1 core port FW flashing options for for openocd and jlink
4 years ago
Ondrej Mikle 0d65d684f0 core: T1 port can run on T1 bootloader with MEMORY_PROTECT=0
4 years ago
matejcik aa52fc3903 core/extmod: drop unused rfc6979 module
4 years ago
matejcik 050936d0d7 core: enable finalizers on extmod classes
4 years ago
matejcik 7f2e7b0003 core: add Ethereum constants to mocks
4 years ago
Ondrej Mikle 7eddafe487 core: better formatting for common parts of T1 and TT header
4 years ago
Ondrej Mikle c4c341b3f9 core: setup stack when running core on T1
4 years ago
Ondrej Mikle e429085e96 core: copy firmware header for T1 port into final binary
4 years ago
Ondrej Mikle d8115a7992 core: firmware header for T1 port
4 years ago
Pavol Rusnak 25cc836660
core/extmod: fix build of modtrezorui when TREZOR_MODEL is set to '1'
4 years ago
Tomas Susanka 47f104bceb core, legacy: bump versions
4 years ago
Ondřej Vejpustek c461692f3a core: implement random delay interrupts
4 years ago
matejcik 2ccebd3175 core: raise SystemExit when exitting emulator (now that sys.exit is removed)
4 years ago
matejcik 4bddeefea0 core: unify mpconfigports for emulator and board
4 years ago
matejcik d0f709b8cc core: fix and use MAKEMODULEDEFS instead of explicit registration
4 years ago
matejcik a6976355c3 core: remove readline from built firmware
4 years ago
Pavol Rusnak a7806d08d7
core/crypto: remove unused bip32.deserialize function
4 years ago
Pavol Rusnak 1695228d80
core/crypto: remove unused serialize_private function
4 years ago
Pavol Rusnak f07ff17fad
core/crypto: add missing field to Blake2b constructor
4 years ago
Pavol Rusnak 336a417233 core/bootloader: distinguish between a vendor change and downgrade with wipe
4 years ago
Ondrej Mikle 634ed5aabc
core: commands for flashing via JLink (#911)
4 years ago
matejcik 3789a3372b core/sdcard: modify exception handling in fatfs
4 years ago
Andrew Kozlik bfd834d1de storage: Add storage_ensure_not_wipe_code().
4 years ago
Dusan Klinec 2658e253fa xmr/bp: memory optimizations and improvements
4 years ago
Tomas Susanka 86b010a18b
Merge pull request #878 from trezor/matejcik/fatfs-corruption
4 years ago
matejcik 9ab84d2455 core/tests: thoroughly test modified APIs
4 years ago
matejcik b24411b900 core/sdcard: unmount instance when powering off sdcard
4 years ago
matejcik c81be584fb core/fatfs: ensure functions can only be called on a mounted filesystem
4 years ago
matejcik fa746e2990 core/fatfs: rework low-level FatFS API
4 years ago
Pavol Rusnak c896f02eb3
core/boardloader: use SRAM as SD card read buffer
4 years ago
Andrew Kozlik 2133f7cf29 core: Prevent data loss when writing to USB VCP.
4 years ago
Pavol Rusnak 39ce100608
Merge pull request #864 from trezor/prusnak/bootloader-text-break
4 years ago
matejcik 4ed6487a19 core/sdcard: add out-of-bounds checks to emulator
4 years ago
matejcik d0b1b171f1 core/sdcard: ensure emulator initializes the SD card when first needed
4 years ago
matejcik 5bd8d9b5bb core/sdcard: make allocating new SD card for emulator fast
4 years ago
matejcik b2084a19be core/trezorio: move sdcard functions to a submodule
4 years ago
matejcik 30529d218d core/sdcard: change SDCard methods to plain functions
4 years ago
matejcik 06b89c57c5 core/sdcard: return proper disk status flags to fatfs
4 years ago
Pavol Rusnak dc66bbe3d5
core/bootloader: split long vendor string
4 years ago
Pavol Rusnak 74802a107e
core/modtrezorui: add display_text_split
4 years ago
Pavol Rusnak c4babd3c0b
Merge pull request #846 from trezor/bootloader-read-retry
4 years ago
Pavol Rusnak 581e46ff87
Merge pull request #845 from trezor/prusnak/webusb-popup
4 years ago
Pavol Rusnak 2958a97c87
Merge pull request #830 from trezor/tsusanka/fw-upgrade
4 years ago
Pavol Rusnak 63dfd6c6ab
core/bootloader: make read more benevolent and read error more helpful
4 years ago
Pavol Rusnak 07cd73ce57
core: show webusb popup only in bootloader and only if firmware is not installed
4 years ago
matejcik c14429c445 all: shut down emulator on error_shutdown
4 years ago
Tomas Susanka 2c0504ad1c
Merge pull request #803 from trezor/passphrase
4 years ago
Pavol Rusnak 32f8f1cb61
core/embed: update fatfs to 0.14; use upstream version
4 years ago
Pavol Rusnak 73ed2f3450
legacy: small nitpicks related to the new passphrase handling
4 years ago
Tomas Susanka 1343583d21
core: bump version to 2.3.0
4 years ago
Tomas Susanka a02d7e3daf core/bootloader: request vendor header first
4 years ago
matejcik d28e33ef02 core/headertool: support generating vendor headers with explicit size
4 years ago
Pavol Rusnak 6dbed1424f
core+legacy: update nanopb api to version 0.4
4 years ago
Pavol Rusnak 3eb7775659
core/bootloader: regenerate protobuf messages
4 years ago
Pavol Rusnak 4647e7d686
core+legacy: use nanopb generator from pipenv
4 years ago
matejcik 75264a07a8
Emulator launcher scripts (#796)
4 years ago
Pavol Rusnak 3de1b3aa54
core/embed: switch to unprivileged in main.c
4 years ago
Pavol Rusnak 7a2e0c3412
core/embed: don't call functions via supervisor if in privileged mode
4 years ago
matejcik 27c4c2dd50 core: do not let frozen emulator import live files
4 years ago
matejcik 9341f0d584
core: improve building of vendor headers
4 years ago
Pavol Rusnak 500156b9ba
core/embed: don't use local copy of inflate
4 years ago
Tomas Susanka 7c41b40dff
tests: introduce UI tests for core with diffs (#784)
4 years ago
Milan Rossa 8b31c6fcf4
core: increase stack size for unix port
5 years ago
Pavol Rusnak 9bc3af08b2
core: update mpconfigport.h from upstream (for both stm32 and unix)
5 years ago
Jan Pochyla 655ec0a70c core/unix: update main.c from upy 1.12
5 years ago
Jan Pochyla 7deade5a10 core/firmware: PendSV_Handler is defined in pendsv.c
5 years ago
Jan Pochyla ecc4313a34 core/usb: avoid naks in hid/webusb rx interfaces
5 years ago
Tomas Susanka 51ef963738 tests: introduce UI tests for core
5 years ago
Pavol Rusnak 8572a5a942
core: fix interrupt usage in usbd_conf
5 years ago
Ondrej Mikle 0064fda203
core: check whether USB structures are correct to avoid faults in shutdown
5 years ago
Pavol Rusnak 6198509948
core: bump version to 2.2.1; update changelog
5 years ago
Milan Rossa 6d932a8a1d core/embed/unix/flash: Don't reopen flash emulation file.
5 years ago
Pavol Rusnak a9454b216d
core: move delay.c from trezorhal to firmware, fix prodtest build
5 years ago
Pavol Rusnak a9e5149b95
core: reorganize source code to allow boardloader build
5 years ago
Pavol Rusnak 046ff607d3
Merge branch 'sdcard-dma'
5 years ago
Milan Rossa 91007bafe9 core/unix/main: Print memory info (peak memory) when TREZOR_LOG_MEMORY env var is set. Part of #194
5 years ago
Pavol Rusnak 43da0d754a
core/embed: decrease SD card operations timeout to 5s
5 years ago
Pavol Rusnak b34675401c
core/embed: add explicit fault handlers
5 years ago
Pavol Rusnak c8c27dcd2f
core/embed: enable/disable SDIO/DMA interrupts via supervisor calls
5 years ago
Pavol Rusnak 990a91cd13
core/embed: enable DMA for SDIO operations
5 years ago
Andrew Kozlik a3b608d8dd storage, core: Reveal the wipe code status after the device is unlocked.
5 years ago
Andrew Kozlik a168d661cf core: Add support for ChangeWipeCode message.
5 years ago
Pavol Rusnak d761a57689
storage: introduce FLAGS_APPID
5 years ago
Pavol Rusnak 1caae698ca
storage: make FLAG_PUBLIC and FLAGS_WRITE part of public API
5 years ago
Pavol Rusnak 4462fb522c
core/nem: don't use mp_obj_new_str_of_type
5 years ago
Pavol Rusnak 58a865dd05
core/embed/unix: fix sdcard_init behaviour
5 years ago
Pavol Rusnak c617035a3e
core: bump version to 2.1.9
5 years ago
Pavol Rusnak 5fe2f7e59c common/protob: remove ButtonRequest.data field
5 years ago
Tomas Susanka 0511cc8b8c core: add final mypy fixes!
5 years ago
Pavol Rusnak ab62715606
core: bump version to 2.1.8
5 years ago
Pavol Rusnak 1bdc83838b
legacy+core: properly handle non-printable ascii characters
5 years ago
Andrew Kozlik c25a41aa57 core: Fix mypy warnings in FatFS and SD salt code.
5 years ago
Pavol Rusnak 5f980b50a0
core/monero: refactor bulletproof look-up-tables
5 years ago
Pavol Rusnak dcff4ade01
core: use set_clr_card_detect to disable SD card pull-up resistor
5 years ago
Pavol Rusnak 7394ecfa77
core: add exist_ok parameter to fatfs.mkdir
5 years ago
Pavol Rusnak 78041d261b
crypto: refactor bip39 api
5 years ago
Tomas Susanka eca0a719db core: bump version to 2.1.7
5 years ago
Andrew Kozlik 6350b1c61c core: Implement SD card protection.
5 years ago
Andrew Kozlik 4f01003637 storage: Add external salt parameter to unlock() and change_pin().
5 years ago
Pavol Rusnak 2711ce2a3d
Merge pull request #394 from trezor/andrewkozlik/fido2-squashed
5 years ago
matejcik cad297ed36 style: fix weirdness in modtrezorio-fatfs.h
5 years ago
Andrew Kozlik 84674a7463 core/usb: Add write_blocking() to trezor.io.HID.
5 years ago
Andrew Kozlik 2142b37f86 core/usb: Ensure that USB interface is not busy before writing.
5 years ago
Ondrej Mikle 59ee3750d1
core/modtrezorio: raise exception when directory listing fails on disk error or other error
5 years ago
Ondrej Mikle 24359ea074
core/modtrezorio: use upstream's fix of read-after-buffer
5 years ago
Ondrej Mikle 972a96f1a0
core/modtrezorio: raise error when no space left on FAT FS
5 years ago
Pavol Rusnak 743f57afdb
core/modtrezorio: use ff_unifdef.sh preprocessor
5 years ago
Pavol Rusnak 49a98a5015
core/modtrezorio: enable FatFS.mkfs only in emulator
5 years ago
Pavol Rusnak d40b7c0385
core/modtrezorio: enable LFN+Unicode in FatFS
5 years ago
Pavol Rusnak aa8d14c0ea
core/modtrezorio: add FatFS support
5 years ago
Pavol Rusnak 324cb651c6
core+legacy: update bootloader ChangeLogs
5 years ago
Tomas Susanka f5af4e4fe0 core: bump version to 2.1.6
5 years ago
Pavol Rusnak 908bbfffef
core: remove remaning utility code for Bitcoin only firmware
5 years ago
Pavol Rusnak c815bc410c
core: remove remaning Decred/Zcash code for Bitcoin only firmware
5 years ago
Pavol Rusnak 4036f2243b
core: introduce linker script for BITCOIN_ONLY
5 years ago
Pavol Rusnak 07ef01f3e4
core: introduce BITCOIN_ONLY flag
5 years ago
Tomas Susanka 0f742bc3a7 core: bump to 2.1.5, add changelog for 2.1.4
5 years ago
Andrew Kozlik 8297b81cd5 core/crypto: Add AES mode constants.
5 years ago
Tomas Susanka 0ac0daf148 core: bump to 2.1.4
5 years ago
Andrew Kozlik 0a594ea1e9
Merge pull request #280 from trezor/andrewkozlik/slip-0021
5 years ago
Tomas Susanka 4b1955dcd3 core/embed: add hint in fatal error on unix
5 years ago
Tomas Susanka 6af7a6b3d6 core: bump version to 2.1.3
5 years ago
Andrew Kozlik 217c910b4b cardano: Implement SLIP-0023 and add SLIP-0039 support for Cardano.
5 years ago
Tomas Susanka d2597d54c1 core/shamir: persistence
5 years ago
andrew 5f604b5fea core/seed: Add SLIP-0021 implementation and tests.
5 years ago
Jan Pochyla 0f6f05e4b7 core/typing: fix extmod docs and mocks
5 years ago
Jan Pochyla 3af75c0b8b core/typing: improve extmod types
5 years ago
Milan Rossa 22f562e275
core: add status to main_exit function
5 years ago
Pavol Rusnak 1ec5d091fd core/usb: call wait_random just before returning the data
5 years ago
Tomas Susanka 10f15a6952 core: bump version to 2.1.2
5 years ago
Tomas Susanka 49d6a35249 core: add slip39 keyboard
5 years ago
Pavol Rusnak 312224b7a3
core: fix style
5 years ago
Pavol Rusnak e432c37df0
core/sdcard: read/write now don't return bool, but rather throw an Exception instead
5 years ago
Pavol Rusnak c8bc21a393
core: bump SD card capacity to 64MB in emulator
5 years ago
Pavol Rusnak 54d348228f
all: rename TREZOR to Trezor where possible
5 years ago
Jan Pochyla 416226648c core: rotate touch coordinates by default
5 years ago
Andrew Kozlik c2bdd1cf32 core/common: Change delay_random() to wait_random().
5 years ago
Andrew Kozlik f677a0f0db core: Use PRNG when generating random delays.
5 years ago
matejcik 835d5df175
core: reset i2c bus when detected busy
5 years ago
Roman Zeyde b538eb3375
core/secp256k1_zkp: refactor API into a Context class
5 years ago
Milan Rossa 779ff86214
core: redesign multiprofile support, add profile verbosity
5 years ago
Pavol Rusnak 11aac67c82
core: fix last commit
5 years ago
Pavol Rusnak ae749eedee
core/secp256k1_zkp: don't allocate static buffer
5 years ago
Pavol Rusnak f7053d96fe
all: remove extraneous whitespace
5 years ago
matejcik 0b50d671e1 make gen && make style
5 years ago
matejcik 482b4569f5 build: fix and auto-generate mock files
5 years ago
matejcik ffcb5e99cc mocks: fix shamir package
5 years ago
Pavol Rusnak f7d41cbbd7
core+legacy: drop NOUI and HEADLESS, SDL_VIDEODRIVER works fine
5 years ago
Pavol Rusnak 35945239eb
core/embed: use MP_ROM_INT instead of MP_OBJ_NEW_SMALL_INT where intended
5 years ago
matejcik 2e578572dd add EOS support
5 years ago
Andrew Kozlik 28c85dee8e
Merge pull request #85 from trezor/andrewkozlik/slip0039
5 years ago
Pavol Rusnak f27187e603
core: embed background images into the emulator binary
5 years ago
Pavol Rusnak 87f14965c4
core: finish frozen modules support
5 years ago
Pavol Rusnak eb1192bc2c
core: simplify emu.sh runner
5 years ago
Andrew Kozlik 0a99ad3f13 Merge remote-tracking branch 'origin/master' into andrewkozlik/slip0039
5 years ago
Pavol Rusnak 6e6ff78ce0
core: re-enable frozen modules in the emulator build
5 years ago
Andrew Kozlik e631983d6d Merge remote-tracking branch 'origin/master' into andrewkozlik/slip0039
5 years ago
Pavol Rusnak 1c00d868a9
core: bump versions of firmware to 2.1.1, bootloader to 2.0.4
5 years ago
Pavol Rusnak 2f77c53781
core: format last change
5 years ago
Pavol Rusnak a89a3bf6db
core: fix last commit
5 years ago
Pavol Rusnak c761351afa
core: add indeterminate flag to display_loader
5 years ago
Pavol Rusnak c995d9fa59
Revert "ui.display.loader: slice_span added for indeterminate loaders"
5 years ago
Dusan Klinec 9de96f6114
ui.display.loader: slice_span added for indeterminate loaders
5 years ago
Pavol Rusnak 8b06598474
core+legacy: rework code styling checks
5 years ago
Andrew Kozlik 1ee831f50c Merge remote-tracking branch 'origin/master' into andrewkozlik/slip0039
5 years ago
Andrew Kozlik c073d68a2d crypto/shamir: Improve error handling.
5 years ago
Tomas Susanka 5dc0a1ee0a core/extmod: return False or None consistently when a signature verification fails
5 years ago
Andrew Kozlik 0d21bca288 crypto: Move Shamir secret sharing to trezor-crypto.
5 years ago
Andrew Kozlik d2a399debf Merge remote-tracking branch 'core-local/andrewkozlik/slip0039' into andrewkozlik/slip0039
5 years ago
matejcik e5670856a2 MONOREPO CREATE FROM trezor-core
5 years ago