Struan 6c08905ab9 feat: fixes from Momentum hai 1 ano
..
aes 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
chacha20poly1305 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
ed25519_donna 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
monero 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
AUTHORS 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
CONTRIBUTORS 69ebea1dfe chore: OCD fixes %!s(int64=2) %!d(string=hai) anos
LICENSE 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
Makefile 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
README.md 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
address.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
address.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
base32.c 6c08905ab9 feat: fixes from Momentum hai 1 ano
base32.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
base58.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
base58.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
bignum.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
bignum.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
bip32.c 75f3c96014 chore: slight refactor of crypto lib for consistency %!s(int64=2) %!d(string=hai) anos
bip32.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
bip39.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
bip39.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
bip39_english.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
blake256.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
blake256.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
blake2_common.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
blake2b.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
blake2b.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
blake2s.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
blake2s.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
byte_order.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
cardano.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
cardano.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
cash_addr.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
cash_addr.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
chacha_drbg.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
chacha_drbg.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
check_mem.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
curves.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
curves.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
ecdsa.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
ecdsa.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
groestl.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
groestl.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
groestl_internal.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
hasher.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
hasher.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
hmac.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
hmac.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
hmac_drbg.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
hmac_drbg.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
memzero.c 75f3c96014 chore: slight refactor of crypto lib for consistency %!s(int64=2) %!d(string=hai) anos
memzero.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
nem.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
nem.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
nist256p1.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
nist256p1.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
nist256p1.table 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
options.h 75f3c96014 chore: slight refactor of crypto lib for consistency %!s(int64=2) %!d(string=hai) anos
pbkdf2.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
pbkdf2.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
rand.c 75f3c96014 chore: slight refactor of crypto lib for consistency %!s(int64=2) %!d(string=hai) anos
rand.h 75f3c96014 chore: slight refactor of crypto lib for consistency %!s(int64=2) %!d(string=hai) anos
rc4.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
rc4.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
rfc6979.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
rfc6979.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
ripemd160.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
ripemd160.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
script.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
script.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
secp256k1.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
secp256k1.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
secp256k1.table 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
segwit_addr.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
segwit_addr.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
setup.py 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
sha2.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
sha2.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
sha3.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
sha3.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
shamir.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
shamir.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
slip39.c 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
slip39.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos
slip39_wordlist.h 47890a11e9 making crypto code a private lib %!s(int64=2) %!d(string=hai) anos

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