Navigation
Unreal Engine C++ API Reference > Plugins > PlatformCryptoTypes
References
Module | PlatformCryptoTypes |
Header | /Engine/Plugins/Experimental/PlatformCrypto/Source/PlatformCryptoTypes/Public/PlatformCryptoTypes.h |
Include | #include "PlatformCryptoTypes.h" |
Syntax
class IPlatformCryptoEncryptor
Remarks
Instance of a encryptor used to progressively encrypt a message in chunks. This is useful when you may not have all data loaded available at one time.
Plaintext should be fed into one or more calls to Update, and then Finalize should be called. It is invalid to call Update after Finalize has been called.
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
EPlatformCryptoResult | Finalize
(
const TArrayView< uint8 > OutCiphertext, |
Finalizes encryption of data previously passed in Update. |
![]() ![]() |
EPlatformCryptoResult | GenerateAuthTag
(
const TArrayView< uint8 > OutAuthTag, |
For ciphers that support authentication tags, you may call this function to retreive the AuthTag after Finalize is called successfully. |
![]() ![]() |
int32 | Get the required size in bytes for the GenerateAuthTag call's OutAuthTag buffer | |
![]() ![]() |
int32 | Get the block size of the encryption cipher for this object. | |
![]() ![]() |
int32 | Get the initialization vector size of the encryption cipher for this object. | |
![]() ![]() |
FName | Get the name of the encryption cipher for this object | |
![]() ![]() |
int32 | Get the amount of bytes required to safely store the OutCipherText buffer of a call to Finalize | |
![]() ![]() |
int32 | GetUpdateBufferSizeBytes
(
const TArrayView< const uint8 > Plaintext |
Get the amount of bytes required to safely store the output of a call to Update for a particular Plaintext value |
![]() |
EPlatformCryptoResult | Reset
(
const TArrayView< const uint8 > InitializationVector |
Resets block cipher. |
![]() |
EPlatformCryptoResult | Update
(
const TArrayView< const uint8 > Plaintext, |
Encrypt one or more blocks of data. |