Module |
|
Header |
/Engine/Plugins/Experimental/PlatformCrypto/Source/PlatformCryptoTypes/Public/PlatformCryptoTypes.h |
Include |
#include "PlatformCryptoTypes.h" |
EPlatformCryptoResult Update
(
const TArrayView< const uint8 > Plaintext,
const TArrayView< uint8 > OutCiphertext,
int32 & OutCiphertextBytesWritten
)
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.
Success if all input was valid and was encrypted successfully, or Failure otherwise
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). |