Commit Graph

12 Commits

Author SHA1 Message Date
ea85067beb check other cases and add test_rsa.py 2025-03-16 07:02:53 -06:00
e150d3153a rufuse large RSA keys 2025-03-16 07:02:53 -06:00
94483714a3 run lint and fix errors, except mypy 2024-02-19 16:05:58 -07:00
b8ec43a859 remove type:ignore for working pycryptodome type
I didn't dig deeper, it looks like pycryptodome must have fixed their
pkcs1_15.new andd pkcs1_15.verify type signatures.
2019-11-15 11:25:03 -08:00
bafdd8512d Enforce pre-summary newline in docstrings 2019-10-24 20:10:45 +02:00
eef505f2d9 Add automatic docstring formatter and apply 2019-10-24 08:41:10 +02:00
451ec2664a Address incorrect typing in pycryptodome dependency 2019-09-04 10:19:27 -07:00
f86ba7283d Implement signing for RSA
- mainly for use in `secio` w/ RSA-based identities b/t peers
2019-09-04 10:12:43 -07:00
b516579256 Remove the unnecessary RSAPrivateKey.from_bytes 2019-08-22 22:54:14 +08:00
921bfb65cc Verify the remote pubkey and peer_id
- Add `from_bytes` in RSAPublicKey and Secp256k1PublicKey
- Add `pubkey_from_protobuf` to parse pubkey from protobuf
- Verify key and peer_id in `InsecureSession.run_handshake`
2019-08-22 22:53:48 +08:00
ad20d8cb00 Make a KeyPair dataclass for passing around key pairs 2019-08-14 09:00:40 -07:00
61f78c8feb Add abstraction for a cryptographic key 2019-08-14 09:00:39 -07:00