📙 Heavily optimized cryptography algorithms for embedded devices.
Switch branches/tags
Nothing to show
Clone or download
clementnuss and prusnak Improve function naming (#181)
Changes the `ecdsa_verify_digest_recover` function to `ecdsa_recover_pub_from_sig`, to avoid confusion
Fix #180
Latest commit f9523f9 Sep 13, 2018
Permalink
Failed to load latest commit information.
aes aes: update to newest version Aug 14, 2018
chacha20poly1305 chacha20poly1305: header polution reduction Aug 22, 2018
ed25519-donna fix unused-const-variable Sep 5, 2018
gui introduce version attributes to hdnode_serialize_public/private and h… Apr 21, 2017
monero move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-b… Sep 3, 2018
tests Improve function naming (#181) Sep 13, 2018
tools hasher: Replace hasher_Double with HASHER_*D Apr 3, 2018
.gitignore move tests into tests/ Apr 5, 2018
.gitmodules integrate Wycheproof tests Jul 16, 2018
.travis.yml integrate Wycheproof tests Jul 16, 2018
AUTHORS import sources Aug 17, 2013
CONTRIBUTORS bignum: introduce read/write_le Aug 25, 2016
LICENSE adjust format of LICENSE Jan 31, 2016
Makefile move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-b… Sep 3, 2018
README.md integrate Wycheproof tests Jul 16, 2018
address.c address: fix ethereum address computation, chain_id is uint32 Jun 27, 2018
address.h address: fix ethereum address computation, chain_id is uint32 Jun 27, 2018
base32.c base32: Handle when char is unsigned Jun 5, 2017
base32.h base32: Return char* from base32_encode Jun 5, 2017
base58.c xmr: monero crypto implemented, tests Sep 3, 2018
base58.h xmr: monero crypto implemented, tests Sep 3, 2018
bignum.c Reworked bn_format. Apr 5, 2018
bignum.h bignum: Fix bn_digitcount Jul 27, 2017
bip32.c rename hasher_multisig to hasher_script Sep 5, 2018
bip32.h rename hasher_multisig to hasher_script Sep 5, 2018
bip39.c replace cardano with v2 (#179) Sep 5, 2018
bip39.h Add Cardano currency support Jul 10, 2018
bip39_english.h bip39: use static modifier Jan 2, 2018
blake256.c blake256: Replace with working implementation Dec 23, 2017
blake256.h blake256: Replace with working implementation Dec 23, 2017
blake2_common.h add Blake2b Feb 28, 2017
blake2b.c blake2b: add personal_len to blake2b_InitPersonal Jun 15, 2018
blake2b.h blake2s: add InitPersonal Jun 19, 2018
blake2s.c blake2s: add InitPersonal Jun 19, 2018
blake2s.h blake2s: add InitPersonal Jun 19, 2018
cash_addr.c cashaddr: fix whitespace May 22, 2018
cash_addr.h Added cashaddr support (#120) Apr 5, 2018
check_mem.h check_mem: Fix Check 0.11 Jun 3, 2017
curves.c add smartcash curve (#176) Aug 30, 2018
curves.h add smartcash curve (#176) Aug 30, 2018
ecdsa.c Improve function naming (#181) Sep 13, 2018
ecdsa.h Improve function naming (#181) Sep 13, 2018
groestl.c Groestl hash: remove even more dead code Apr 23, 2018
groestl.h Groestl hash: more cleanups Apr 23, 2018
groestl_internal.h Groestl hash cleanup Apr 23, 2018
hasher.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 Aug 1, 2018
hasher.h refactor hashers, introduce HASHER_SHA2_RIPEMD160 Aug 1, 2018
hmac.c introduce and use memzero instead of explicit_bzero Jan 18, 2018
hmac.h Faster PBKDF2 by reusing intermediate results. Jul 13, 2016
memzero.c introduce and use memzero instead of explicit_bzero Jan 18, 2018
memzero.h introduce and use memzero instead of explicit_bzero Jan 18, 2018
nem.c Fixed undefined behavior Mar 27, 2018
nem.h Makefile: simplify include path, move subdirs to where used in C files Jan 13, 2018
nem_serialize.h nem: Add transaction serialization methods Sep 1, 2017
nist256p1.c rename hasher_multisig to hasher_script Sep 5, 2018
nist256p1.h ed25519 support Apr 22, 2016
nist256p1.table Add support for NIST256P1 elliptic curve Jun 26, 2015
options.h add USE_CARDANO default to options.h Sep 5, 2018
pbkdf2.c refactor pbkdf2 functions to make them more readable Sep 11, 2018
pbkdf2.h replace cardano with v2 (#179) Sep 5, 2018
rand.c Fixed undefined behavior Mar 27, 2018
rand.h add warning message to rand.c Jan 21, 2018
rc4.c rc4: Initial commit Aug 13, 2017
rc4.h rc4: Initial commit Aug 13, 2017
rfc6979.c introduce and use memzero instead of explicit_bzero Jan 18, 2018
rfc6979.h split rfc6979 from ecdsa into separate module Apr 3, 2017
ripemd160.c introduce and use memzero instead of explicit_bzero Jan 18, 2018
ripemd160.h extract block size and digest size as macros in ripemd160 Nov 1, 2016
script.c hasher: Replace hasher_Double with HASHER_*D Apr 3, 2018
script.h add script parsing functions May 16, 2016
secp256k1.c rename hasher_multisig to hasher_script Sep 5, 2018
secp256k1.h add smartcash curve (#176) Aug 30, 2018
secp256k1.table Add support for NIST256P1 elliptic curve Jun 26, 2015
segwit_addr.c Updated to latest from bech32 repository. Nov 3, 2017
segwit_addr.h Bech32 (BIP173) address support Nov 3, 2017
setup.py python: reformat python scripts using black Jul 16, 2018
sha2.c Adapted sha1 to match sha2 code. Apr 5, 2018
sha2.h sha2: import SHA1 implementation Nov 5, 2016
sha3.c introduce and use memzero instead of explicit_bzero Jan 18, 2018
sha3.h tests: Import NEM test vectors for keccak_256 Jun 5, 2017

README.md

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: