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.
trezor-firmware/crypto
Ondřej Vejpustek 7a992a593d
fix(crypto): fix sign-compare warning
1 week ago
..
aes fix(crypto): fix sign-compare warning 1 week ago
chacha20poly1305
ed25519-donna refactor(core): Improve parameter naming in ed25519_sign_ext(). 2 months ago
fuzzer refactor: Unify secp256k1_zkp usage. 1 year ago
gui
monero style: fix style according to new clang 4 months ago
tests refactor(crypto): remove redundant include 1 week ago
tools
.gitignore
.gitmodules
.gitrepo
AUTHORS
CONTRIBUTORS
LICENSE
Makefile refactor(crypto,core,lagacy): use secp256k1 submodule for ECDH 4 weeks ago
README.md
address.c
address.h
base32.c
base32.h
base58.c
base58.h
bignum.c fix(crypto): fix assertion 12 months ago
bignum.h feat(crypto): introduce bn_read_be_512 12 months ago
bip32.c refacor(crypto): refactor hdnode_public_ckd 4 weeks ago
bip32.h refacor(crypto): refactor hdnode_public_ckd 4 weeks ago
bip39.c
bip39.h
bip39_english.c
blake2_common.h
blake2b.c refactor(crypto): use functions instead of macros in blake2b and blake2s 1 week ago
blake2b.h
blake2s.c refactor(crypto): use functions instead of macros in blake2b and blake2s 1 week ago
blake2s.h
blake256.c
blake256.h
buffer.c feat(core/prodtest): Verify device certificate chain in CERTDEV WRITE. 10 months ago
buffer.h feat(core/prodtest): Verify device certificate chain in CERTDEV WRITE. 10 months ago
byte_order.h
cardano.c refactor(crypto): use boolean to indicate public key is set 4 weeks ago
cardano.h
cash_addr.c
cash_addr.h
chacha_drbg.c
chacha_drbg.h style: fix style according to new clang 4 months ago
check_mem.h
curves.c
curves.h
der.c feat(crypto): Use entire DER encoding in DER_ITEM. 10 months ago
der.h feat(core/prodtest): Check device certificate chain integrity using authority key identifier. 9 months ago
ecdsa.c feat(crypto): introduce ecdsa_tweak_public_key 4 weeks ago
ecdsa.h feat(crypto): introduce ecdsa_tweak_public_key 4 weeks ago
ecdsa_internal.h feat(crypto): introduce ecdsa_tweak_public_key 4 weeks ago
elligator2.c feat(crypto): implement elligator2 4 months ago
elligator2.h feat(crypto): implement elligator2 4 months ago
groestl.c refactor(crypto): use functions instead of macros in groestl512 1 week ago
groestl.h refactor(crypto): use functions instead of macros in groestl512 1 week ago
groestl_internal.h
hash_to_curve.c feat(crypto): implement hashing to curve 12 months ago
hash_to_curve.h feat(crypto): implement hashing to curve 12 months ago
hasher.c
hasher.h
hmac.c
hmac.h
hmac_drbg.c
hmac_drbg.h
memzero.c
memzero.h
nem.c
nem.h
nist256p1.c
nist256p1.h
nist256p1.table
options.h refactor(crypto): introduce symbolic constants for size optimization 1 week ago
pbkdf2.c
pbkdf2.h
rand.c feat(core): Integrate Optiga into PIN verification. 12 months ago
rand.h feat(core): Integrate Optiga into PIN verification. 12 months ago
rc4.c
rc4.h
rfc6979.c
rfc6979.h
ripemd160.c refactor(crypto): adapt ripemd160 implementation 1 week ago
ripemd160.h refactor(crypto): adapt ripemd160 implementation 1 week ago
script.c
script.h
secp256k1.c
secp256k1.h
secp256k1.table
segwit_addr.c
segwit_addr.h
setup.py
sha2.c feat(crypto): Implement sha384_Raw(). 1 year ago
sha2.h feat(crypto): Implement sha384_Raw(). 1 year ago
sha3.c
sha3.h
shamir.c
shamir.h
slip39.c
slip39.h
slip39_english.c
slip39_wordlist.h
tls_prf.c feat(crypto): Implement TLS PRF with SHA-256. 1 year ago
tls_prf.h feat(crypto): Implement TLS PRF with SHA-256. 1 year ago
zkp_bip340.c fix(crypto): imporve handling of return value 5 months ago
zkp_bip340.h
zkp_context.c fix(crypto): imporve handling of return value 5 months ago
zkp_context.h
zkp_ecdsa.c feat(crypto): introduce ecdsa_tweak_public_key 4 weeks ago
zkp_ecdsa.h feat(crypto): introduce ecdsa_tweak_public_key 4 weeks 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
  • 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: