MX f85d288515 fix missing include пре 1 година
..
aes fdb62b1e29 more updates пре 2 година
chacha20poly1305 fdb62b1e29 more updates пре 2 година
ed25519_donna 6905aebe4c Fixes for -Wundef пре 1 година
monero f85d288515 fix missing include пре 1 година
AUTHORS fdb62b1e29 more updates пре 2 година
CONTRIBUTORS 800482e9f6 update apps пре 2 година
LICENSE fdb62b1e29 more updates пре 2 година
Makefile fdb62b1e29 more updates пре 2 година
README.md fdb62b1e29 more updates пре 2 година
address.c fdb62b1e29 more updates пре 2 година
address.h fdb62b1e29 more updates пре 2 година
base32.c 35084c0a02 fix for new c version пре 1 година
base32.h fdb62b1e29 more updates пре 2 година
base58.c fdb62b1e29 more updates пре 2 година
base58.h fdb62b1e29 more updates пре 2 година
bignum.c fdb62b1e29 more updates пре 2 година
bignum.h fdb62b1e29 more updates пре 2 година
bip32.c 800482e9f6 update apps пре 2 година
bip32.h fdb62b1e29 more updates пре 2 година
bip39.c fdb62b1e29 more updates пре 2 година
bip39.h fdb62b1e29 more updates пре 2 година
bip39_english.c fdb62b1e29 more updates пре 2 година
blake256.c fdb62b1e29 more updates пре 2 година
blake256.h fdb62b1e29 more updates пре 2 година
blake2_common.h fdb62b1e29 more updates пре 2 година
blake2b.c fdb62b1e29 more updates пре 2 година
blake2b.h fdb62b1e29 more updates пре 2 година
blake2s.c fdb62b1e29 more updates пре 2 година
blake2s.h fdb62b1e29 more updates пре 2 година
byte_order.h fdb62b1e29 more updates пре 2 година
cardano.c fdb62b1e29 more updates пре 2 година
cardano.h fdb62b1e29 more updates пре 2 година
cash_addr.c fdb62b1e29 more updates пре 2 година
cash_addr.h fdb62b1e29 more updates пре 2 година
chacha_drbg.c fdb62b1e29 more updates пре 2 година
chacha_drbg.h fdb62b1e29 more updates пре 2 година
check_mem.h fdb62b1e29 more updates пре 2 година
curves.c fdb62b1e29 more updates пре 2 година
curves.h fdb62b1e29 more updates пре 2 година
ecdsa.c fdb62b1e29 more updates пре 2 година
ecdsa.h fdb62b1e29 more updates пре 2 година
groestl.c fdb62b1e29 more updates пре 2 година
groestl.h fdb62b1e29 more updates пре 2 година
groestl_internal.h fdb62b1e29 more updates пре 2 година
hasher.c fdb62b1e29 more updates пре 2 година
hasher.h fdb62b1e29 more updates пре 2 година
hmac.c fdb62b1e29 more updates пре 2 година
hmac.h fdb62b1e29 more updates пре 2 година
hmac_drbg.c fdb62b1e29 more updates пре 2 година
hmac_drbg.h fdb62b1e29 more updates пре 2 година
memzero.c 800482e9f6 update apps пре 2 година
memzero.h fdb62b1e29 more updates пре 2 година
nem.c fdb62b1e29 more updates пре 2 година
nem.h fdb62b1e29 more updates пре 2 година
nist256p1.c fdb62b1e29 more updates пре 2 година
nist256p1.h fdb62b1e29 more updates пре 2 година
nist256p1.table fdb62b1e29 more updates пре 2 година
options.h 800482e9f6 update apps пре 2 година
pbkdf2.c fdb62b1e29 more updates пре 2 година
pbkdf2.h fdb62b1e29 more updates пре 2 година
rand.c 800482e9f6 update apps пре 2 година
rand.h 800482e9f6 update apps пре 2 година
rc4.c fdb62b1e29 more updates пре 2 година
rc4.h fdb62b1e29 more updates пре 2 година
rfc6979.c fdb62b1e29 more updates пре 2 година
rfc6979.h fdb62b1e29 more updates пре 2 година
ripemd160.c fdb62b1e29 more updates пре 2 година
ripemd160.h fdb62b1e29 more updates пре 2 година
script.c fdb62b1e29 more updates пре 2 година
script.h fdb62b1e29 more updates пре 2 година
secp256k1.c fdb62b1e29 more updates пре 2 година
secp256k1.h fdb62b1e29 more updates пре 2 година
secp256k1.table fdb62b1e29 more updates пре 2 година
segwit_addr.c fdb62b1e29 more updates пре 2 година
segwit_addr.h fdb62b1e29 more updates пре 2 година
setup.py fdb62b1e29 more updates пре 2 година
sha2.c fdb62b1e29 more updates пре 2 година
sha2.h fdb62b1e29 more updates пре 2 година
sha3.c fdb62b1e29 more updates пре 2 година
sha3.h fdb62b1e29 more updates пре 2 година
shamir.c fdb62b1e29 more updates пре 2 година
shamir.h fdb62b1e29 more updates пре 2 година
slip39.c fdb62b1e29 more updates пре 2 година
slip39.h fdb62b1e29 more updates пре 2 година
slip39_wordlist.h fdb62b1e29 more updates пре 2 година

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