1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00
trezor-firmware/crypto
2024-04-19 15:51:33 +02:00
..
aes chore(crypto): Zero-initialize stack variables in AES code. 2024-04-03 10:26:46 +02:00
chacha20poly1305
ed25519-donna
fuzzer
gui build: add bip39_english.o where appropriate 2022-06-01 16:35:33 +02:00
monero
tests
tools fix(crypto): fix wrong input handling in mktable 2021-11-19 23:10:34 +01:00
.gitignore toplevel: reorganize .gitignore files 2019-04-17 00:05:24 +02:00
.gitmodules
.gitrepo
address.c
address.h
AUTHORS MONOREPO MERGE trezor-crypto 2019-04-15 19:14:52 +02:00
base32.c
base32.h MONOREPO MERGE trezor-crypto 2019-04-15 19:14:52 +02:00
base58.c
base58.h
bignum.c fix(crypto): fix assertion 2023-09-27 14:04:45 +02:00
bignum.h
bip32.c
bip32.h feat(crypto): API for clearing internal caches 2022-02-16 15:21:32 +01:00
bip39_english.c
bip39.c fix(crypto): Fix bip39 out of bounds read. 2022-07-04 14:10:39 +02:00
bip39.h
blake2_common.h
blake2b.c
blake2b.h
blake2s.c
blake2s.h MONOREPO MERGE trezor-crypto 2019-04-15 19:14:52 +02:00
blake256.c
blake256.h
buffer.c feat(core/prodtest): Verify device certificate chain in CERTDEV WRITE. 2023-12-08 12:30:28 +01:00
buffer.h feat(core/prodtest): Verify device certificate chain in CERTDEV WRITE. 2023-12-08 12:30:28 +01:00
byte_order.h feat(crypto): add big endian support 2021-11-04 20:38:52 +01:00
cardano.c
cardano.h
cash_addr.c
cash_addr.h
chacha_drbg.c
chacha_drbg.h
check_mem.h MONOREPO MERGE trezor-crypto 2019-04-15 19:14:52 +02:00
CONTRIBUTORS crypto: add fuzz testing harnesses and documentation 2020-07-07 14:41:10 +02:00
curves.c
curves.h
der.c
der.h
ecdsa_internal.h
ecdsa.c
ecdsa.h refactor(core,crypto): make public key derivation functions return 2021-10-25 14:41:28 +02:00
groestl_internal.h fix(crypto): fix build on clang/arm64 2020-12-17 00:09:47 +01:00
groestl.c
groestl.h
hash_to_curve.c feat(crypto): implement hashing to curve 2023-09-27 14:04:45 +02:00
hash_to_curve.h feat(crypto): implement hashing to curve 2023-09-27 14:04:45 +02:00
hasher.c
hasher.h feat(crypto): Add TapSigHash to Hasher. 2021-11-18 22:39:32 +01:00
hmac_drbg.c
hmac_drbg.h
hmac.c
hmac.h MONOREPO MERGE trezor-crypto 2019-04-15 19:14:52 +02:00
LICENSE
Makefile
memzero.c fix(crypto): update case of windows.h (#1560) 2021-04-08 14:16:23 +02:00
memzero.h
nem.c feat(crypto): add thousands separator to bn_format 2022-08-02 20:35:49 +02:00
nem.h
nist256p1.c
nist256p1.h
nist256p1.table
options.h
pbkdf2.c
pbkdf2.h
rand.c
rand.h
rc4.c MONOREPO MERGE trezor-crypto 2019-04-15 19:14:52 +02:00
rc4.h
README.md
rfc6979.c
rfc6979.h
ripemd160.c
ripemd160.h
script.c
script.h
secp256k1.c
secp256k1.h MONOREPO MERGE trezor-crypto 2019-04-15 19:14:52 +02:00
secp256k1.table
segwit_addr.c
segwit_addr.h
setup.py
sha2.c
sha2.h
sha3.c
sha3.h MONOREPO MERGE trezor-crypto 2019-04-15 19:14:52 +02:00
shamir.c
shamir.h
slip39_english.c
slip39_wordlist.h
slip39.c
slip39.h
tls_prf.c
tls_prf.h
zkp_bip340.c
zkp_bip340.h
zkp_context.c
zkp_context.h
zkp_ecdsa.c
zkp_ecdsa.h

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: