:orange_book: Heavily optimized cryptography algorithms for embedded devices. https://github.com/trezor/trezor-crypto
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ondřej Vejpustek 0d097154fa move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-base.c (#177) 1 year ago
aes aes: update to newest version 1 year ago
chacha20poly1305 chacha20poly1305: header polution reduction 1 year ago
ed25519-donna move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-base.c (#177) 1 year ago
gui introduce version attributes to hdnode_serialize_public/private and hdnode_deserialize functions 2 years ago
monero move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-base.c (#177) 1 year ago
tests move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-base.c (#177) 1 year ago
tools hasher: Replace hasher_Double with HASHER_*D 1 year ago
.gitignore move tests into tests/ 1 year ago
.gitmodules integrate Wycheproof tests 1 year ago
.travis.yml integrate Wycheproof tests 1 year ago
AUTHORS import sources 6 years ago
CONTRIBUTORS bignum: introduce read/write_le 3 years ago
LICENSE adjust format of LICENSE 3 years ago
Makefile move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-base.c (#177) 1 year ago
README.md integrate Wycheproof tests 1 year ago
address.c address: fix ethereum address computation, chain_id is uint32 1 year ago
address.h address: fix ethereum address computation, chain_id is uint32 1 year ago
base32.c base32: Handle when char is unsigned 2 years ago
base32.h base32: Return char* from base32_encode 2 years ago
base58.c xmr: monero crypto implemented, tests 1 year ago
base58.h xmr: monero crypto implemented, tests 1 year ago
bignum.c Reworked bn_format. 1 year ago
bignum.h bignum: Fix bn_digitcount 2 years ago
bip32.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 1 year ago
bip32.h refactor hashers, introduce HASHER_SHA2_RIPEMD160 1 year ago
bip39.c refactor mnemonic_check and mnemonic_to_entropy, style changes 1 year ago
bip39.h Add Cardano currency support 1 year ago
bip39_english.h bip39: use static modifier 1 year ago
blake2_common.h add Blake2b 2 years ago
blake2b.c blake2b: add personal_len to blake2b_InitPersonal 1 year ago
blake2b.h blake2s: add InitPersonal 1 year ago
blake2s.c blake2s: add InitPersonal 1 year ago
blake2s.h blake2s: add InitPersonal 1 year ago
blake256.c blake256: Replace with working implementation 1 year ago
blake256.h blake256: Replace with working implementation 1 year ago
cash_addr.c cashaddr: fix whitespace 1 year ago
cash_addr.h Added cashaddr support (#120) 1 year ago
check_mem.h check_mem: Fix Check 0.11 2 years ago
curves.c Add Cardano currency support 1 year ago
curves.h Add Cardano currency support 1 year ago
ecdsa.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 1 year ago
ecdsa.h Added cashaddr support (#120) 1 year ago
groestl.c Groestl hash: remove even more dead code 1 year ago
groestl.h Groestl hash: more cleanups 1 year ago
groestl_internal.h Groestl hash cleanup 1 year ago
hasher.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 1 year ago
hasher.h refactor hashers, introduce HASHER_SHA2_RIPEMD160 1 year ago
hmac.c introduce and use memzero instead of explicit_bzero 1 year ago
hmac.h Faster PBKDF2 by reusing intermediate results. 3 years ago
memzero.c introduce and use memzero instead of explicit_bzero 1 year ago
memzero.h introduce and use memzero instead of explicit_bzero 1 year ago
nem.c Fixed undefined behavior 1 year ago
nem.h Makefile: simplify include path, move subdirs to where used in C files 1 year ago
nem_serialize.h nem: Add transaction serialization methods 2 years ago
nist256p1.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 1 year ago
nist256p1.h ed25519 support 3 years ago
nist256p1.table Add support for NIST256P1 elliptic curve 4 years ago
options.h ed25519: aA + bB double scalarmult added 1 year ago
pbkdf2.c introduce and use memzero instead of explicit_bzero 1 year ago
pbkdf2.h Faster PBKDF2 by reusing intermediate results. 3 years ago
rand.c Fixed undefined behavior 1 year ago
rand.h add warning message to rand.c 1 year ago
rc4.c rc4: Initial commit 2 years ago
rc4.h rc4: Initial commit 2 years ago
rfc6979.c introduce and use memzero instead of explicit_bzero 1 year ago
rfc6979.h split rfc6979 from ecdsa into separate module 2 years ago
ripemd160.c introduce and use memzero instead of explicit_bzero 1 year ago
ripemd160.h extract block size and digest size as macros in ripemd160 2 years ago
script.c hasher: Replace hasher_Double with HASHER_*D 1 year ago
script.h add script parsing functions 3 years ago
secp256k1.c refactor hashers, introduce HASHER_SHA2_RIPEMD160 1 year ago
secp256k1.h Add GRS curve 1 year ago
secp256k1.table Add support for NIST256P1 elliptic curve 4 years ago
segwit_addr.c Updated to latest from bech32 repository. 1 year ago
segwit_addr.h Bech32 (BIP173) address support 1 year ago
setup.py python: reformat python scripts using black 1 year ago
sha2.c Adapted sha1 to match sha2 code. 1 year ago
sha2.h sha2: import SHA1 implementation 2 years ago
sha3.c introduce and use memzero instead of explicit_bzero 1 year ago
sha3.h tests: Import NEM test vectors for keccak_256 2 years ago

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: