Commit Graph

182 Commits (28e2970cfb6bf978aa0d18a01a0c33e4254df7a3)

Author SHA1 Message Date
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 488e516cbf
trezorhal: add device_class, etc. to usb object
7 years ago
Pavol Rusnak ba8224f598
trezorhal: remove configuration from usb string table
7 years ago
Pavol Rusnak 1280073c04
trezorhal: remove unnecessary casting for usb strings
7 years ago
Pavol Rusnak 2f567ee822
bootloader: rework UI
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 8bf19b4c92
trezorhal: refactor trezor.io USB stuff into more files, add WebUSB
7 years ago
Pavol Rusnak 311af09236
trezor.io: fix typo in VCP class
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 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 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 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 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 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 d6593e710b
apps.ethereum: implement SignMessage/VerifyMessage
7 years ago
Pavol Rusnak 333c0a633a
trezor.crypto: adopt crc32 function
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
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 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
Jochen Hoenicke c0cd252c83 Store pin as integer
7 years ago
Pavol Rusnak be302480fd
modtrezorcrypto: cleanup random
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 e8f70ed4af
pin: implement graphics pin timeout
7 years ago
Jochen Hoenicke 87f7054e46 Added callback for PIN timeout
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 70ac202d7a
modtrezorcrypto: add trezor.crypto.hashlib.blake256
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
Pavol Rusnak 20a1326ebb
storage: fix typo
7 years ago
Pavol Rusnak 8a8450d6be
fix build for older compilers
7 years ago
Pavol Rusnak e268aeb8b7
flash: simplify/unify flash_erase_sectors usage
7 years ago
Pavol Rusnak 6ab0f03ec4
embed: norcow_init, storage_init and flash_init don't return secbool, they halt using ensure if something goes wrong
7 years ago
Jan Pochyla 314e6a99c1 modtrezorcrypto/bip32: add HDNode.__init__
7 years ago
Pavol Rusnak 626a8885ce
trezor.config: add compaction test
7 years ago
Pavol Rusnak b39b4a4947
norcow: fix bug
7 years ago
Pavol Rusnak 44a11fa3ef
norcow: introduce NORCOW_MAGIC
7 years ago
Pavol Rusnak 38e3088325
common: don't expose shutdown() via common.h
7 years ago
Pavol Rusnak f88080b904
Merge branch 'pin_fails'
7 years ago
Pavol Rusnak 40104822e8
unix: make SDL failures fatal
7 years ago
Pavol Rusnak 679d024df0
display: use CMD2EN: Command 2 Enable
7 years ago
mcudev 5556c37f6f display: hardware reset updates
7 years ago
mcudev 61ff3b46c5 display: ST7789V porch settings are for RGB interface, not parallel 8080-I
7 years ago
mcudev 30829b281c display: ST7789V remove commands that unnecessarily set default values again
7 years ago
mcudev e62fa345c8 display: minor ILI9341 updates
7 years ago
mcudev a0129e7715 display: orientation, windowing, and config updates
7 years ago
mcudev f53ec3f928 display: update display_unsleep
7 years ago
mcudev 5e867cc092 display: update display_sleep
7 years ago
Jan Pochyla 5bd39c70b0 storage: fix change_pin and small details
7 years ago
Jan Pochyla cf14717d43 unix: add shutdown()
7 years ago
Pavol Rusnak 879a3e85bd
trezorhal: reorder stuff in common.{c,h}; remove unnecessary externs for functions
7 years ago
Jan Pochyla 237740de9c storage: implement change_pin
7 years ago
Jan Pochyla 5e643e9195 modtrezorconfig: fix has_pin
7 years ago
Jan Pochyla df77e74988 storage: fix unlock
7 years ago
Pavol Rusnak 30363305f4
modtrezorconfig: use secbool, not bool
7 years ago
Jan Pochyla 0376ff7f48 storage, norcow: use secbool
7 years ago
Jan Pochyla 418f035811 storage: add has_pin and change_pin
7 years ago
Jan Pochyla 353883e0f3 storage: rename constant
7 years ago
Jan Pochyla b6ba95625c norcow: port on top of flash.c, remove config
7 years ago
Jan Pochyla 27bfcfe1af norcow: import into tree
7 years ago
Jan Pochyla f07b4dda0b modtrezorconfig: extract pin & unlocking to storage.c
7 years ago
Jan Pochyla fdc2f6a39d modtrezorconfig: use new flash API
7 years ago
Jan Pochyla 543e8c5007 flash: add unix/flash.c
7 years ago
Jan Pochyla 4cabe40220 storage: pin checking in c proof of concept
7 years ago
mcudev d1ed02fb98 touch: use full 12-bit X and Y values
7 years ago
Pavol Rusnak 7d0a12c29e
unix: fix build
7 years ago
Pavol Rusnak 3851404d04
small cosmetic changes to prodtest and others
7 years ago
Pavol Rusnak 4d36d0e1c1
trezorhal: use sectrue where possible
7 years ago
Pavol Rusnak f73eb3effd
trezorhal: introduce secbool/sectrue/secfalse and use it where possible
7 years ago
Jan Pochyla f93316bebd cleanup .gitignore files
7 years ago
Pavol Rusnak 6b9751d30d
trezorhal: cleanup usb api
7 years ago
Pavol Rusnak 4f041e9f3a
trezorhal: update sdcard api
7 years ago
Pavol Rusnak 3033762618
trezorhal: make touch_init and usb_init return void, use ensure inside
7 years ago
Pavol Rusnak 79fe9162b5
trezorhal: simplify api for init functions, use bool and void rather than int
7 years ago
Pavol Rusnak 17c3d2b56f
bootloader: implement UI according to mockup
7 years ago
Pavol Rusnak fdafae7d8d
trezorhal: remove timer1_get_source_freq function
7 years ago
mcudev 4f16aed757 display: handle TEON and COLMOD the same for both display types (#55)
7 years ago
Pavol Rusnak b1d9a59a79
unix: fix build
7 years ago
Pavol Rusnak 82050912c4
bootloader: implement WipeDevice
7 years ago
mcudev ca8d93ab5d boardloader, bootloader, firmware: factor out display_pwm_init (#52)
7 years ago
mcudev 0e2a1da99b display: remove redundant display commands and increase wait after reset (#51)
7 years ago
Pavol Rusnak b6f9df10bb
display: set minimum possible values for sram controller
7 years ago
Pavol Rusnak 46a0dd8648
display: fix DataSetupTime for ST7789V
7 years ago