The BIP324 packet cipher, encapsulating its key derivation, stream cipher, and AEAD.
Synopsis
Declared in <bip324.h>
class BIP324Cipher;
Member Functions
Name |
Description |
|
Constructors |
Decrypt a packet. Only after Initialize(). |
|
Decrypt the length of a packet. Only after Initialize(). |
|
Encrypt a packet. Only after Initialize(). |
|
Retrieve our public key. |
|
Get the expected Garbage Terminator to receive. Only after Initialize(). |
|
Get the Garbage Terminator to send. Only after Initialize(). |
|
Get the Session ID. Only after Initialize(). |
|
Initialize when the other side's public key is received. Can only be called once. |
|
Determine whether this cipher is fully initialized. |
Static Data Members
Name |
Description |
Total ciphertext expansion added to each packet. |
|
Length in bytes of a garbage terminator. |
|
Length in bytes of the per‐packet header. |
|
Header bit signalling that a packet should be ignored by the receiver. |
|
Length in bytes of the encrypted packet‐length field. |
|
Number of packets between automatic key rotations. |
|
Length in bytes of the derived session ID. |
Created with MrDocs