Struan Clark 66ddf24aae cleanup 2 yıl önce
..
aes 57986fd46f running flipper fmt 2 yıl önce
chacha20poly1305 57986fd46f running flipper fmt 2 yıl önce
ed25519_donna 9344703607 fmt changes 2 yıl önce
monero 57986fd46f running flipper fmt 2 yıl önce
AUTHORS b3236278d9 adding trezor crypto lib 2 yıl önce
CONTRIBUTORS b3236278d9 adding trezor crypto lib 2 yıl önce
LICENSE b3236278d9 adding trezor crypto lib 2 yıl önce
Makefile 57986fd46f running flipper fmt 2 yıl önce
README.md 66ddf24aae cleanup 2 yıl önce
address.c 57986fd46f running flipper fmt 2 yıl önce
address.h 57986fd46f running flipper fmt 2 yıl önce
base32.c 57986fd46f running flipper fmt 2 yıl önce
base32.h 57986fd46f running flipper fmt 2 yıl önce
base58.c 57986fd46f running flipper fmt 2 yıl önce
base58.h 57986fd46f running flipper fmt 2 yıl önce
bignum.c 57986fd46f running flipper fmt 2 yıl önce
bignum.h 57986fd46f running flipper fmt 2 yıl önce
bip32.c 57986fd46f running flipper fmt 2 yıl önce
bip32.h 57986fd46f running flipper fmt 2 yıl önce
bip39.c 57986fd46f running flipper fmt 2 yıl önce
bip39.h 57986fd46f running flipper fmt 2 yıl önce
bip39_english.c 57986fd46f running flipper fmt 2 yıl önce
blake256.c 57986fd46f running flipper fmt 2 yıl önce
blake256.h 57986fd46f running flipper fmt 2 yıl önce
blake2_common.h 57986fd46f running flipper fmt 2 yıl önce
blake2b.c 57986fd46f running flipper fmt 2 yıl önce
blake2b.h 57986fd46f running flipper fmt 2 yıl önce
blake2s.c 57986fd46f running flipper fmt 2 yıl önce
blake2s.h 57986fd46f running flipper fmt 2 yıl önce
byte_order.h 57986fd46f running flipper fmt 2 yıl önce
cardano.c 57986fd46f running flipper fmt 2 yıl önce
cardano.h 57986fd46f running flipper fmt 2 yıl önce
cash_addr.c 57986fd46f running flipper fmt 2 yıl önce
cash_addr.h 57986fd46f running flipper fmt 2 yıl önce
chacha_drbg.c 57986fd46f running flipper fmt 2 yıl önce
chacha_drbg.h 57986fd46f running flipper fmt 2 yıl önce
check_mem.h 57986fd46f running flipper fmt 2 yıl önce
curves.c b3236278d9 adding trezor crypto lib 2 yıl önce
curves.h b3236278d9 adding trezor crypto lib 2 yıl önce
ecdsa.c 57986fd46f running flipper fmt 2 yıl önce
ecdsa.h 57986fd46f running flipper fmt 2 yıl önce
groestl.c 57986fd46f running flipper fmt 2 yıl önce
groestl.h 57986fd46f running flipper fmt 2 yıl önce
groestl_internal.h 57986fd46f running flipper fmt 2 yıl önce
hasher.c 57986fd46f running flipper fmt 2 yıl önce
hasher.h 57986fd46f running flipper fmt 2 yıl önce
hmac.c 57986fd46f running flipper fmt 2 yıl önce
hmac.h 57986fd46f running flipper fmt 2 yıl önce
hmac_drbg.c 57986fd46f running flipper fmt 2 yıl önce
hmac_drbg.h 57986fd46f running flipper fmt 2 yıl önce
memzero.c 57986fd46f running flipper fmt 2 yıl önce
memzero.h b3236278d9 adding trezor crypto lib 2 yıl önce
nem.c 57986fd46f running flipper fmt 2 yıl önce
nem.h 57986fd46f running flipper fmt 2 yıl önce
nist256p1.c 57986fd46f running flipper fmt 2 yıl önce
nist256p1.h b3236278d9 adding trezor crypto lib 2 yıl önce
nist256p1.table b3236278d9 adding trezor crypto lib 2 yıl önce
options.h 95455c3ae1 eth compatibility! 2 yıl önce
pbkdf2.c 57986fd46f running flipper fmt 2 yıl önce
pbkdf2.h 57986fd46f running flipper fmt 2 yıl önce
rand.c 57986fd46f running flipper fmt 2 yıl önce
rand.h 57986fd46f running flipper fmt 2 yıl önce
rc4.c 57986fd46f running flipper fmt 2 yıl önce
rc4.h 57986fd46f running flipper fmt 2 yıl önce
rfc6979.c 57986fd46f running flipper fmt 2 yıl önce
rfc6979.h 57986fd46f running flipper fmt 2 yıl önce
ripemd160.c 57986fd46f running flipper fmt 2 yıl önce
ripemd160.h 57986fd46f running flipper fmt 2 yıl önce
script.c 57986fd46f running flipper fmt 2 yıl önce
script.h 57986fd46f running flipper fmt 2 yıl önce
secp256k1.c 57986fd46f running flipper fmt 2 yıl önce
secp256k1.h b3236278d9 adding trezor crypto lib 2 yıl önce
secp256k1.table b3236278d9 adding trezor crypto lib 2 yıl önce
segwit_addr.c 57986fd46f running flipper fmt 2 yıl önce
segwit_addr.h 57986fd46f running flipper fmt 2 yıl önce
setup.py b3236278d9 adding trezor crypto lib 2 yıl önce
sha2.c 57986fd46f running flipper fmt 2 yıl önce
sha2.h 57986fd46f running flipper fmt 2 yıl önce
sha3.c 57986fd46f running flipper fmt 2 yıl önce
sha3.h 57986fd46f running flipper fmt 2 yıl önce
shamir.c 57986fd46f running flipper fmt 2 yıl önce
shamir.h 57986fd46f running flipper fmt 2 yıl önce
slip39.c 57986fd46f running flipper fmt 2 yıl önce
slip39.h b3236278d9 adding trezor crypto lib 2 yıl önce
slip39_wordlist.h 57986fd46f running flipper fmt 2 yıl önce

README.md

trezor-crypto

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
  • BIP340 Schnorr signature signing/verifying
  • 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:

Repo source:

remote = git+ssh://git@github.com/trezor/trezor-crypto
branch = master
commit = 915b3dbbbf58c262865647728a3463b8785fc965
parent = 6ad3294f31a1e7484b43c104ff2880b965198cad
method = rebase
cmdver = 0.4.0