mirror of
https://github.com/morgan9e/noiseprotocol
synced 2026-04-14 00:14:05 +09:00
46825bb0750b17d46e29380db33ca57f788eb95c
noise/__init__.py - __all__ containing builder module noise/builder.py - NoiseBuilder class providing interface for use with other apps. Allows for setting up all required data for Noise protocol, using appropriate methods. Enforces proper path of handshake execution noise/constants.py - Added maximum Noise message length constant noise/exceptions.py - A few exceptions created for proper signaling of errors noise/noise_protocol.py - handshake_done does proper cleanup now - new validation method that should be ran before starting handshake (checks presence of prerequisites for current settings) - new HandshakeState initialization method noise/state.py - Modified read_message and write_message methods of HandshakeState to operate on bytes/bytearray as message/payload and bytearray as message_buffer/payload_buffer. It is application's responsibility to provide data in this form, underlying Noise code doesn't do buffer reading/writing anymore. tests/test_vectors.py - Changed tests to comply with new code
Noise-python
Languages
Python
100%