Commit Graph

489 Commits (a6410693b3109fc1a4ec0c9974151362a7732eda)

Author SHA1 Message Date
Ondřej Vejpustek 26463eb3ce feat(core): make core use ecdsa from secp256k1_zkp wherever possible
3 years ago
Pavol Rusnak 9e0cfa6783 fix(core): we don't need separate linker script for zkp
3 years ago
matejcik 32be2c09b9 feat(core): enable f-strings for micropython
3 years ago
Jan Pochyla 901580817d chore(core/rust): fixes and formatting
3 years ago
Jan Pochyla 5eefcffc7c chore(core): prepare for fuzzing targets
3 years ago
Jan Pochyla 2703d714c2 feat(core): add Rust UI components, layouts, text rendering
3 years ago
Pavol Rusnak b03b688f2d fix(core): avoid accidental build with broken stack protector (boardloader)
3 years ago
Ondrej Mikle a85d2483ff chore(legacy & core): changelogs added
3 years ago
Ondrej Mikle 0b077fea8a fix(core & legacy): explicit compiler versions
3 years ago
Ondrej Mikle e982181148 style(core & legacy): buggy compiler checks
3 years ago
Ondrej Mikle 6ea4b7b211 fix(core & legacy): better styled compiler checks
3 years ago
Ondrej Mikle 6b849b1d4d fix(core & legacy): avoid accidental build with broken stack protector
3 years ago
Martin Milata 81e66cb024 style(core/rust): enable clippy lints
3 years ago
Martin Milata bd005e33df refactor(core): decouple T1 button handling from touch
3 years ago
Jan Pochyla 2c8dec93a6 feat(core): Split unix main, link core obj into Rust test target
3 years ago
matejcik 7a17124b43 refactor(core/rust): do not rely too much on new_exception helpers
3 years ago
matejcik 5e452dc57c refactor(core/rust): propagate unsafety of raise_exception
3 years ago
matejcik 806beb77d2 feat(core/rust): improve catch_exception, make use of Rust 1.55
3 years ago
matejcik 795ed2d339 fix(core/rust): fix "unnecessary unsafe" warning
3 years ago
matejcik 31de21718f feat(core/rust): introduce Obj.is_null()
3 years ago
matejcik b666895303 feat(core/rust): catch, handle and propagate uPy exceptions
3 years ago
matejcik 8abcb6f8cc chore(core/rust): allow unused macros
3 years ago
Jan Pochyla 7c65f0357a feat(core/rust): Implement exception catching in Rust
3 years ago
Martin Milata aace875fef chore(vendor): bump micropython to 1.17
3 years ago
Martin Milata b062b95348 chore(vendor): bump micropython to 1.15
3 years ago
Martin Milata d69b23e3c5 chore(core/emulator): ignore MICROPY_UNIX_COVERAGE
3 years ago
Pavol Rusnak d153082c9c chore(vendor): bump micropython to 1.14
3 years ago
Martin Milata a007e062ab style(core): apply rustfmt
3 years ago
Tomas Susanka cec1f39a90 chore(core, legacy): bump versions
3 years ago
Martin Milata f37ca13f1a refactor(core): disable SD, SBU, fatfs for T1 build
3 years ago
Martin Milata 582e1318c4 feat(core/emulator): support protobuf messages in memory dumps
3 years ago
Martin Milata 412d06fdfe docs(core+legacy): use towncrier for generating CHANGELOG.md
3 years ago
Pavol Rusnak d35071d732 docs(core+legacy): update changelogs to new format
3 years ago
Martin Milata ceaf4da617 fix(core): explicitly refresh display on T1
3 years ago
Pavol Rusnak 3d69ca1b1b chore(vendor): update nanopb to 0.4.5
3 years ago
matejcik b41d4c71f0 feat(core/emulator): JSON memory map dump
3 years ago
matejcik fe6c131b14 feat(core/emulator): build emulator with -DSTATIC=
3 years ago
Martin Milata 81869fc4b0 chore(core): bump version to 2.4.2
3 years ago
Martin Milata f06a57237b style(core): trezorhal/random_delays.c
3 years ago
Pavol Rusnak 8cfa5da1ce
docs: fix typos in comments
3 years ago
Ondřej Vejpustek 24200e7424 fixup! fix(legacy): make RDI work on T1
3 years ago
Ondrej Mikle daa94ac941 fix(legacy): make RDI work on T1
3 years ago
Ondřej Vejpustek b8b0ae09d9 fix(core): use unprivileged shutdown where needed
3 years ago
Ondřej Vejpustek 5984fd6ad7 feat(core): jump to unprivileged mode after shutdown
3 years ago
Ondřej Vejpustek 40b4f679f9 feat(core): implement wrapper for svc_shutdown
3 years ago
Ondřej Vejpustek 311288407e docs(core): document shutdown_privileged
3 years ago
Ondřej Vejpustek 4968d7da53 feat(core): implement svc shutdown
3 years ago
Ondřej Vejpustek cca9d4b1c4 refactor(core): rename shutdown to shutdown_privileged
3 years ago
Ondřej Vejpustek 7686eb355a fix(core): fix import of random delays
3 years ago
Pavol Rusnak 69d1465e08
refactor(core): pass invert_colors to send_init_seq_ST7789V as argument
3 years ago
Pavol Rusnak 18e103bb94
style(core): refactor style of display-stm32_T
3 years ago
matejcik c06a93cba5 feat(core/rust): propagate bitcoin_only flag to Rust build
3 years ago
Jan Pochyla 8a21e3fc73 feat(core): Add Rust Protobuf codec
3 years ago
Pavol Rusnak 23aa69caea fix(core): unify Features.revision reporting with legacy
3 years ago
Martin Milata ca836b2e45 chore(core): bump version to 2.4.1
3 years ago
Martin Milata 8c6b93e0bd build(core): account for ARM unwinding info in memory layout
3 years ago
Martin Milata 20fe8552ca build(core/rust): use correct architecture for T1
3 years ago
Ondřej Vejpustek 6fd4739c5c feat(core): make random delays use chacha_drbg
3 years ago
Ondřej Vejpustek e1a5f42c81 feat(core): make chacha_drbg more robust
3 years ago
Ondřej Vejpustek 8ee17f69b3 refactor(core): move wait_random and rdi into separate file
3 years ago
matejcik e015bc0856 build(core/rust): disable nightly-only features
3 years ago
matejcik 5f4240d93c feat(core): preallocate sys.modules to an appropriate size
3 years ago
matejcik 391976bcda refactor(core/usb): do not require serial number on instantiaton of USB
3 years ago
Jan Pochyla 6257584951 feat(core): Add Rust bindings to MicroPython and trezorhal
3 years ago
mcudev e3539b0a73 core/embed/usb: add back usb fs code for t1 and redo fifo sizing
3 years ago
mcudev 6137a55b06 core/embed/usb: use all available usb endpoints and update the usb fifo sizing
3 years ago
Martin Milata ac711fb8ee style(core): use more recent type annotation syntax
3 years ago
Martin Milata 8b3ac659a0 style(core): mypy: disable implicit Optional for function arguments
3 years ago
Andrew Kozlik 2836bfc64c fix(core): Improve error handling and range checking in modtrezorconfig.
3 years ago
Andrew Kozlik 66823e2893 chore(core,legacy): Bump FIX_VERSIONs due to upgrade to storage version 3.
3 years ago
Andrew Kozlik 3084d1196d feat(core): Support 50 digit PIN and wipe code.
3 years ago
Pavol Rusnak 4649b80b44
feat(core): allow secp256k1-zkp for bitcoin-only build
3 years ago
Pavol Rusnak d211e3af07
fix(core): switch define to invert display colors into const volatile
3 years ago
Pavol Rusnak e7966cc804
refactor(core): rework color definitions in bootloader
3 years ago
Pavol Rusnak 3294a49cec
fix(core): don't assert reset flags to allow "reboot to bootloader"
3 years ago
Pavol Rusnak 1e2bb337a9
refactor(core): drop buttons argument for ui_screen_firmware_info
3 years ago
Pavol Rusnak 814db111b2
feat(core): add define to invert display colors on ST7789V
3 years ago
Pavol Rusnak 5cff6ac964
doc(core): update comments around UDP emulator
3 years ago
Andrew Kozlik a8c500bffd feat(core): Ensure that WebAuthn runs on port 21326 by default for both production and debug emulator.
3 years ago
Pavol Rusnak ebfd51d818
fix(core): stay_in_bootloader should default to false, not true
3 years ago
Pavol Rusnak efac5d56f5
fix(core): change touch i2c clock speed to 200 kHz
3 years ago
Martin Milata 7c1d72c254 style(core): fix bootloader formatting
3 years ago
Pavol Rusnak 29a3e91f09 feat(core): refactor display_init_seq from display_init
3 years ago
Pavol Rusnak 5dd3d73d00
fix(core): remove unused stuff from bootloader_ci
3 years ago
Ondrej Mikle a4ba24645b
feat(core): remove connect to host dialog in the bootloader
3 years ago
Pavol Rusnak f3ae3615c7
fix(core): unify bootloader_ci with bootloader
3 years ago
Pavol Rusnak b074404dcf
fix(core): small secbool refactor for bootloader_ci
3 years ago
Pavol Rusnak 2dc094bd3e
fix(core): small secbool refactors
3 years ago
Martin Milata 48627b7f0f fix(core): bootloader_ci build
3 years ago
Pavol Rusnak 5395c542c1
chore(core): update changelog, bump version to 2.3.7
3 years ago
Pavol Rusnak f46380147f fix(core): update sync protobuf messages in bootloader
3 years ago
matejcik ccd241fe55 feat(core/cardano): enable typing for Cardano app
3 years ago
Ondrej Mikle 22d01b6ff4 chore(core): bootloader_ci - decouple file links from original bootloader
3 years ago
Pavol Rusnak a11cb11ba3 chore(core): rework SYSTEMVIEW_DEST_SYSTEMVIEW
3 years ago
Ondrej Mikle d99127771c chore(core): reorder includes
3 years ago
Ondrej Mikle a628b9a92d chore(core): remove unneeded include
3 years ago
Ondrej Mikle 4cf91b128d style(core): systemview editorconfig reformat
3 years ago
Ondrej Mikle 9411756c42 style(core): systemview reformat
3 years ago
Ondrej Mikle 550216354b chore(core): more systematic systemview function definitions
3 years ago
Ondrej Mikle 869cfbbd1c style(core): style for systemview
3 years ago
Ondrej Mikle 0abcb57840 feat(core): place systemview buffers into CCMRAM
3 years ago
Ondrej Mikle 5a4166ea93 feat(core): increase systemview buffers
3 years ago
Ondrej Mikle f591ce6789 feat(core): update systemview sources to 3.20
3 years ago
Ondrej Mikle 8fa3745838 feat(core): define RTT locking by enabling/disabling interrupts
3 years ago
Ondrej Mikle ce3a6b649c feat(core): systemview header
3 years ago
Ondrej Mikle 4a692cc63b feat(core): segger dependencies
3 years ago
Ondrej Mikle 5f837e12b9 feat(core): send messaged through systemview
3 years ago
Ondrej Mikle 60e4e06aa5 feat(core): measure systick with systemview
3 years ago
Ondrej Mikle c5e986b1ba feat(core): enable SystemView at firmware start
3 years ago
Martin Milata c293b52bd6 feat(core): bootloader_ci: do not ui_fadein/ui_fadeout
3 years ago
Martin Milata 2643ee2ab8 feat(core): bootloader_ci: wipe device without confirmation
3 years ago
Tomas Susanka 1006c8a0f1 chore(core,legacy): change versions to 1.9.5 and 2.3.6
3 years ago
Pavol Rusnak 92535dc090
chore(core,legacy): change versions back to 1.9.4 and 2.3.5
3 years ago
Pavol Rusnak 43ed13b323 feat(core): disable SECP256K1_ZKP feature flag
3 years ago
Pavol Rusnak f3d5de15ef refactor(core): turn SECP256K1_ZKP into a firmware feature flag
3 years ago
Jan Pochyla f3a64435f1
fix(core): root ui callback for trezorconfig mod (#1412)
3 years ago
Martin Milata db5b65a420 perf(core): enable rendering of substrings to avoid slicing
3 years ago
Pavol Rusnak 93215ae3c7 style: reformat with clang-format 11
3 years ago
Rafael Korbas edf9b4ee85 Refactor mnemonic_to_entropy to not (misleadingly) return checksum
4 years ago
Tomas Susanka d2e3269ede chore(core): bump version to 2.3.6
4 years ago
Andrew Kozlik aeb021b159 chore(core): Improve naming of SLIP39's T9 mask lookup.
4 years ago
Andrew Kozlik 7fc1851279 fix(crypto): Improve naming and robustness of SLIP39's T9 mask lookup.
4 years ago
Pavol Rusnak 0519c8bd13
Revert "chore(core): bump version to 2.3.6"
4 years ago
Tomas Susanka 01d1058048 chore(core): bump version to 2.3.6
4 years ago
Pavol Rusnak b9c0b3969b
legacy+core: unify error codes in bootloaders (#1347)
4 years ago
Pavol Rusnak 50fdd183c2
ci: enable editorconfig checks, fix whitespace issues
4 years ago
Pavol Rusnak ded61a4ccf
chore(vendor): update micropython to v1.13
4 years ago
Andrew Kozlik c67ecb984b chore(crypto): Move XPUB_MAXLEN and ADDRESS_MAXLEN from modtrezorcrypto to bip32.h.
4 years ago
Andrew Kozlik c21ca81a1e fix(core): Prevent sensitive data from being left on the call stack in modtrezorcrypto.
4 years ago
Pavol Rusnak d8534b5ee6
perf(core/extmod): replace HMAC Python implementation with C
4 years ago
Pavol Rusnak 649e31cef0 chore(core/bootloader): regenerate messages with nanopb 0.4.3
4 years ago
Tomas Susanka 0317877297 chore(core): bump version to 2.3.5
4 years ago
matejcik 7e5d9e295b fix(core): help mypy understand micropython's module management
4 years ago
Martin Milata f3fd98a7ba core: remove 1px of space on the left of each glyph
4 years ago
Martin Milata b8bb63fbef core: drop unused FONT_SIZE constant
4 years ago
Tomas Susanka d080464cc5 core, legacy: bump versions (also in changelogs)
4 years ago
Ondrej Mikle 8d3d3be09c
core/bootloader_ic: introduce CI bootloader for TT device tests (#1182)
4 years ago
Martin Milata 1b982659c4
core: fix boot loop after uploading invalid homescreen (#1205)
4 years ago
Pavol Rusnak 5536fbb98a python: use stdlib blake2s on python 3.6+
4 years ago
Pavol Rusnak 4e11735d22 core/modtrezorui: remove prefill from text functions
4 years ago
matejcik 5385617eda core: increase address length limit to accomodate CRW (fixes #1139)
4 years ago
Ondřej Vejpustek 59002118c0 core/extmod: explicitly initialize automatic variables
4 years ago
Pavol Rusnak efc5ccdaf0
core: remove src1
4 years ago
Martin Milata e5bdca655a core: don't scale emulator background image
4 years ago
matejcik 8502412dbc core/emulator: assume `-m main` when no arguments are provided
4 years ago
Pavol Rusnak a6451dad46
core/fonts: update headers
4 years ago
Pavol Rusnak 47e7550423
core/extmod: add font_pixeloperator{,mono}, use this font for T1
4 years ago
Pavol Rusnak cec87bba50
core: remove mono bold font variant (not used anywhere)
4 years ago
Pavol Rusnak 8bc32d035b
core/extmod: enable display_text* methods for other models than T
4 years ago
Pavol Rusnak df03534955
core: print inverted question mark for nonprintable characters
4 years ago
Pavol Rusnak 89d701ed08
core+legacy: bump versions (also in changelogs)
4 years ago
Pavol Rusnak 8dacad0782
core/bootloader: update protobuf definitions
4 years ago
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