IPlatformCryptoDecryptor::Update

Decrypt 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 > Ciphertext,
    const TArrayView< uint8 > OutPlaintext,
    int32 & OutPlaintextBytesWritten
)

Remarks

Decrypt one or more blocks of data. OutPlaintext must be at least size of the result of GetUpdateBufferSizeBytes, or it will fail. If Ciphertext is less than the size of a block, OutPlaintext 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 decrypted successfully, or Failure otherwise

Parameters

Parameter

Description

Ciphertext

The Data to be decrypted and placed into OutPlaintext

OutPlaintext

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

OutPlaintextBytesWritten

The amount of data that was written. This can be from 0 to (size of Ciphertext + 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