CFx SDK Documentation  2020SP3
Public Types | Public Member Functions | List of all members
OdCryptoServices Class Referenceabstract

#include <OdCryptoServices.h>

Inheritance diagram for OdCryptoServices:
OdRxObject

Public Types

enum  OdSignatureVerificationResult {
  kSuccess = 0, kHasNoSignature, kBadSignature, kCertificateChainProblem,
  kBadAlgId, kNoSigner, kUnexpectedMsgType, kInvalidArg,
  kUnknownError
}
 

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdCryptoServices)
 
virtual OdUInt32 getPersonalCertsWithTrustedStatus (OdArray< OdCertificateDescription > &certificates) const =0
 
virtual OdCertificateObjectPtr getCertObjByShortDesc (const OdCertificateShortDesc &certShortDesc) const =0
 
virtual OdCryptAttribPtr newCryptAttrib (const OdString &objId, const OdArray< OdBinaryData > &values)=0
 
virtual OdCryptSignMessageParaPtr newCryptSignMessagePara (const OdCertificateObjectPtr &pCertObj, const OdArray< OdCryptAttribPtr > &unauthAttribs)=0
 
virtual bool generateDetachedSignature (const OdCryptSignMessageParaPtr &pSignPara, const OdLinkedArray< OdBinaryData > &message, OdBinaryData &signature)=0
 
virtual void verifyDetachedSignature (const OdLinkedArray< OdBinaryData > &message, const OdBinaryData &signature, OdSignatureVerificationResult &verificationResult)=0
 
virtual OdCertificateObjectPtr getCertFromDetachedSignature (const OdBinaryData &signature)=0
 
virtual void getUnauthAttribsFromDetachedSignature (const OdBinaryData &signature, OdArray< OdCryptAttribPtr > &unauthAttribs)=0
 
virtual bool initSessionKeyToEncryptData (const OdString &password, OdUInt32 nProvType, const OdString &provName, OdUInt32 nAlgId, OdUInt32 nKeyLength)=0
 
virtual void resetSessionKeyToEncryptData ()=0
 
virtual bool encryptData (OdUInt8 *buffer, OdUInt32 bufferSize)=0
 
virtual bool decryptData (OdUInt8 *buffer, OdUInt32 bufferSize)=0
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () 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 OdRxClassdesc ()
 

Detailed Description

Definition at line 101 of file OdCryptoServices.h.

Member Enumeration Documentation

◆ OdSignatureVerificationResult

Enumerator
kSuccess 
kHasNoSignature 
kBadSignature 
kCertificateChainProblem 
kBadAlgId 
kNoSigner 
kUnexpectedMsgType 
kInvalidArg 
kUnknownError 

Definition at line 109 of file OdCryptoServices.h.

Member Function Documentation

◆ decryptData()

virtual bool OdCryptoServices::decryptData ( OdUInt8 buffer,
OdUInt32  bufferSize 
)
pure virtual

◆ encryptData()

virtual bool OdCryptoServices::encryptData ( OdUInt8 buffer,
OdUInt32  bufferSize 
)
pure virtual

◆ generateDetachedSignature()

virtual bool OdCryptoServices::generateDetachedSignature ( const OdCryptSignMessageParaPtr pSignPara,
const OdLinkedArray< OdBinaryData > &  message,
OdBinaryData signature 
)
pure virtual

◆ getCertFromDetachedSignature()

virtual OdCertificateObjectPtr OdCryptoServices::getCertFromDetachedSignature ( const OdBinaryData signature)
pure virtual

◆ getCertObjByShortDesc()

virtual OdCertificateObjectPtr OdCryptoServices::getCertObjByShortDesc ( const OdCertificateShortDesc certShortDesc) const
pure virtual

◆ getPersonalCertsWithTrustedStatus()

virtual OdUInt32 OdCryptoServices::getPersonalCertsWithTrustedStatus ( OdArray< OdCertificateDescription > &  certificates) const
pure virtual

◆ getUnauthAttribsFromDetachedSignature()

virtual void OdCryptoServices::getUnauthAttribsFromDetachedSignature ( const OdBinaryData signature,
OdArray< OdCryptAttribPtr > &  unauthAttribs 
)
pure virtual

◆ initSessionKeyToEncryptData()

virtual bool OdCryptoServices::initSessionKeyToEncryptData ( const OdString password,
OdUInt32  nProvType,
const OdString provName,
OdUInt32  nAlgId,
OdUInt32  nKeyLength 
)
pure virtual

◆ newCryptAttrib()

virtual OdCryptAttribPtr OdCryptoServices::newCryptAttrib ( const OdString objId,
const OdArray< OdBinaryData > &  values 
)
pure virtual

◆ newCryptSignMessagePara()

virtual OdCryptSignMessageParaPtr OdCryptoServices::newCryptSignMessagePara ( const OdCertificateObjectPtr pCertObj,
const OdArray< OdCryptAttribPtr > &  unauthAttribs 
)
pure virtual

◆ ODRX_DECLARE_MEMBERS()

OdCryptoServices::ODRX_DECLARE_MEMBERS ( OdCryptoServices  )

◆ resetSessionKeyToEncryptData()

virtual void OdCryptoServices::resetSessionKeyToEncryptData ( )
pure virtual

◆ verifyDetachedSignature()

virtual void OdCryptoServices::verifyDetachedSignature ( const OdLinkedArray< OdBinaryData > &  message,
const OdBinaryData signature,
OdSignatureVerificationResult verificationResult 
)
pure virtual

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