IPlatformCryptoEncryptor::Update

Encrypt one or more blocks of data.

Windows
MacOS
Linux

References

Module

PlatformCryptoTypes

Header

/Engine/Plugins/Experimental/PlatformCrypto/Source/PlatformCryptoTypes/Public/PlatformCryptoTypes.h

Include

#include "PlatformCryptoTypes.h"

Syntax

EPlatformCryptoResult Update
(
    const TArrayView< const uint8 > Plaintext,
    const TArrayView< uint8 > OutCiphertext,
    int32 & OutCiphertextBytesWritten
)

Remarks

Encrypt one or more blocks of data. OutCiphertext must be at least size of the result of GetUpdateBufferSizeBytes, or it will fail. If Plaintext is less than the size of a block, OutCiphertext may or may not be modified until more data is provided in a future call to Update.

Returns

Success if all input was valid and was encrypted successfully, or Failure otherwise

Parameters

Parameter

Description

Plaintext

The Data to be encrypted and placed into OutCiphertext

OutCiphertext

The encrypted output of Plaintext. May not be written to if Plaintext is less than block size. Must be at least GetUpdateBufferSizeBytes in size or the call will fail

OutCiphertextBytesWritten

The amount of data that was written. This can be from 0 to (size of plaintext + blocksize - 1).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss