CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
OdCryptoServices.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23
24//OdCryptoServices - interface that provides services to enable developers to secure applications using cryptography
25
26#ifndef _ODCRYPTOSERVICES_H__458F3BE0_8868_489B_B1D1_B1102D86667D__INCLUDED_
27#define _ODCRYPTOSERVICES_H__458F3BE0_8868_489B_B1D1_B1102D86667D__INCLUDED_
28
29#include "TD_PackPush.h"
30
31#include "RootExport.h"
32#include "SharedPtr.h"
33#include "OdArray.h"
34#include "OdString.h"
35#include "OdBinaryData.h"
36#include "OdLinkedArray.h"
37
42{
43public:
47 //FELIX_CHANGE_BEGIN
49 //FELIX_CHANGE_END
50};
51
56{
57public:
60};
61
67{
68public:
70
75
79 virtual bool isTrusted() const = 0;
80};
81
83
89{
90public:
92
97 virtual void getData(OdBinaryData& dataOfAttrValue) const = 0;
98};
99
101
108{
109protected:
111public:
116};
117
119
125{
126public:
131
133};
134
140{
141public:
143
154
162
164 {
165 kSuccess = 0,
173 kUnknownError
174 };
175
185
196 const OdSubjectKeyIdAttribPtr& pSubjectKeyIdAttr) = 0;
197
209 const OdLinkedArray<OdBinaryData>& message, OdBinaryData& signature) = 0;
210
218 virtual void verifyDetachedSignature(const OdLinkedArray<OdBinaryData>& message, const OdBinaryData& signature,
219 OdSignatureVerificationResult& verificationResult) = 0;
220
221
231
241
242
255 virtual bool initSessionKeyToEncryptData(const OdBinaryData& passwordAsBinaryData,
256 OdUInt32 nProvType, const OdString& provName, OdUInt32 nAlgId, OdUInt32 nKeyLength) = 0;
257
262
271 virtual bool encryptData(OdUInt8* buffer, OdUInt32 bufferSize) = 0;
272
281 virtual bool decryptData(OdUInt8* buffer, OdUInt32 bufferSize) = 0;
282};
283
285
286
287#include "TD_PackPop.h"
288
289#endif
OdSmartPtr< OdCryptoServices > OdCryptoServicesPtr
OdSharedPtr< OdCertificateObject > OdCertificateObjectPtr
OdSharedPtr< OdSubjectKeyIdAttrib > OdSubjectKeyIdAttribPtr
OdSharedPtr< OdCryptSignMessagePara > OdCryptSignMessageParaPtr
unsigned int OdUInt32
unsigned char OdUInt8
#define FIRSTDLL_EXPORT
Definition: RootExport.h:39
virtual bool isTrusted() const =0
virtual ~OdCertificateObject()
virtual OdCertificateDescription getCertDescription() const =0
virtual void resetSessionKeyToEncryptData()=0
virtual OdCertificateObjectPtr getCertObjByShortDesc(const OdCertificateShortDesc &certShortDesc) const =0
virtual OdSubjectKeyIdAttribPtr getSubjectKeyIdFromDetachedSignature(const OdBinaryData &signature)=0
virtual void verifyDetachedSignature(const OdLinkedArray< OdBinaryData > &message, const OdBinaryData &signature, OdSignatureVerificationResult &verificationResult)=0
virtual OdUInt32 getPersonalCertsWithTrustedStatus(OdArray< OdCertificateDescription > &certificates) const =0
ODRX_DECLARE_MEMBERS(OdCryptoServices)
virtual OdSubjectKeyIdAttribPtr newSubjectKeyIdentifierAttr(const OdBinaryData &dataOfAttrValue)=0
virtual bool generateDetachedSignature(const OdCryptSignMessageParaPtr &pSignPara, const OdLinkedArray< OdBinaryData > &message, OdBinaryData &signature)=0
virtual OdCryptSignMessageParaPtr newCryptSignMessagePara(const OdCertificateObjectPtr &pCertObj, const OdSubjectKeyIdAttribPtr &pSubjectKeyIdAttr)=0
virtual bool decryptData(OdUInt8 *buffer, OdUInt32 bufferSize)=0
virtual bool initSessionKeyToEncryptData(const OdBinaryData &passwordAsBinaryData, OdUInt32 nProvType, const OdString &provName, OdUInt32 nAlgId, OdUInt32 nKeyLength)=0
virtual OdCertificateObjectPtr getCertFromDetachedSignature(const OdBinaryData &signature)=0
virtual bool encryptData(OdUInt8 *buffer, OdUInt32 bufferSize)=0
OdCertificateDescription m_certDesc
virtual ~OdSubjectKeyIdAttrib()
virtual void getData(OdBinaryData &dataOfAttrValue) const =0
GLuint buffer
Definition: gles2_ext.h:178