Class PrivateHeader


  • public abstract class PrivateHeader
    extends Object
    This class models the private header of a drasyl protocol message. If the PublicHeader.getArmed() flag is set, this header is fully encrypted. The header is structured as follows:
    • Type: The 1 byte type value. Indicates the message type.
    • ArmedLength: The 2 bytes armed length value. Indicates, the length of the encrypted portion of the message without AEAD tag.
    • AuthenticationHeader: If ArmedLength value is greater than 0, a 16 bytes long authentication header is used. Otherwise this field is not present (0 bytes long).