1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-21 23:18:13 +00:00

embed/extmod/modtrezorcrypto: fix last commit, update trezor-crypto

This commit is contained in:
Pavol Rusnak 2018-06-15 10:31:21 +02:00
parent 565d60d004
commit 8e9ae534c0
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
4 changed files with 4 additions and 2 deletions

View File

@ -62,6 +62,7 @@ SOURCE_MOD += [
'vendor/trezor-crypto/ed25519-donna/ed25519-keccak.c',
'vendor/trezor-crypto/ed25519-donna/ed25519-sha3.c',
'vendor/trezor-crypto/ed25519-donna/modm-donna-32bit.c',
'vendor/trezor-crypto/groestl.c',
'vendor/trezor-crypto/hasher.c',
'vendor/trezor-crypto/hmac.c',
'vendor/trezor-crypto/memzero.c',

View File

@ -59,6 +59,7 @@ SOURCE_MOD += [
'vendor/trezor-crypto/ed25519-donna/ed25519-keccak.c',
'vendor/trezor-crypto/ed25519-donna/ed25519-sha3.c',
'vendor/trezor-crypto/ed25519-donna/modm-donna-32bit.c',
'vendor/trezor-crypto/groestl.c',
'vendor/trezor-crypto/hasher.c',
'vendor/trezor-crypto/hmac.c',
'vendor/trezor-crypto/memzero.c',

View File

@ -49,7 +49,7 @@ STATIC mp_obj_t mod_trezorcrypto_Blake2b_make_new(const mp_obj_type_t *type, siz
size_t outlen = trezor_obj_get_uint(args[1]);
mp_buffer_info_t personal;
mp_get_buffer_raise(args[2], &personal, MP_BUFFER_READ);
res = blake2b_InitPersonal(&(o->ctx), outlen, personal.buf);
res = blake2b_InitPersonal(&(o->ctx), outlen, personal.buf, personal.len);
} else if (n_args == 2) {
size_t outlen = trezor_obj_get_uint(args[1]);
res = blake2b_Init(&(o->ctx), outlen);

@ -1 +1 @@
Subproject commit 8b61a7e36572b176f60e70d00fba9d368a601fb4
Subproject commit 669acd7331fc02b6ef41c4a91112e6e6d6e831be