Pavol Rusnak
32fbc69c30
embed: refactor BUFFER_OFFSET modification in display_set_orientation
2018-07-26 15:32:23 +02:00
jmuravsky
09ddcc7ac9
cardano: add Cardano currency support
2018-07-25 17:56:29 +02:00
Pavol Rusnak
cb9e7b5885
embed: cleanup Keccak API (drop keccak arg from digest() func)
2018-07-23 15:19:38 +02:00
Dusan Klinec
8cf0b93df7
sha3: keccak parameter in the constructor
...
- enable to construct keccak sha3 so keccak-sha3 digest can be used in hmac / pbkdf transparently (without need to call special digest(keccak=True) as some functions taking Digest object call digest() directly so keccak mode have to be specified before that point)
2018-07-23 15:01:46 +02:00
Pavol Rusnak
fecc6e53a0
tools: update tools to generate clang-format compatible output
2018-07-18 12:17:51 +02:00
Yura Pakhuchiy
28bff537be
Add Groestl512 to modtrezorcrypto
2018-07-09 21:30:10 +02:00
Pavol Rusnak
657de0274d
embed/unix: save only cropped part of the screenshot
2018-07-02 17:10:18 +02:00
Pavol Rusnak
35dcd917dd
embed/unix: save screenshot on "P" press in emulator
2018-07-02 16:31:24 +02:00
Jan Pochyla
7630201a57
debug: do not rely on mp_optimise_value
...
Reflects micropython commit 3f420c0c27bd6daa5af39517925be55b9b9a9ab3
Replaces usage of mp_optimise_value with calls from python code.
2018-06-19 18:26:43 +02:00
Jan Pochyla
edcc96ee09
embed: use correct string constructors
...
Reflects micropython commit 4601759bf59e16b860a3f082e9aa4ea78356bf92
2018-06-19 18:26:43 +02:00
Pavol Rusnak
97bb26b7f3
embed/extmod/modtrezorcrypto: use kwargs for Blake2b/Blake2s
2018-06-19 18:15:58 +02:00
Pavol Rusnak
8e9ae534c0
embed/extmod/modtrezorcrypto: fix last commit, update trezor-crypto
2018-06-15 10:35:19 +02:00
Karel Bílek
eeff66be88
zcash: use personal field in blake2b ( #243 )
2018-06-15 10:20:32 +02:00
Jan Pochyla
2603c477c5
embed/extmod/modtrezorui: distinguish font ids from colors
2018-06-08 14:53:46 +02:00
Jan Pochyla
6ceb3f2770
embed/extmod/modtrezorui: text functions return width
2018-06-08 14:53:46 +02:00
Jan Pochyla
3dc1c79b1a
nem: cleanup modtrezorcrypto bindings
2018-06-06 17:24:07 +02:00
Tomas Susanka
6aef64d367
nem: compute address from pubkey
2018-06-06 17:24:07 +02:00
Tomas Susanka
3fc96805dd
nem: modtrezorcrypto overflow fix and err check
2018-06-06 17:24:07 +02:00
Tomas Susanka
fb15e993f1
embed/crypto: ed25519 keccak signing
...
to be discussed whether not to provide a hash func instead of string
2018-06-06 17:24:06 +02:00
Tomas Susanka
b5cc678caa
nem: encrypt
2018-06-06 17:24:06 +02:00
Tomas Susanka
33ac5de848
wallet/nem: basic modtrezorcrypto for nem
2018-06-06 17:24:06 +02:00
Tomas Susanka
88ef4257cd
wallet/nem: init, get_address
2018-06-06 17:24:06 +02:00
Pavol Rusnak
68669dd8e4
firmware: disable WebUSB landing page ( #174 )
2018-06-04 13:50:23 +02:00
Jan Pochyla
bf7729ab9f
embed/extmod: use trezor_obj_get_uint{8} where it makes sense
2018-05-24 17:59:03 +02:00
Jan Pochyla
648ec675f4
embed/extmod: add trezor_obj_get_uint8
2018-05-24 17:59:03 +02:00
Jan Pochyla
39c1c85abb
embed/extmod: use trezor_obj_get_uint for uint32_t
2018-05-24 17:59:03 +02:00
Jan Pochyla
71b4e9978c
embed/extmod: add trezor_obj helpers for int and uint
2018-05-24 17:59:02 +02:00
Pavol Rusnak
90975f6b6e
embed/extmod/modtrezorcrypto: add support to variable outlen for Blake2{b,s}
2018-05-22 19:44:52 +02:00
Pavol Rusnak
55f3edebda
embed/extmod/modtrezorui: allow software renderer (but still prefer accelerated ones)
2018-03-30 14:01:51 +02:00
Jochen Hoenicke
5fc368e330
display: show qr-code correctly (was mirrored)
2018-03-27 19:39:20 +02:00
Pavol Rusnak
611d374bbd
embed: rename TREZOR_STM32/UNIX to TREZOR_MODEL_T/EMU, introduce trezor.utils.model()
2018-03-04 12:59:16 +01:00
Pavol Rusnak
c1f097f2b4
embed/extmod/modtrezorui: introduce frame numbering to display.save
2018-02-27 19:05:40 +01:00
Pavol Rusnak
20f1644ef9
src/apps/management: fix change_pin behaviour
2018-02-26 23:02:44 +01:00
Pavol Rusnak
081dcdd98f
embed/unix: resize emulator window if no background image found
2018-02-26 19:44:29 +01:00
Tomas Susanka
2c2f2ff97b
embed: private key set check simplified
2018-02-26 16:13:00 +01:00
Tomas Susanka
368ba963a6
embed: hdnode public derivation
2018-02-26 16:13:00 +01:00
Tomas Susanka
858f2583a5
embed: hdnode field length fix
2018-02-26 16:13:00 +01:00
Pavol Rusnak
14b0d4439a
embed: add GPLv3 source code headers
2018-02-26 14:07:37 +01:00
Pavol Rusnak
db141fbc14
src/trezor: rework PIN progress update
2018-02-25 02:30:33 +01:00
Pavol Rusnak
2bb9d80c18
embed/unix: implement nice background into emulator
2018-02-25 02:16:35 +01:00
Pavol Rusnak
64f7089d45
embed/extmod/modtrezorui: implement proper backlight
2018-02-25 00:55:33 +01:00
Pavol Rusnak
35e1135c95
embed/extmod/modtrezorutils: add symbol() func
...
to expose internal C symbols, usually defined as macros
2018-02-23 21:27:26 +01:00
Pavol Rusnak
21bb815945
embed/trezorhal: move mpu to trezorhal - enable it in firmware
2018-02-23 19:08:34 +01:00
Pavol Rusnak
3eab20e278
embed: refactor MIN/MAX macros in common.h
2018-02-22 20:35:32 +01:00
Pavol Rusnak
d5ab82ae2b
embed/extmod/modtrezorui: refactor DISPLAY_OFFSET
2018-02-22 16:27:38 +01:00
Pavol Rusnak
30396f9cf0
embed/extmod/modtrezorui: refactor BUFFER_OFFSET and PIXELWINDOW structures
2018-02-18 15:51:18 +01:00
Pavol Rusnak
e264090678
embed/extmod/modtrezorui: refactor DATA into DATA and PIXELDATA in display
2018-02-18 15:37:54 +01:00
Pavol Rusnak
936f0e3e26
embed: fix 3 TODO items
2018-02-12 14:51:41 +01:00
Pavol Rusnak
9aa947d2e1
embed/extmod/modtrezorcrypto: remove redundant code in bip32
2018-02-09 12:33:55 +01:00
Pavol Rusnak
593ccdafec
embed/extmod/modtrezorcrypto: use uint32_t for HDNode int attributes
2018-02-09 12:22:23 +01:00
Pavol Rusnak
77ea31aa8a
embed/extmod/modtrezorui: revert NO_HINT change
2018-02-08 15:04:33 +01:00
Pavol Rusnak
329b7d1488
embed/extmod/modtrezorui: regenerate fonts with NO_HINTING, update rendering to subpixel precision
2018-02-07 19:33:39 +01:00
Pavol Rusnak
a25af7d22a
embed/extmod/modtrezorui: refactor text bar prefill into from display.c into extmod
2018-02-06 22:55:20 +01:00
Jan Pochyla
00c4da83b9
modtrezorconfig: fix has_pin
2018-02-05 15:36:59 +01:00
Pavol Rusnak
b8b8e38765
trezorhal: rename winusb_enabled to usb21_enabled
2018-02-02 16:02:37 +01:00
Pavol Rusnak
4f44c2577b
trezorhal: add option to programatically enable/disable WinUSB
2018-02-02 15:27:04 +01:00
Pavol Rusnak
94fc0f7ac0
extmod: if debug build is used, disable LoadDevice, wipe storage on start, draw red square in corner
2018-02-01 15:46:32 +01:00
Pavol Rusnak
488e516cbf
trezorhal: add device_class, etc. to usb object
2018-01-31 16:46:15 +01:00
Pavol Rusnak
ba8224f598
trezorhal: remove configuration from usb string table
2018-01-28 02:43:00 +01:00
Pavol Rusnak
1280073c04
trezorhal: remove unnecessary casting for usb strings
2018-01-25 15:34:45 +01:00
Pavol Rusnak
2f567ee822
bootloader: rework UI
2018-01-24 12:47:55 +01:00
Pavol Rusnak
00c193f5cc
trezorhal, unix: drop flash_write_{byte,word} usage, rename flash_write_{byte,word}_rel to flash_write_{byte,word}
2018-01-23 16:58:53 +01:00
Pavol Rusnak
8bf19b4c92
trezorhal: refactor trezor.io USB stuff into more files, add WebUSB
2018-01-21 00:04:05 +01:00
Pavol Rusnak
311af09236
trezor.io: fix typo in VCP class
2018-01-20 22:00:16 +01:00
Pavol Rusnak
30ff61b588
trezorhal: add configuration, interface strings to usb descriptors, minor typos
2018-01-20 21:48:53 +01:00
Pavol Rusnak
08376a4a54
fix typo
2018-01-20 21:26:54 +01:00
Pavol Rusnak
e92440dfc8
introduce and use memzero instead of explicit_bzero
2018-01-18 15:30:49 +01:00
Pavol Rusnak
fea8d53b85
trezor.io: cleanup usb code
2018-01-17 16:10:31 +01:00
Pavol Rusnak
ea116d742a
use explicit_bzero where possible; update trezor-crypto
2018-01-16 20:44:21 +01:00
Jan Pochyla
20c4900df1
modtrezorcrypto/bip39: throw less exceptions
2018-01-16 15:46:32 +01:00
Pavol Rusnak
27d9abe883
trezor.config: add public values (readable without unlock)
...
They are indicated via MSB bit of appid
2018-01-13 16:09:22 +01:00
Pavol Rusnak
1530afe4ad
vendor: update trezor-crypto, adapt codebase to changes
2018-01-13 15:36:03 +01:00
Pavol Rusnak
d11bbde2e1
trezor.crypto: fix sha3-{256,512} argument handling
2018-01-12 13:50:34 +01:00
Pavol Rusnak
7efef68e97
trezor.crypto: add static keyword to crc
2018-01-12 13:43:52 +01:00
Pavol Rusnak
7537c26c83
trezor.crypto: use mp_obj_new_str_from_vstr where we already have preallocated vstr
2018-01-07 13:56:18 +01:00
Pavol Rusnak
981ec87877
trezor.crypto: put back vstr where it makes sense (= user controlled input)
2018-01-05 13:13:20 +01:00
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
2018-01-03 21:53:58 +01:00
Pavol Rusnak
fa95f0a037
trezor.crypto: implement chacha20poly1305 aka rfc7539
2018-01-02 18:57:23 +01:00
Pavol Rusnak
b9d5af8c19
modtrezorcrypto: remove ssss (different implementation will be re-added later)
2018-01-02 14:13:42 +01:00
Pavol Rusnak
94588dd588
modtrezorui: introduce TREZOR_FONT_PREFILL, set it to 0 in bootloader
2018-01-02 01:37:31 +01:00
Pavol Rusnak
424115967f
embed: fix wur for usb functions
2018-01-01 21:49:08 +01:00
Pavol Rusnak
d6593e710b
apps.ethereum: implement SignMessage/VerifyMessage
2017-12-23 15:12:31 +01:00
Pavol Rusnak
333c0a633a
trezor.crypto: adopt crc32 function
2017-12-19 21:54:22 +01:00
Pavol Rusnak
4b54bfbbf2
modtrezorui: change loader size to 120x120
2017-12-16 23:44:30 +01:00
Pavol Rusnak
63e999ab84
trezor.ui: introduced minwidth to display.text functions; more optimizations
2017-12-16 19:33:09 +01:00
Pavol Rusnak
47f5cba439
flash/sdcard: introduce wur, simplify code
2017-12-16 18:42:06 +01:00
Jochen Hoenicke
beef9ecfb5
Moved flash_unlock to norcow_update
...
and fixed propagation of error return
2017-12-16 17:25:41 +01:00
Pavol Rusnak
6aae87437f
modtrezorui: draw bars under letters
2017-12-16 17:22:03 +01:00
Pavol Rusnak
4584861385
trezor.ui: introduce ui.SIZE
2017-12-16 14:50:28 +01:00
Pavol Rusnak
79a3f84c3c
modtrezorui: invert FONT macro inclusion logic
2017-12-15 23:13:25 +01:00
Pavol Rusnak
80707f195b
modtrezorui: small cleanup
2017-12-15 23:03:18 +01:00
Jochen Hoenicke
c0cd252c83
Store pin as integer
...
- New module trezor.pin (add timeout here)
- Convert pin to integer by adding a '1' (to detect leading 0s)
- pin is still limited to 9 digits.
2017-12-15 20:37:03 +01:00
Pavol Rusnak
be302480fd
modtrezorcrypto: cleanup random
2017-12-15 16:56:08 +01:00
Pavol Rusnak
5e476b856e
unix: implement sdcard, add unit test
2017-12-15 01:00:00 +01:00
Pavol Rusnak
48ef409fdb
modtrezorio: remove mocks
2017-12-15 00:06:09 +01:00
Pavol Rusnak
e8f70ed4af
pin: implement graphics pin timeout
2017-12-14 19:01:41 +01:00
Jochen Hoenicke
87f7054e46
Added callback for PIN timeout
...
When PIN is entered or changed and their were failed tries the function
waits for time (exponential slow down). For every second it waits, it
now calls back into python to give it the chance to show a message.
GUI still needs to be implemented
2017-12-14 17:19:51 +01:00
Jochen Hoenicke
497021f2ef
storage: New pin fail section inside NORCOW
...
Added a function to update NORCOW data.
Changed storage pin fail logic.
2017-12-14 17:18:45 +01:00
Pavol Rusnak
b7444ac13e
modtrezorconfig: fix wipe error
2017-12-14 16:27:18 +01:00
Pavol Rusnak
70ac202d7a
modtrezorcrypto: add trezor.crypto.hashlib.blake256
2017-12-13 20:47:12 +01:00