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 4504469e80
crypto: add tests for chacha_drbg
4 years ago
..
aes crypto: explicitly initialize variables 5 years ago
chacha20poly1305 crypto: explicitly initialize variables 5 years ago
ed25519-donna crypto: explicitly initialize variables 5 years ago
gui all: rename TREZOR to Trezor where possible 5 years ago
monero crypto: explicitly initialize variable length arrays 5 years ago
tests crypto: add tests for chacha_drbg 4 years ago
tools crypto: split hdnode_deserialize into hdnode_deserialize_{public,private} 4 years ago
.gitignore toplevel: reorganize .gitignore files 5 years ago
.gitmodules MONOREPO MERGE trezor-crypto 5 years ago
.gitrepo git subrepo pull crypto 5 years ago
AUTHORS MONOREPO MERGE trezor-crypto 5 years ago
CONTRIBUTORS MONOREPO MERGE trezor-crypto 5 years ago
LICENSE MONOREPO MERGE trezor-crypto 5 years ago
Makefile crypto: add tests for chacha_drbg 4 years ago
README.md MONOREPO MERGE trezor-crypto 5 years ago
address.c crypto: explicitly initialize variables 5 years ago
address.h MONOREPO MERGE trezor-crypto 5 years ago
base32.c crypto: explicitly initialize variable length arrays 5 years ago
base32.h MONOREPO MERGE trezor-crypto 5 years ago
base58.c crypto: explicitly initialize variable length arrays 5 years ago
base58.h MONOREPO MERGE trezor-crypto 5 years ago
bignum.c MONOREPO MERGE trezor-crypto 5 years ago
bignum.h MONOREPO MERGE trezor-crypto 5 years ago
bip32.c crypto: split hdnode_deserialize into hdnode_deserialize_{public,private} 4 years ago
bip32.h crypto: split hdnode_deserialize into hdnode_deserialize_{public,private} 4 years ago
bip39.c crypto: explicitly initialize variables 5 years ago
bip39.h crypto: refactor bip39 api 5 years ago
bip39_english.h MONOREPO MERGE trezor-crypto 5 years ago
blake2_common.h MONOREPO MERGE trezor-crypto 5 years ago
blake2b.c crypto: explicitly initialize variables 5 years ago
blake2b.h MONOREPO MERGE trezor-crypto 5 years ago
blake2s.c crypto: explicitly initialize variables 5 years ago
blake2s.h MONOREPO MERGE trezor-crypto 5 years ago
blake256.c crypto: explicitly initialize variables 5 years ago
blake256.h all: remove extraneous whitespace 5 years ago
cash_addr.c crypto: explicitly initialize variables 5 years ago
cash_addr.h MONOREPO MERGE trezor-crypto 5 years ago
chacha_drbg.c crypto: add chacha_drbg 4 years ago
chacha_drbg.h crypto: add chacha_drbg 4 years ago
check_mem.h MONOREPO MERGE trezor-crypto 5 years ago
curves.c MONOREPO MERGE trezor-crypto 5 years ago
curves.h MONOREPO MERGE trezor-crypto 5 years ago
ecdsa.c crypto: explicitly initialize variables 5 years ago
ecdsa.h crypto/ecdsa: add compress_coords (#42) 5 years ago
groestl.c crypto: explicitly initialize variables 5 years ago
groestl.h MONOREPO MERGE trezor-crypto 5 years ago
groestl_internal.h MONOREPO MERGE trezor-crypto 5 years ago
hasher.c crypto: explicitly initialize variables 5 years ago
hasher.h MONOREPO MERGE trezor-crypto 5 years ago
hmac.c crypto: explicitly initialize variables 5 years ago
hmac.h MONOREPO MERGE trezor-crypto 5 years ago
hmac_drbg.c crypto: explicitly initialize variables 5 years ago
hmac_drbg.h crypto/hmac_drbg: Fix style. 5 years ago
memzero.c MONOREPO MERGE trezor-crypto 5 years ago
memzero.h MONOREPO MERGE trezor-crypto 5 years ago
nem.c crypto: explicitly initialize variables 5 years ago
nem.h MONOREPO MERGE trezor-crypto 5 years ago
nist256p1.c MONOREPO MERGE trezor-crypto 5 years ago
nist256p1.h MONOREPO MERGE trezor-crypto 5 years ago
nist256p1.table MONOREPO MERGE trezor-crypto 5 years ago
options.h MONOREPO MERGE trezor-crypto 5 years ago
pbkdf2.c crypto: explicitly initialize variables 5 years ago
pbkdf2.h MONOREPO MERGE trezor-crypto 5 years ago
rand.c crypto: explicitly initialize variables 5 years ago
rand.h MONOREPO MERGE trezor-crypto 5 years ago
rc4.c MONOREPO MERGE trezor-crypto 5 years ago
rc4.h MONOREPO MERGE trezor-crypto 5 years ago
rfc6979.c crypto: explicitly initialize variables 5 years ago
rfc6979.h crypto/rfc6979: Use the new HMAC DRBG implementation in rfc6979.c. Remove code duplication between rfc6979.c and ecdsa.c. 5 years ago
ripemd160.c crypto: explicitly initialize variables 5 years ago
ripemd160.h MONOREPO MERGE trezor-crypto 5 years ago
script.c crypto: explicitly initialize variables 5 years ago
script.h MONOREPO MERGE trezor-crypto 5 years ago
secp256k1.c MONOREPO MERGE trezor-crypto 5 years ago
secp256k1.h MONOREPO MERGE trezor-crypto 5 years ago
secp256k1.table MONOREPO MERGE trezor-crypto 5 years ago
segwit_addr.c crypto: explicitly initialize variables 5 years ago
segwit_addr.h MONOREPO MERGE trezor-crypto 5 years ago
setup.py MONOREPO MERGE trezor-crypto 5 years ago
sha2.c crypto: explicitly initialize variables 5 years ago
sha2.h MONOREPO MERGE trezor-crypto 5 years ago
sha3.c crypto: explicitly initialize variables 5 years ago
sha3.h MONOREPO MERGE trezor-crypto 5 years ago
shamir.c crypto: explicitly initialize variable length arrays 5 years ago
shamir.h crypto/shamir: Add copyright. 5 years ago
slip39.c core: add slip39 keyboard 5 years ago
slip39.h core: add slip39 keyboard 5 years ago
slip39_wordlist.h core: add slip39 keyboard 5 years 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
  • 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: