PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFBPubKeyEng
Wrapper Class for the IPubKeyEng interface.
#include <SFBPubKeyEng.h.hpp>
class SFBPubKeyEng : public SFBParameters1;
SFMTYPEDEFWRAPPER(SFBPubKeyEng)

Inheritance diagram

 Inheritance diagram of SFBPubKeyEngClass

Version

BREW 2.0 BREW 2.1 BREW 3.1 BREW 4.0
X X X O

Reference

BREW API IPubKeyEng

Member

Public Functions
SFCError New( SFBParametersConstRef parameters , SFBPubKeySmpPtr pOut )
This function is used to obtain context handles with which to perform cryptographic operations.
static
SFBPubKeyEngSmp
NewInstance( SFCErrorPtr exception = null )
Create a new SFBPubKeyEng instance.
static
SFBPubKeyEngSmp
NewInstance( AEECLSID id , SFCErrorPtr exception = null )
Create a new SFBPubKeyEng instance.
SFCError SetParam( SInt32 id , VoidConstPtr data , UInt32 length ) (inherits from SFBParameters1)
This method sets a parameter value.
SFCError SetParam( SInt32 id , SFXBufferConstRef data ) (inherits from SFBParameters1)
This method sets a parameter value.
SFCError SetParam( SInt32 id , SFXAnsiStringConstRef data ) (inherits from SFBParameters1)
This method sets a parameter value.

SFBPubKeyEng::New
This function is used to obtain context handles with which to perform cryptographic operations.
[ public ]
SFCError New(
    SFBParametersConstRef parameters   // Optional parameters object that keys to initialize with. May be NULL
    SFBPubKeySmpPtr pOut               // Pointer to copied IPubKey interface and binding to engine
);

Return value

  • AEE_SUCCESS: piOutPubKey.
  • AEE_EBADPARM: piOutPubKey is NULL.
  • AEE_CRYPT_INVALID_KEY: key is wrong length or otherwise invalid.

Other error codes related to problems with setting keys as generate by Engine.

Description

If piParameters is provided those parameters are used to initialize the context returned.

Reference

BREW API IPubKeyEng_New


SFBPubKeyEng::NewInstance
Create a new SFBPubKeyEng instance.
[ public, static ]
SFBPubKeyEngSmp NewInstance(
    SFCErrorPtr exception = null   // Error
);
[ public, static ]
SFBPubKeyEngSmp NewInstance(
    AEECLSID id                    // Class ID
    SFCErrorPtr exception = null   // Error
);