Creates an encryption layer above the passed websocket.
Instantiating this class is not enough. The shared key pairs have to be set up by a derived class through some kind of key negotiation procedure before the encryption actually works.
the key used for encryption
If true the local instance uses even nonces, otherwise odd.
This function is called when a plugin is attached.
This function is called when a message is received.
This function is called when a message is sent.
Static
nonce
This class implements an encrypted connection.
The key negotiation is done by derived classes, because depending on the side of the conversation (client: initiator of the connection / server: acceptor of the connection) the key exchange procedure changes.