1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 21:48:13 +00:00
Go to file
2018-08-14 13:05:21 +02:00
aes aes: update to newest version 2018-08-14 13:05:21 +02:00
chacha20poly1305 fix rfc7539 padding 2018-05-25 16:03:09 +02:00
ed25519-donna hasher: add HASHER_SHA3{,K} 2018-07-31 14:20:18 +02:00
gui introduce version attributes to hdnode_serialize_public/private and hdnode_deserialize functions 2017-04-21 13:42:58 +02:00
tests refactor hashers, introduce HASHER_SHA2_RIPEMD160 2018-08-01 15:03:43 +02:00
tools hasher: Replace hasher_Double with HASHER_*D 2018-04-03 18:28:06 +02:00
.gitignore move tests into tests/ 2018-04-05 13:26:59 +02:00
.gitmodules integrate Wycheproof tests 2018-07-16 14:27:18 +02:00
.travis.yml integrate Wycheproof tests 2018-07-16 14:27:18 +02:00
address.c address: fix ethereum address computation, chain_id is uint32 2018-06-27 16:53:18 +02:00
address.h address: fix ethereum address computation, chain_id is uint32 2018-06-27 16:53:18 +02:00
AUTHORS import sources 2013-08-17 14:20:15 +02:00
base32.c base32: Handle when char is unsigned 2017-06-05 12:32:48 +02:00
base32.h base32: Return char* from base32_encode 2017-06-05 12:32:48 +02:00
base58.c hasher: Replace hasher_Double with HASHER_*D 2018-04-03 18:28:06 +02:00
base58.h Use hasher_Raw instead of sha256_Raw 2017-12-10 20:07:13 +01:00
bignum.c Reworked bn_format. 2018-04-05 09:24:41 +02:00
bignum.h bignum: Fix bn_digitcount 2017-07-27 21:20:43 +02:00
bip32.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 2018-08-01 15:03:43 +02:00
bip32.h refactor hashers, introduce HASHER_SHA2_RIPEMD160 2018-08-01 15:03:43 +02:00
bip39_english.h bip39: use static modifier 2018-01-02 14:15:08 +01:00
bip39.c refactor mnemonic_check and mnemonic_to_entropy, style changes 2018-07-10 20:04:41 +02:00
bip39.h Add Cardano currency support 2018-07-10 19:09:21 +02:00
blake2_common.h add Blake2b 2017-02-28 18:14:54 +01:00
blake2b.c blake2b: add personal_len to blake2b_InitPersonal 2018-06-15 10:19:10 +02:00
blake2b.h blake2s: add InitPersonal 2018-06-19 18:06:23 +02:00
blake2s.c blake2s: add InitPersonal 2018-06-19 18:06:23 +02:00
blake2s.h blake2s: add InitPersonal 2018-06-19 18:06:23 +02:00
blake256.c blake256: Replace with working implementation 2017-12-23 13:45:36 +01:00
blake256.h blake256: Replace with working implementation 2017-12-23 13:45:36 +01:00
cash_addr.c cashaddr: fix whitespace 2018-05-22 16:55:37 +02:00
cash_addr.h Added cashaddr support (#120) 2018-04-05 11:15:05 +02:00
check_mem.h check_mem: Fix Check 0.11 2017-06-03 23:39:36 +02:00
CONTRIBUTORS bignum: introduce read/write_le 2016-08-25 23:18:24 +01:00
curves.c Add Cardano currency support 2018-07-10 19:09:21 +02:00
curves.h Add Cardano currency support 2018-07-10 19:09:21 +02:00
ecdsa.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 2018-08-01 15:03:43 +02:00
ecdsa.h Added cashaddr support (#120) 2018-04-05 11:15:05 +02:00
groestl_internal.h Groestl hash cleanup 2018-04-23 16:15:59 +02:00
groestl.c Groestl hash: remove even more dead code 2018-04-23 16:15:59 +02:00
groestl.h Groestl hash: more cleanups 2018-04-23 16:15:59 +02:00
hasher.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 2018-08-01 15:03:43 +02:00
hasher.h refactor hashers, introduce HASHER_SHA2_RIPEMD160 2018-08-01 15:03:43 +02:00
hmac.c introduce and use memzero instead of explicit_bzero 2018-01-18 15:18:09 +01:00
hmac.h Faster PBKDF2 by reusing intermediate results. 2016-07-13 22:17:23 +02:00
LICENSE adjust format of LICENSE 2016-01-31 12:16:31 +01:00
Makefile hasher: add HASHER_SHA3{,K} 2018-07-31 14:20:18 +02:00
memzero.c introduce and use memzero instead of explicit_bzero 2018-01-18 15:18:09 +01:00
memzero.h introduce and use memzero instead of explicit_bzero 2018-01-18 15:18:09 +01:00
nem_serialize.h nem: Add transaction serialization methods 2017-09-02 01:39:09 +02:00
nem.c Fixed undefined behavior 2018-03-27 15:04:55 +02:00
nem.h Makefile: simplify include path, move subdirs to where used in C files 2018-01-13 14:51:51 +01:00
nist256p1.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 2018-08-01 15:03:43 +02:00
nist256p1.h ed25519 support 2016-04-22 18:21:58 +02:00
nist256p1.table Add support for NIST256P1 elliptic curve 2015-06-26 10:33:14 +03:00
options.h ed25519: aA + bB double scalarmult added 2018-05-18 19:08:21 +02:00
pbkdf2.c introduce and use memzero instead of explicit_bzero 2018-01-18 15:18:09 +01:00
pbkdf2.h Faster PBKDF2 by reusing intermediate results. 2016-07-13 22:17:23 +02:00
rand.c Fixed undefined behavior 2018-03-27 15:04:55 +02:00
rand.h add warning message to rand.c 2018-01-21 23:38:32 +01:00
rc4.c rc4: Initial commit 2017-08-14 00:11:43 +02:00
rc4.h rc4: Initial commit 2017-08-14 00:11:43 +02:00
README.md integrate Wycheproof tests 2018-07-16 14:27:18 +02:00
rfc6979.c introduce and use memzero instead of explicit_bzero 2018-01-18 15:18:09 +01:00
rfc6979.h split rfc6979 from ecdsa into separate module 2017-04-03 20:58:53 +02:00
ripemd160.c introduce and use memzero instead of explicit_bzero 2018-01-18 15:18:09 +01:00
ripemd160.h extract block size and digest size as macros in ripemd160 2016-11-01 16:32:44 +01:00
script.c hasher: Replace hasher_Double with HASHER_*D 2018-04-03 18:28:06 +02:00
script.h add script parsing functions 2016-05-16 14:45:09 +02:00
secp256k1.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 2018-08-01 15:03:43 +02:00
secp256k1.h Add GRS curve 2018-04-23 16:15:59 +02:00
secp256k1.table Add support for NIST256P1 elliptic curve 2015-06-26 10:33:14 +03:00
segwit_addr.c Updated to latest from bech32 repository. 2017-11-03 18:49:19 +01:00
segwit_addr.h Bech32 (BIP173) address support 2017-11-03 18:49:19 +01:00
setup.py python: reformat python scripts using black 2018-07-16 14:38:09 +02:00
sha2.c Adapted sha1 to match sha2 code. 2018-04-05 09:24:41 +02:00
sha2.h sha2: import SHA1 implementation 2016-11-05 15:14:37 +01:00
sha3.c introduce and use memzero instead of explicit_bzero 2018-01-18 15:18:09 +01:00
sha3.h tests: Import NEM test vectors for keccak_256 2017-06-05 16:34:52 +02:00

trezor-crypto

Build Status gitter

Heavily optimized cryptography algorithms for embedded devices.

These include:

  • AES/Rijndael encryption/decryption
  • Big Number (256 bit) Arithmetics
  • BIP32 Hierarchical Deterministic Wallets
  • BIP39 Mnemonic code
  • ECDSA signing/verifying (supports secp256k1 and nist256p1 curves, uses RFC6979 for deterministic signatures)
  • ECDSA public key derivation
  • Base32 (RFC4648 and custom alphabets)
  • Base58 address representation
  • Ed25519 signing/verifying (also SHA3 and Keccak variants)
  • ECDH using secp256k1, nist256p1 and Curve25519
  • HMAC-SHA256 and HMAC-SHA512
  • PBKDF2
  • RIPEMD-160
  • SHA1
  • SHA2-256/SHA2-512
  • SHA3/Keccak
  • BLAKE2s/BLAKE2b
  • Chacha20-Poly1305
  • unit tests (using Check - check.sf.net; in test_check.c)
  • tests against OpenSSL (in test_openssl.c)
  • integrated Wycheproof tests

Distibuted under MIT License.

Some parts of the library come from external sources: