mirror of
https://github.com/morgan9e/noiseprotocol
synced 2026-04-14 00:14:05 +09:00
noise/builder.py: - Added guard for data length in decrypt - Handling InvalidTag exception when AEAD fails - New NoiseInvalidMessage exception class noise/exceptions.py - Three new exception classes noise/noise_protocol.py - Implemented rest of validation, now checks for required keypairs, setting initiator/responder role, warns if ephemeral keypairs are set. noise/patterns.py: - added name field to every Pattern with pattern name - added get_required_keypairs method that returns list of keypairs required for given handshake pattern noise/state.py - new NoiseMaxNonceError exception Overall: some TODOs resolved
27 lines
334 B
Python
27 lines
334 B
Python
class NoiseProtocolNameError(Exception):
|
|
pass
|
|
|
|
|
|
class NoisePSKError(Exception):
|
|
pass
|
|
|
|
|
|
class NoiseValueError(Exception):
|
|
pass
|
|
|
|
|
|
class NoiseHandshakeError(Exception):
|
|
pass
|
|
|
|
|
|
class NoiseInvalidMessage(Exception):
|
|
pass
|
|
|
|
|
|
class NoiseMaxNonceError(Exception):
|
|
pass
|
|
|
|
|
|
class NoiseValidationError(Exception):
|
|
pass
|