Module vibe.noise
Functions
Name | Description |
---|
createKeys(privKeyFile, pubKeyFile) | Create a public/private keypair to be used with createNoiseStream.
|
createNoiseStream(stream, settings) | Create a noise encrypted stream on top of a normal stream.
|
keyFromHex(keyHex, keyBin) | Convert key from hex to binary format.
|
keyToHex(keyBin, keyHex) | Convert key from binary to hex format.
|
readPublicKey(file, data) | Reads a public key file writen by createKeys.
|
noiseCheck(code, msg, file, line, next) | |
noiseEnforce(condition, msg, file, line, next) | |
Classes
Name | Description |
---|
AuthException | Exception thrown when authentication in createNoiseStream failed.
|
NoiseException | Exception thrown on internal errors.
|
NoiseStream | Wraps a normal Stream to add encryption based on the
Noise_XX_25519_ChaChaPoly_BLAKE2b protocol.
|
Structs
Name | Description |
---|
NoiseSettings | Settings for the connectNoiseStream function.
|
Manifest constants
Name | Type | Description |
---|
KeySize | | Key size of public and private keys.
|
Aliases
Name | Type | Description |
---|
VerifyKeyDelegate | nothrow bool delegate(scope const(ubyte[])) | Provide a delegate of this types to verify the public key of the node
connected to.
|