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.
 
 
 
 
 
 
Go to file
Saleem Rashid 2ac59892b7
nem: refactor serialization code
5 years ago
aes aes: update to newest version 6 years ago
chacha20poly1305 Fix counter initialization bug in rfc7539_init(). Fix const correctness in rfc7539.h and chacha20poly1305.h. (#188) 6 years ago
ed25519-donna replace all usage of memset(_, 0, _) with memzero 5 years ago
gui introduce version attributes to hdnode_serialize_public/private and hdnode_deserialize functions 7 years ago
monero move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-base.c (#177) 6 years ago
tests replace all usage of memset(_, 0, _) with memzero 5 years ago
tools hasher: Replace hasher_Double with HASHER_*D 6 years ago
.gitignore move tests into tests/ 6 years ago
.gitmodules integrate Wycheproof tests 6 years ago
.travis.yml integrate Wycheproof tests 6 years ago
AUTHORS import sources 11 years ago
CONTRIBUTORS bignum: introduce read/write_le 8 years ago
LICENSE adjust format of LICENSE 8 years ago
Makefile move ge25519.c into curve25519-donna-32bit.c and ed25519-donna-impl-base.c (#177) 6 years ago
README.md integrate Wycheproof tests 6 years ago
address.c address: fix ethereum address computation, chain_id is uint32 6 years ago
address.h address: fix ethereum address computation, chain_id is uint32 6 years ago
base32.c base32: Handle when char is unsigned 7 years ago
base32.h base32: Return char* from base32_encode 7 years ago
base58.c replace all usage of memset(_, 0, _) with memzero 5 years ago
base58.h xmr: monero crypto implemented, tests 6 years ago
bignum.c bignum: add assumption about i to bn_multiply_reduce_step 5 years ago
bignum.h bignum: Fix bn_digitcount 7 years ago
bip32.c replace all usage of memset(_, 0, _) with memzero 5 years ago
bip32.h rename hasher_multisig to hasher_script 6 years ago
bip39.c bip39: truncate long passphrases (more than 256 characters) 5 years ago
bip39.h bip39: truncate long passphrases (more than 256 characters) 5 years ago
bip39_english.h bip39: use static modifier 6 years ago
blake2_common.h add Blake2b 7 years ago
blake2b.c replace all usage of memset(_, 0, _) with memzero 5 years ago
blake2b.h blake2s: add InitPersonal 6 years ago
blake2s.c replace all usage of memset(_, 0, _) with memzero 5 years ago
blake2s.h blake2s: add InitPersonal 6 years ago
blake256.c blake256: Replace with working implementation 7 years ago
blake256.h blake256: Replace with working implementation 7 years ago
cash_addr.c cash_addr: fix hardcoded value of CHECKSUM_SIZE 6 years ago
cash_addr.h Added cashaddr support (#120) 6 years ago
check_mem.h check_mem: Fix Check 0.11 7 years ago
curves.c add smartcash curve (#176) 6 years ago
curves.h add smartcash curve (#176) 6 years ago
ecdsa.c Improve function naming (#181) 6 years ago
ecdsa.h Improve function naming (#181) 6 years ago
groestl.c replace all usage of memset(_, 0, _) with memzero 5 years ago
groestl.h Groestl hash: more cleanups 6 years ago
groestl_internal.h Groestl hash cleanup 6 years ago
hasher.c hasher: use param_size in call to blake2b_InitPersonal 5 years ago
hasher.h hasher: add param_size to hasher_InitParam 5 years ago
hmac.c replace all usage of memset(_, 0, _) with memzero 5 years ago
hmac.h Faster PBKDF2 by reusing intermediate results. 8 years ago
memzero.c memzero: add newlib support 5 years ago
memzero.h use memzero from libsodium 5 years ago
nem.c nem: refactor serialization code 5 years ago
nem.h Makefile: simplify include path, move subdirs to where used in C files 6 years ago
nist256p1.c rename hasher_multisig to hasher_script 6 years ago
nist256p1.h ed25519 support 8 years ago
nist256p1.table Add support for NIST256P1 elliptic curve 9 years ago
options.h add USE_CARDANO default to options.h 6 years ago
pbkdf2.c replace all usage of memset(_, 0, _) with memzero 5 years ago
pbkdf2.h replace cardano with v2 (#179) 6 years ago
rand.c rand: add a reseed function to be used in tests 5 years ago
rand.h rand: add a reseed function to be used in tests 5 years ago
rc4.c rc4: Initial commit 7 years ago
rc4.h rc4: Initial commit 7 years ago
rfc6979.c introduce and use memzero instead of explicit_bzero 6 years ago
rfc6979.h split rfc6979 from ecdsa into separate module 7 years ago
ripemd160.c replace all usage of memset(_, 0, _) with memzero 5 years ago
ripemd160.h extract block size and digest size as macros in ripemd160 8 years ago
script.c hasher: Replace hasher_Double with HASHER_*D 6 years ago
script.h add script parsing functions 8 years ago
secp256k1.c rename hasher_multisig to hasher_script 6 years ago
secp256k1.h add smartcash curve (#176) 6 years ago
secp256k1.table Add support for NIST256P1 elliptic curve 9 years ago
segwit_addr.c fix signed/unsigned comparison 6 years ago
segwit_addr.h Bech32 (BIP173) address support 7 years ago
setup.py use env where possible 6 years ago
sha2.c Adapted sha1 to match sha2 code. 6 years ago
sha2.h sha2: import SHA1 implementation 8 years ago
sha3.c replace all usage of memset(_, 0, _) with memzero 5 years ago
sha3.h tests: Import NEM test vectors for keccak_256 7 years ago
shell.nix replace all usage of memset(_, 0, _) with memzero 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: