LeviLamina
Loading...
Searching...
No Matches
Crypto::Asymmetric::OpenSSLInterface Class Reference
Inheritance diagram for Crypto::Asymmetric::OpenSSLInterface:

Public Types

enum class  SystemType : int { Rsa = 0 , Ecc = 1 , None = 2 }

Public Member Functions

OpenSSLInterface & operator= (OpenSSLInterface const &)
 OpenSSLInterface (OpenSSLInterface const &)
virtual bool generateKeyPair (::std::string &privateKey, ::std::string &publicKey)
virtual ::Bedrock::Result<::std::string > parsePrivateKey (::std::string const &privateKey, ::Crypto::Asymmetric::PrivateKeySigningFormat format)
virtual ::Bedrock::Result<::std::string > derivePublicKey (::std::string const &privateKey)
virtual ::Bedrock::Result<::std::string > constructPublicKey (::std::variant<::Crypto::Asymmetric::RsaPublicKeyComponents, ::Crypto::Asymmetric::EcPublicKeyComponents > const &components)
virtual ::Bedrock::Result< ::std::variant<::Crypto::Asymmetric::RsaPublicKeyComponents, ::Crypto::Asymmetric::EcPublicKeyComponents > > deconstructPublicKey (::std::string const &publicKey)
virtual::std::string encryptData (::std::string const &publicKey, ::std::string const &data, ::Crypto::Asymmetric::Padding paddingType, ::Crypto::Asymmetric::PubKeyFormat keyFormat, bool useSHA256)
virtual::std::string decryptData (::std::string const &privateKey, ::std::string const &data, ::Crypto::Asymmetric::Padding paddingType)
virtual::std::string signData (::std::string const &privateKey, ::std::string const &data, ::Crypto::Hash::HashType hash, ::Crypto::Asymmetric::PrivateKeySigningFormat format)
virtual bool verifyData (::std::string const &publicKey, ::std::string const &signature, ::std::string const &data, ::Crypto::Hash::HashType hash)
virtual::std::string computeSharedSecret (::std::string const &myPrivateKey, ::std::string const &peerPublicKey)
MCAPI bool $generateKeyPair (::std::string &privateKey, ::std::string &publicKey)
MCAPI ::Bedrock::Result<::std::string > $parsePrivateKey (::std::string const &privateKey, ::Crypto::Asymmetric::PrivateKeySigningFormat format)
MCAPI ::Bedrock::Result<::std::string > $derivePublicKey (::std::string const &privateKey)
MCAPI ::Bedrock::Result<::std::string > $constructPublicKey (::std::variant<::Crypto::Asymmetric::RsaPublicKeyComponents, ::Crypto::Asymmetric::EcPublicKeyComponents > const &components)
MCAPI ::Bedrock::Result< ::std::variant<::Crypto::Asymmetric::RsaPublicKeyComponents, ::Crypto::Asymmetric::EcPublicKeyComponents > > $deconstructPublicKey (::std::string const &publicKey)
MCAPI::std::string $encryptData (::std::string const &publicKey, ::std::string const &data, ::Crypto::Asymmetric::Padding paddingType, ::Crypto::Asymmetric::PubKeyFormat keyFormat, bool useSHA256)
MCAPI::std::string $decryptData (::std::string const &privateKey, ::std::string const &data, ::Crypto::Asymmetric::Padding paddingType)
MCAPI::std::string $signData (::std::string const &privateKey, ::std::string const &data, ::Crypto::Hash::HashType hash, ::Crypto::Asymmetric::PrivateKeySigningFormat format)
MCAPI bool $verifyData (::std::string const &publicKey, ::std::string const &signature, ::std::string const &data, ::Crypto::Hash::HashType hash)
MCAPI::std::string $computeSharedSecret (::std::string const &myPrivateKey, ::std::string const &peerPublicKey)

Static Public Member Functions

static MCAPI ::Bedrock::Result<::Crypto::Asymmetric::System > inferSystemFromPublicKey (::std::string const &publicKey)
static MCAPI void ** $vftable ()

Public Attributes

::ll::UntypedStorage< 4, 4 > mUnk2484a2
::ll::UntypedStorage< 4, 4 > mUnkce0d9f
::ll::UntypedStorage< 4, 4 > mUnk931832
::ll::UntypedStorage< 4, 4 > mUnk46aacc

Member Function Documentation

◆ generateKeyPair()

virtual bool Crypto::Asymmetric::OpenSSLInterface::generateKeyPair ( ::std::string & privateKey,
::std::string & publicKey )
virtual

◆ parsePrivateKey()

virtual ::Bedrock::Result<::std::string > Crypto::Asymmetric::OpenSSLInterface::parsePrivateKey ( ::std::string const & privateKey,
::Crypto::Asymmetric::PrivateKeySigningFormat format )
virtual

◆ derivePublicKey()

virtual ::Bedrock::Result<::std::string > Crypto::Asymmetric::OpenSSLInterface::derivePublicKey ( ::std::string const & privateKey)
virtual

◆ constructPublicKey()

virtual ::Bedrock::Result<::std::string > Crypto::Asymmetric::OpenSSLInterface::constructPublicKey ( ::std::variant<::Crypto::Asymmetric::RsaPublicKeyComponents, ::Crypto::Asymmetric::EcPublicKeyComponents > const & components)
virtual

◆ deconstructPublicKey()

virtual ::Bedrock::Result< ::std::variant<::Crypto::Asymmetric::RsaPublicKeyComponents, ::Crypto::Asymmetric::EcPublicKeyComponents > > Crypto::Asymmetric::OpenSSLInterface::deconstructPublicKey ( ::std::string const & publicKey)
virtual

◆ encryptData()

virtual::std::string Crypto::Asymmetric::OpenSSLInterface::encryptData ( ::std::string const & publicKey,
::std::string const & data,
::Crypto::Asymmetric::Padding paddingType,
::Crypto::Asymmetric::PubKeyFormat keyFormat,
bool useSHA256 )
virtual

◆ decryptData()

virtual::std::string Crypto::Asymmetric::OpenSSLInterface::decryptData ( ::std::string const & privateKey,
::std::string const & data,
::Crypto::Asymmetric::Padding paddingType )
virtual

◆ signData()

virtual::std::string Crypto::Asymmetric::OpenSSLInterface::signData ( ::std::string const & privateKey,
::std::string const & data,
::Crypto::Hash::HashType hash,
::Crypto::Asymmetric::PrivateKeySigningFormat format )
virtual

◆ verifyData()

virtual bool Crypto::Asymmetric::OpenSSLInterface::verifyData ( ::std::string const & publicKey,
::std::string const & signature,
::std::string const & data,
::Crypto::Hash::HashType hash )
virtual

◆ computeSharedSecret()

virtual::std::string Crypto::Asymmetric::OpenSSLInterface::computeSharedSecret ( ::std::string const & myPrivateKey,
::std::string const & peerPublicKey )
virtual

◆ inferSystemFromPublicKey()

MCAPI ::Bedrock::Result<::Crypto::Asymmetric::System > Crypto::Asymmetric::OpenSSLInterface::inferSystemFromPublicKey ( ::std::string const & publicKey)
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $generateKeyPair()

MCAPI bool Crypto::Asymmetric::OpenSSLInterface::$generateKeyPair ( ::std::string & privateKey,
::std::string & publicKey )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $parsePrivateKey()

MCAPI ::Bedrock::Result<::std::string > Crypto::Asymmetric::OpenSSLInterface::$parsePrivateKey ( ::std::string const & privateKey,
::Crypto::Asymmetric::PrivateKeySigningFormat format )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $derivePublicKey()

MCAPI ::Bedrock::Result<::std::string > Crypto::Asymmetric::OpenSSLInterface::$derivePublicKey ( ::std::string const & privateKey)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $constructPublicKey()

MCAPI ::Bedrock::Result<::std::string > Crypto::Asymmetric::OpenSSLInterface::$constructPublicKey ( ::std::variant<::Crypto::Asymmetric::RsaPublicKeyComponents, ::Crypto::Asymmetric::EcPublicKeyComponents > const & components)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $deconstructPublicKey()

MCAPI ::Bedrock::Result< ::std::variant<::Crypto::Asymmetric::RsaPublicKeyComponents, ::Crypto::Asymmetric::EcPublicKeyComponents > > Crypto::Asymmetric::OpenSSLInterface::$deconstructPublicKey ( ::std::string const & publicKey)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $encryptData()

MCAPI::std::string Crypto::Asymmetric::OpenSSLInterface::$encryptData ( ::std::string const & publicKey,
::std::string const & data,
::Crypto::Asymmetric::Padding paddingType,
::Crypto::Asymmetric::PubKeyFormat keyFormat,
bool useSHA256 )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $decryptData()

MCAPI::std::string Crypto::Asymmetric::OpenSSLInterface::$decryptData ( ::std::string const & privateKey,
::std::string const & data,
::Crypto::Asymmetric::Padding paddingType )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $signData()

MCAPI::std::string Crypto::Asymmetric::OpenSSLInterface::$signData ( ::std::string const & privateKey,
::std::string const & data,
::Crypto::Hash::HashType hash,
::Crypto::Asymmetric::PrivateKeySigningFormat format )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $verifyData()

MCAPI bool Crypto::Asymmetric::OpenSSLInterface::$verifyData ( ::std::string const & publicKey,
::std::string const & signature,
::std::string const & data,
::Crypto::Hash::HashType hash )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $computeSharedSecret()

MCAPI::std::string Crypto::Asymmetric::OpenSSLInterface::$computeSharedSecret ( ::std::string const & myPrivateKey,
::std::string const & peerPublicKey )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** Crypto::Asymmetric::OpenSSLInterface::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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