Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
IEngineCrypto Struct Referenceabstract

#include <IEngineCrypto.h>

+ Inheritance diagram for IEngineCrypto:
+ Collaboration diagram for IEngineCrypto:

Public Member Functions

virtual void Shutdown ()=0
 
virtual FRSAKeyHandle CreateRSAKey (const TArrayView< const uint8 > InPublicExponent, const TArrayView< const uint8 > InPrivateExponent, const TArrayView< const uint8 > InModulus)=0
 
virtual void DestroyRSAKey (FRSAKeyHandle InKey)=0
 
virtual int32 GetKeySize (FRSAKeyHandle InKey)=0
 
virtual int32 GetMaxDataSize (FRSAKeyHandle InKey)=0
 
virtual int32 EncryptPublic (const TArrayView< const uint8 > InSource, TArray< uint8 > &OutDestination, FRSAKeyHandle InKey)=0
 
virtual int32 EncryptPrivate (const TArrayView< const uint8 > InSource, TArray< uint8 > &OutDestination, FRSAKeyHandle InKey)=0
 
virtual int32 DecryptPublic (const TArrayView< const uint8 > InSource, TArray< uint8 > &OutDestination, FRSAKeyHandle InKey)=0
 
virtual int32 DecryptPrivate (const TArrayView< const uint8 > InSource, TArray< uint8 > &OutDestination, FRSAKeyHandle InKey)=0
 

Static Public Member Functions

static FORCEINLINE FName GetFeatureName ()
 

Detailed Description

Definition at line 12 of file IEngineCrypto.h.

Member Function Documentation

◆ CreateRSAKey()

virtual FRSAKeyHandle IEngineCrypto::CreateRSAKey ( const TArrayView< const uint8 > InPublicExponent,
const TArrayView< const uint8 > InPrivateExponent,
const TArrayView< const uint8 > InModulus )
pure virtual

Create a new RSA key from the given little-endian exponents and modulus

◆ DecryptPrivate()

virtual int32 IEngineCrypto::DecryptPrivate ( const TArrayView< const uint8 > InSource,
TArray< uint8 > & OutDestination,
FRSAKeyHandle InKey )
pure virtual

Encrypt the supplied byte data using the given private key

◆ DecryptPublic()

virtual int32 IEngineCrypto::DecryptPublic ( const TArrayView< const uint8 > InSource,
TArray< uint8 > & OutDestination,
FRSAKeyHandle InKey )
pure virtual

Decrypt the supplied byte data using the given public key

◆ DestroyRSAKey()

virtual void IEngineCrypto::DestroyRSAKey ( FRSAKeyHandle InKey)
pure virtual

Destroy the given RSA key

◆ EncryptPrivate()

virtual int32 IEngineCrypto::EncryptPrivate ( const TArrayView< const uint8 > InSource,
TArray< uint8 > & OutDestination,
FRSAKeyHandle InKey )
pure virtual

Encrypt the supplied byte data using the given private key

◆ EncryptPublic()

virtual int32 IEngineCrypto::EncryptPublic ( const TArrayView< const uint8 > InSource,
TArray< uint8 > & OutDestination,
FRSAKeyHandle InKey )
pure virtual

Encrypt the supplied byte data using the given public key

◆ GetFeatureName()

static FORCEINLINE FName IEngineCrypto::GetFeatureName ( )
inlinestatic

Get the name of this modular feature

Definition at line 17 of file IEngineCrypto.h.

◆ GetKeySize()

virtual int32 IEngineCrypto::GetKeySize ( FRSAKeyHandle InKey)
pure virtual

Get the size of bytes of the given RSA key

◆ GetMaxDataSize()

virtual int32 IEngineCrypto::GetMaxDataSize ( FRSAKeyHandle InKey)
pure virtual

Get the maximum amount of data that can be encrypted using the given key, taking into account minimum padding requirements

◆ Shutdown()

virtual void IEngineCrypto::Shutdown ( )
pure virtual

Shutdown / cleanup the feature


The documentation for this struct was generated from the following file: