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
Pavol Rusnak 0c622d62e1
format: start using clang-format with style=Google
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 format: start using clang-format with style=Google 5 years ago
tests format: start using clang-format with style=Google 5 years ago
tools format: start using clang-format with style=Google 5 years ago
.clang-format format: start using clang-format with style=Google 5 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 format: start using clang-format with style=Google 5 years ago
address.h format: start using clang-format with style=Google 5 years ago
base32.c format: start using clang-format with style=Google 5 years ago
base32.h format: start using clang-format with style=Google 5 years ago
base58.c format: start using clang-format with style=Google 5 years ago
base58.h format: start using clang-format with style=Google 5 years ago
bignum.c format: start using clang-format with style=Google 5 years ago
bignum.h format: start using clang-format with style=Google 5 years ago
bip32.c format: start using clang-format with style=Google 5 years ago
bip32.h format: start using clang-format with style=Google 5 years ago
bip39.c format: start using clang-format with style=Google 5 years ago
bip39.h format: start using clang-format with style=Google 5 years ago
bip39_english.h format: start using clang-format with style=Google 5 years ago
blake2_common.h format: start using clang-format with style=Google 5 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 format: start using clang-format with style=Google 5 years ago
cash_addr.h format: start using clang-format with style=Google 5 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 format: start using clang-format with style=Google 5 years ago
ecdsa.h format: start using clang-format with style=Google 5 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 format: start using clang-format with style=Google 5 years ago
hasher.h format: start using clang-format with style=Google 5 years ago
hmac.c format: start using clang-format with style=Google 5 years ago
hmac.h format: start using clang-format with style=Google 5 years ago
memzero.c format: start using clang-format with style=Google 5 years ago
memzero.h format: start using clang-format with style=Google 5 years ago
nem.c format: start using clang-format with style=Google 5 years ago
nem.h format: start using clang-format with style=Google 5 years ago
nist256p1.c format: start using clang-format with style=Google 5 years ago
nist256p1.h format: start using clang-format with style=Google 5 years ago
nist256p1.table Add support for NIST256P1 elliptic curve 9 years ago
options.h format: start using clang-format with style=Google 5 years ago
pbkdf2.c format: start using clang-format with style=Google 5 years ago
pbkdf2.h format: start using clang-format with style=Google 5 years ago
rand.c format: start using clang-format with style=Google 5 years ago
rand.h rand: add a reseed function to be used in tests 5 years ago
rc4.c format: start using clang-format with style=Google 5 years ago
rc4.h format: start using clang-format with style=Google 5 years ago
rfc6979.c format: start using clang-format with style=Google 5 years ago
rfc6979.h format: start using clang-format with style=Google 5 years ago
ripemd160.c replace all usage of memset(_, 0, _) with memzero 5 years ago
ripemd160.h format: start using clang-format with style=Google 5 years ago
script.c format: start using clang-format with style=Google 5 years ago
script.h format: start using clang-format with style=Google 5 years ago
secp256k1.c format: start using clang-format with style=Google 5 years ago
secp256k1.h format: start using clang-format with style=Google 5 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 format: start using clang-format with style=Google 5 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 format: start using clang-format with style=Google 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: