Navigation
API > API/Plugins > API/Plugins/PlatformCryptoContext
Interface to certain cryptographic algorithms, using OpenSSL to implement them.
| Name | FEncryptionContextOpenSSL |
| Type | class |
| Header File | /Engine/Plugins/Experimental/PlatformCrypto/Source/PlatformCryptoContext/Public/EncryptionContextOpenSSL.h |
| Include Path | #include "EncryptionContextOpenSSL.h" |
Syntax
class FEncryptionContextOpenSSL
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CalcSHA256
(
const TArrayView< const uint8 > Source, |
Calculate the SHA256 hash of a message. | EncryptionContextOpenSSL.h | |
TUniquePtr< IPlatformCryptoDecryptor > CreateDecryptor_AES_256_CBC
(
const TArrayView< const uint8 > Key, |
EncryptionContextOpenSSL.h | ||
TUniquePtr< IPlatformCryptoDecryptor > CreateDecryptor_AES_256_ECB
(
const TArrayView< const uint8 > Key |
EncryptionContextOpenSSL.h | ||
TUniquePtr< IPlatformCryptoDecryptor > CreateDecryptor_AES_256_GCM
(
const TArrayView< const uint8 > Key, |
EncryptionContextOpenSSL.h | ||
TUniquePtr< IPlatformCryptoEncryptor > CreateEncryptor_AES_256_CBC
(
const TArrayView< const uint8 > Key, |
EncryptionContextOpenSSL.h | ||
TUniquePtr< IPlatformCryptoEncryptor > CreateEncryptor_AES_256_ECB
(
const TArrayView< const uint8 > Key |
EncryptionContextOpenSSL.h | ||
TUniquePtr< IPlatformCryptoEncryptor > CreateEncryptor_AES_256_GCM
(
const TArrayView< const uint8 > Key, |
EncryptionContextOpenSSL.h | ||
FRSAKeyHandle CreateKey_RSA
(
const TArrayView< const uint8 > PublicExponent, |
Create an RSA key from a binary public/private exponent and modulus. | EncryptionContextOpenSSL.h | |
EPlatformCryptoResult CreatePseudoRandomBytes
(
const TArrayView< uint8 > OutData |
Create pseudo random bytes. | EncryptionContextOpenSSL.h | |
EPlatformCryptoResult CreateRandomBytes
(
const TArrayView< uint8 > OutData |
Create random bytes. | EncryptionContextOpenSSL.h | |
FSHA256Hasher CreateSHA256Hasher() |
Create a new SHA256 hasher. | EncryptionContextOpenSSL.h | |
TArray< uint8 > Decrypt_AES_256_CBC
(
const TArrayView< const uint8 > Ciphertext, |
EncryptionContextOpenSSL.h | ||
TArray< uint8 > Decrypt_AES_256_ECB
(
const TArrayView< const uint8 > Ciphertext, |
EncryptionContextOpenSSL.h | ||
TArray< uint8 > Decrypt_AES_256_GCM
(
const TArrayView< const uint8 > Ciphertext, |
EncryptionContextOpenSSL.h | ||
int32 DecryptPrivate_RSA
(
TArrayView< const uint8 > Source, |
Decrypt a source with a private RSA key. | EncryptionContextOpenSSL.h | |
int32 DecryptPublic_RSA
(
TArrayView< const uint8 > Source, |
Decrypt a source with a public RSA key. | EncryptionContextOpenSSL.h | |
void DestroyKey_RSA
(
FRSAKeyHandle Key |
Destroy and free the RSA key. | EncryptionContextOpenSSL.h | |
bool DigestSign_RS256
(
const TArrayView< const uint8 > Message, |
Sign a message with RS256. | EncryptionContextOpenSSL.h | |
bool DigestVerify_PS256
(
const TArrayView< const char > Message, |
Verify a hashed PS256 message with a signature. | EncryptionContextOpenSSL.h | |
bool DigestVerify_RS256
(
const TArrayView< const uint8 > Message, |
Verify a hashed RS256 message with a signature. | EncryptionContextOpenSSL.h | |
TArray< uint8 > Encrypt_AES_256_CBC
(
const TArrayView< const uint8 > Plaintext, |
EncryptionContextOpenSSL.h | ||
TArray< uint8 > Encrypt_AES_256_ECB
(
const TArrayView< const uint8 > Plaintext, |
EncryptionContextOpenSSL.h | ||
TArray< uint8 > Encrypt_AES_256_GCM
(
const TArrayView< const uint8 > Plaintext, |
EncryptionContextOpenSSL.h | ||
int32 EncryptPrivate_RSA
(
TArrayView< const uint8 > Source, |
Encrypt a source with a private RSA key. | EncryptionContextOpenSSL.h | |
int32 EncryptPublic_RSA
(
TArrayView< const uint8 > Source, |
Encrypt a source with a public RSA key. | EncryptionContextOpenSSL.h | |
| Generate an RSA key with the number of key bits. | EncryptionContextOpenSSL.h | ||
int32 GetKeySize_RSA
(
FRSAKeyHandle Key |
Get the RSA key modulus size in bytes. | EncryptionContextOpenSSL.h | |
int32 GetMaxDataSize_RSA
(
FRSAKeyHandle Key |
Get the maximum data size. | EncryptionContextOpenSSL.h | |
FRSAKeyHandle GetPublicKey_RSA
(
const FStringView PemSource |
Get the RSA public key from a PEM format string. | EncryptionContextOpenSSL.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void OnShutdown
(
IPlatformCryptoContext*const Context |
EncryptionContextOpenSSL.h | ||
static void OnStartup
(
IPlatformCryptoContext*const Context |
EncryptionContextOpenSSL.h |