MX ee022710ef update apps 2 年之前
..
aes 0bf9767883 API 31 / unzip sources 2 年之前
chacha20poly1305 0bf9767883 API 31 / unzip sources 2 年之前
ed25519_donna 0bf9767883 API 31 / unzip sources 2 年之前
monero 0bf9767883 API 31 / unzip sources 2 年之前
AUTHORS 0bf9767883 API 31 / unzip sources 2 年之前
CONTRIBUTORS 0bf9767883 API 31 / unzip sources 2 年之前
LICENSE 0bf9767883 API 31 / unzip sources 2 年之前
Makefile 0bf9767883 API 31 / unzip sources 2 年之前
README.md 0bf9767883 API 31 / unzip sources 2 年之前
address.c 0bf9767883 API 31 / unzip sources 2 年之前
address.h 0bf9767883 API 31 / unzip sources 2 年之前
base32.c 0bf9767883 API 31 / unzip sources 2 年之前
base32.h 0bf9767883 API 31 / unzip sources 2 年之前
base58.c 0bf9767883 API 31 / unzip sources 2 年之前
base58.h 0bf9767883 API 31 / unzip sources 2 年之前
bignum.c 0bf9767883 API 31 / unzip sources 2 年之前
bignum.h 0bf9767883 API 31 / unzip sources 2 年之前
bip32.c 0bf9767883 API 31 / unzip sources 2 年之前
bip32.h 0bf9767883 API 31 / unzip sources 2 年之前
bip39.c 0bf9767883 API 31 / unzip sources 2 年之前
bip39.h 0bf9767883 API 31 / unzip sources 2 年之前
bip39_english.c 0bf9767883 API 31 / unzip sources 2 年之前
blake256.c 0bf9767883 API 31 / unzip sources 2 年之前
blake256.h 0bf9767883 API 31 / unzip sources 2 年之前
blake2_common.h 0bf9767883 API 31 / unzip sources 2 年之前
blake2b.c 0bf9767883 API 31 / unzip sources 2 年之前
blake2b.h 0bf9767883 API 31 / unzip sources 2 年之前
blake2s.c 0bf9767883 API 31 / unzip sources 2 年之前
blake2s.h 0bf9767883 API 31 / unzip sources 2 年之前
byte_order.h 0bf9767883 API 31 / unzip sources 2 年之前
cardano.c 0bf9767883 API 31 / unzip sources 2 年之前
cardano.h 0bf9767883 API 31 / unzip sources 2 年之前
cash_addr.c 0bf9767883 API 31 / unzip sources 2 年之前
cash_addr.h 0bf9767883 API 31 / unzip sources 2 年之前
chacha_drbg.c 0bf9767883 API 31 / unzip sources 2 年之前
chacha_drbg.h 0bf9767883 API 31 / unzip sources 2 年之前
check_mem.h 0bf9767883 API 31 / unzip sources 2 年之前
curves.c 0bf9767883 API 31 / unzip sources 2 年之前
curves.h 0bf9767883 API 31 / unzip sources 2 年之前
ecdsa.c 0bf9767883 API 31 / unzip sources 2 年之前
ecdsa.h 0bf9767883 API 31 / unzip sources 2 年之前
groestl.c 0bf9767883 API 31 / unzip sources 2 年之前
groestl.h 0bf9767883 API 31 / unzip sources 2 年之前
groestl_internal.h 0bf9767883 API 31 / unzip sources 2 年之前
hasher.c 0bf9767883 API 31 / unzip sources 2 年之前
hasher.h 0bf9767883 API 31 / unzip sources 2 年之前
hmac.c 0bf9767883 API 31 / unzip sources 2 年之前
hmac.h 0bf9767883 API 31 / unzip sources 2 年之前
hmac_drbg.c 0bf9767883 API 31 / unzip sources 2 年之前
hmac_drbg.h 0bf9767883 API 31 / unzip sources 2 年之前
memzero.c 0bf9767883 API 31 / unzip sources 2 年之前
memzero.h 0bf9767883 API 31 / unzip sources 2 年之前
nem.c 0bf9767883 API 31 / unzip sources 2 年之前
nem.h 0bf9767883 API 31 / unzip sources 2 年之前
nist256p1.c 0bf9767883 API 31 / unzip sources 2 年之前
nist256p1.h 0bf9767883 API 31 / unzip sources 2 年之前
nist256p1.table 0bf9767883 API 31 / unzip sources 2 年之前
options.h 0bf9767883 API 31 / unzip sources 2 年之前
pbkdf2.c 0bf9767883 API 31 / unzip sources 2 年之前
pbkdf2.h 0bf9767883 API 31 / unzip sources 2 年之前
rand.c ee022710ef update apps 2 年之前
rand.h 0bf9767883 API 31 / unzip sources 2 年之前
rc4.c 0bf9767883 API 31 / unzip sources 2 年之前
rc4.h 0bf9767883 API 31 / unzip sources 2 年之前
rfc6979.c 0bf9767883 API 31 / unzip sources 2 年之前
rfc6979.h 0bf9767883 API 31 / unzip sources 2 年之前
ripemd160.c 0bf9767883 API 31 / unzip sources 2 年之前
ripemd160.h 0bf9767883 API 31 / unzip sources 2 年之前
script.c 0bf9767883 API 31 / unzip sources 2 年之前
script.h 0bf9767883 API 31 / unzip sources 2 年之前
secp256k1.c 0bf9767883 API 31 / unzip sources 2 年之前
secp256k1.h 0bf9767883 API 31 / unzip sources 2 年之前
secp256k1.table 0bf9767883 API 31 / unzip sources 2 年之前
segwit_addr.c 0bf9767883 API 31 / unzip sources 2 年之前
segwit_addr.h 0bf9767883 API 31 / unzip sources 2 年之前
setup.py 0bf9767883 API 31 / unzip sources 2 年之前
sha2.c 0bf9767883 API 31 / unzip sources 2 年之前
sha2.h 0bf9767883 API 31 / unzip sources 2 年之前
sha3.c 0bf9767883 API 31 / unzip sources 2 年之前
sha3.h 0bf9767883 API 31 / unzip sources 2 年之前
shamir.c 0bf9767883 API 31 / unzip sources 2 年之前
shamir.h 0bf9767883 API 31 / unzip sources 2 年之前
slip39.c 0bf9767883 API 31 / unzip sources 2 年之前
slip39.h 0bf9767883 API 31 / unzip sources 2 年之前
slip39_wordlist.h 0bf9767883 API 31 / unzip sources 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