CFx SDK Documentation
2023 SP0
|
#include <DbSecurity.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdDbCrypt) | |
virtual bool | initialize (const OdSecurityParams &securityParams)=0 |
virtual bool | encryptData (OdUInt8 *buffer, OdUInt32 bufferSize)=0 |
virtual bool | decryptData (OdUInt8 *buffer, OdUInt32 bufferSize)=0 |
virtual bool | digitalSignatureModeLaunched () |
virtual void | appendDataToProcessSignature (const OdBinaryData &dataBlock)=0 |
virtual bool | signData (const OdSecurityParams &securityParams, OdBinaryData &signatureBlock)=0 |
virtual void | verifyDataSignature (const OdBinaryData &signatureBlock, OdCryptoServices::OdSignatureVerificationResult &verificationResult, OdSignatureDescription &signatureDesc)=0 |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class defines the interface for the encription/decription of byte data.
Corresponding C++ library: TD_Db <group Other_Classes>
Definition at line 103 of file DbSecurity.h.
|
pure virtual |
Appends a data block to be signed/hashed. This method should be used to specify the data to be processed by signData() or verifyDataSignature().
dataBlock | [in] Data block to be signed/hashed. |
Decrypts the specified buffer.
bufferSize | [in] Number of bytes. |
buffer | [in/out] Data to be decrypted. |
|
virtual |
Encrypts the specified buffer.
bufferSize | [in] Number of bytes. |
buffer | [in/out] Data to be encrypted. |
|
pure virtual |
Initializes this OdCrypt object with the specified security parameters.
securityParams | [in] Security parameters. |
OdDbCrypt::ODRX_DECLARE_MEMBERS | ( | OdDbCrypt | ) |
|
pure virtual |
Creates a hash of the data blocks appended by appendDataToProcessSignature() method, signs the hash and returns the signed hash (detached signature).
securityParams | [in] Certificate and signature settings. |
signatureBlock | [out] Signed hash. |
|
pure virtual |
Verifies a detached signature using data blocks appended by appendDataToProcessSignature() method.
signatureBlock | [in] Detached signature. |
verificationResultMessage | [out] Verification result message. |
pSignDesc | [out] A pointer to preallocated structure into which signature description data will be placed. |