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
jmuravsky 18b109e2bd
Add Cardano currency support
6 years ago
aes gitignore: Add aestst 7 years ago
chacha20poly1305 fix rfc7539 padding 6 years ago
ed25519-donna Add Cardano currency support 6 years ago
gui introduce version attributes to hdnode_serialize_public/private and hdnode_deserialize functions 7 years ago
tests Add Cardano currency support 6 years ago
tools hasher: Replace hasher_Double with HASHER_*D 6 years ago
.gitignore move tests into tests/ 6 years ago
.travis.yml use python3 in travis 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 Add Cardano currency support 6 years ago
README.md README: Add Base32 custom alphabet support 7 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 hasher: Replace hasher_Double with HASHER_*D 6 years ago
base58.h Use hasher_Raw instead of sha256_Raw 7 years ago
bignum.c Reworked bn_format. 6 years ago
bignum.h bignum: Fix bn_digitcount 7 years ago
bip32.c Add Cardano currency support 6 years ago
bip32.h Add Cardano currency support 6 years ago
bip39.c Add Cardano currency support 6 years ago
bip39.h Add Cardano currency support 6 years ago
bip39_english.h bip39: use static modifier 7 years ago
blake2_common.h add Blake2b 7 years ago
blake2b.c blake2b: add personal_len to blake2b_InitPersonal 6 years ago
blake2b.h blake2s: add InitPersonal 6 years ago
blake2s.c blake2s: add InitPersonal 6 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 cashaddr: fix whitespace 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 Cardano currency support 6 years ago
curves.h Add Cardano currency support 6 years ago
ecdsa.c hasher: Replace hasher_Double with HASHER_*D 6 years ago
ecdsa.h Added cashaddr support (#120) 6 years ago
groestl.c Groestl hash: remove even more dead code 6 years ago
groestl.h Groestl hash: more cleanups 6 years ago
groestl_internal.h Groestl hash cleanup 6 years ago
hasher.c blake2b: add personal_len to blake2b_InitPersonal 6 years ago
hasher.h add overwinter hashers 6 years ago
hmac.c introduce and use memzero instead of explicit_bzero 6 years ago
hmac.h Faster PBKDF2 by reusing intermediate results. 8 years ago
memzero.c introduce and use memzero instead of explicit_bzero 6 years ago
memzero.h introduce and use memzero instead of explicit_bzero 6 years ago
nem.c Fixed undefined behavior 6 years ago
nem.h Makefile: simplify include path, move subdirs to where used in C files 6 years ago
nem_serialize.h nem: Add transaction serialization methods 7 years ago
nist256p1.c hasher: Replace hasher_Double with HASHER_*D 6 years ago
nist256p1.h ed25519 support 8 years ago
nist256p1.table Add support for NIST256P1 elliptic curve 9 years ago
options.h ed25519: aA + bB double scalarmult added 6 years ago
pbkdf2.c introduce and use memzero instead of explicit_bzero 6 years ago
pbkdf2.h Faster PBKDF2 by reusing intermediate results. 8 years ago
rand.c Fixed undefined behavior 6 years ago
rand.h add warning message to rand.c 6 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 introduce and use memzero instead of explicit_bzero 6 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 Add GRS curve 6 years ago
secp256k1.h Add GRS curve 6 years ago
secp256k1.table Add support for NIST256P1 elliptic curve 9 years ago
segwit_addr.c Updated to latest from bech32 repository. 7 years ago
segwit_addr.h Bech32 (BIP173) address support 7 years ago
setup.py Add Python tests for Curve25519 ECDH 8 years ago
sha2.c Adapted sha1 to match sha2 code. 6 years ago
sha2.h sha2: import SHA1 implementation 8 years ago
sha3.c introduce and use memzero instead of explicit_bzero 6 years ago
sha3.h tests: Import NEM test vectors for keccak_256 7 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)

Distibuted under MIT License.

Some parts of the library come from external sources: