FAESHandlerComponent

AES256 ECB block encryption component.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

HandlerComponent

FEncryptionComponent

FAESHandlerComponent

References

Module

AESHandlerComponent

Header

/Engine/Plugins/Runtime/PacketHandlers/AESHandlerComponent/Source/Public/AESHandlerComponent.h

Include

#include "AESHandlerComponent.h"

Syntax

class FAESHandlerComponent : public FEncryptionComponent

Remarks

AES256 ECB block encryption component.

Constructors

Name Description

Public function

FAESHandlerComponent()

Default constructor that leaves the Key empty, and encryption disabled.

Overridden from FEncryptionComponent

Name Description

Public function Virtual

void

 

DisableEncryption()

After calling this, future outgoing packets will not be encrypted (until a call to DisableEncryption).

Public function Virtual

void

 

EnableEncryption()

After calling this, future outgoing packets will be encrypted (until a call to DisableEncryption).

Public function Virtual Const

bool

 

IsEncryptionEnabled()

Returns true if encryption is currently enabled.

Public function Virtual

void

 

SetEncryptionData

(
    const FEncryptionData& EncryptionD...
)

Replace the key used for encryption with NewKey if NewKey is exactly KeySizeInBytes long.

Overridden from HandlerComponent

Name Description

Public function Virtual Const

void

 

CountBytes

(
    FArchive& Ar
)

Public function Virtual Const

int32

 

GetReservedPacketBits()

Returns the amount of reserved packet/protocol bits expected from this component.

Public function Virtual

void

 

Initialize()

Initialization functionality should be placed here

Public function Virtual Const

bool

 

IsValid()

Return whether this handler is valid

Public function Virtual

void

 

Outgoing

(
    FBitWriter& Packet,
    FOutPacketTraits& Traits
)

Handles any outgoing packets

Constants

Name

Description

BlockSizeInBytes

This handler uses AES256, which has 32-byte keys.

KeySizeInBytes

This handler uses AES256, which has 32-byte keys.

Deprecated Functions

Name Description

Public function Virtual

void

 

Incoming

(
    FBitReader& Packet
)

Use the version of 'HandlerComponent::Incoming' which takes 'FIncomingPacketRef' instead