mirror of
https://github.com/morgan9e/noiseprotocol
synced 2026-04-14 00:14:05 +09:00
noise/noise_protocol.py * Added validation of given function names vs available crypto methods * Members of NoiseProtocol should now refer to proper classes/methods after initialization of an instance noise/patterns.py * Added method for application of pattern modifiers noise/crypto.py * Provisioned ed448 function noise/state.py * Changed references to NoiseProtocol instances to make it more consistent throughout the code
17 lines
245 B
Python
17 lines
245 B
Python
class Empty:
|
|
pass
|
|
|
|
|
|
# Handshake pattern tokens
|
|
TOKEN_E = 'e'
|
|
TOKEN_S = 's'
|
|
TOKEN_EE = 'ee'
|
|
TOKEN_ES = 'es'
|
|
TOKEN_SE = 'se'
|
|
TOKEN_SS = 'ss'
|
|
TOKEN_PSK = 'psk'
|
|
|
|
|
|
# In bytes, as in Section 8 of specification (rev 32)
|
|
MAX_PROTOCOL_NAME_LEN = 255
|