5 Commits

Author SHA1 Message Date
4ad97ea961 Add Secp256r1 curve 2025-10-25 02:41:17 +09:00
Brian Warner
807be634aa fix deprecation warning in call to public_bytes() (#33)
It looks like the calls to KeyPair25519 and KeyPair448 weren't being
exercised by the tests, so the 'cryptography' deprecation warnings that they
provoked weren't visible in the test run.

KeyPair448 requires the extra encoding/format parameters, so any uses of
Noise that has "448" in the name would probably have failed. KeyPair25519 was
lenient (since the original release didn't require those parameters), but has
started emitting warnings when they're omitted, and will probably start
throwing errors in the next release. So this patch is needed to fix 448 now,
and 25519 later.

refs #32
2020-03-03 19:12:53 +01:00
Piotr Lizonczyk
fab0b06d17 Upgrade to Cryptography 2.5 2019-02-24 12:38:54 +01:00
Piotr Lizończyk
2f67f21ca4 Remove custom x448 impl.
Closes #25
2018-11-30 01:06:58 +01:00
Piotr Lizończyk
e84db3c232 Added possibilty to use different crypto backends.
* Created NoiseBackend class serving as a base for backends

* Refactored NoiseProtocol name parsing

* Refactored existing spec-defined functions into abstract classes.
Implementing classes are connecting crypto primitives to expected
interfaces.

* Refactored existing usage of Cryptography as source of crypto into
"default" backend (along with in-house implementation of X448).

* Provisioned "experimental" backend, it will contain e.g. non-default
crypto algorithms

* Backend can be chosen while creating NoiseConnection, though by
default, the Cryptography backend ("default") is used

Closes #7
2018-07-16 01:47:29 +02:00