SomberNight
7e534f4865
dependencies: rm pyaes from requirements
...
Since #6014 , pyaes is not really needed anymore.
As we currently require either one of pycryptodomex or cryptography,
even if pyaes is available, it will not be used.
We could strip it out completely from crypto.py...
In any case, pyaes is still pulled in by some hw wallet dependencies indirectly;
but the core library no longer depends on it.
5 years ago
SomberNight
e1a2299f0c
channel backup versions: trivial clean-up
6 years ago
ThomasV
f9788a5d90
channel backups: add MAC
6 years ago
ThomasV
26ae6d68a3
add encryption version to channel backups
6 years ago
SomberNight
725b6f1564
crypto: chacha20-methods: make associated_data param optional
6 years ago
JeremyRand
62ca53cdf4
Fix "backed" typo in crypto.py
6 years ago
SomberNight
1ea89af012
crypto.pw_decode: fix one case of raising incorrect exception
6 years ago
SomberNight
789b78cab5
crypto: trivial clean-up of pw_encode/pw_decode functions
6 years ago
ThomasV
c8f602c9d7
pw_decode, pw_encode: separate bytes functions
6 years ago
SomberNight
74a3faf803
crypto: add 'cryptography' as alt dependency for 'pycryptodomex'
6 years ago
SomberNight
18f3a37032
crypto: move LN-related chacha20/poly1305 code into crypto.py
6 years ago
ThomasV
5666188e9e
update lnbase after crypto refactoring
6 years ago
ThomasV
6ba846bff0
fix hash in make_offered_htlc
6 years ago
SomberNight
8f5f0e46aa
keystore: fail sooner if unsupported version
...
follow-up #4937
7 years ago
SomberNight
0c9a03ac54
keystore: revert KDF change from #4838
...
making the KDF expensive is blocked on #4909
7 years ago
SomberNight
f04e5fbed6
crypto: fix pkcs7 padding check
...
related: ricmoo/pyaes#22
in practice, the only strings we would incorrectly accept are
(certain length of) all zero bytes
7 years ago
SomberNight
48b0de7871
keystore: stronger pbkdf for encryption
7 years ago
SomberNight
aceb022f9d
crypto: more type annotations
7 years ago
SomberNight
082a83dd85
rename crypto.Hash to sha256d
7 years ago
Janus
097ac144d9
file reorganization with top-level module
8 years ago
SomberNight
bc0036297b
fast hmac on python 3.7+
8 years ago
SomberNight
1f6ccfb134
fast hmac on python 3.7+
8 years ago
SomberNight
16e4827e8c
use libsecp256k1 if available. abstract away ecc stuff. move symmetric crypto and hash functions to crypto.py
8 years ago