PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFBBNEng
Wrapper Class for the IBNEng interface.
#include <SFBBNEng.h.hpp>
class SFBBNEng : public SFBParameters;
SFMTYPEDEFWRAPPER(SFBBNEng)

Inheritance diagram

 Inheritance diagram of SFBBNEngClass

Version

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

Reference

BREW API IBNEng

Member

Public Functions
SFCError GetOperationContext( SFBBNConstRef inBN , SFBBNSmpPtr outBN )
This method returns an SFBBN object that functions both to represent a stored big number and a context with which to perform arithmetic operations.
static
SFBBNEngSmp
NewInstance( SFCErrorPtr exception = null )
Create a new SFBBNEng instance.
static
SFBBNEngSmp
NewInstance( AEECLSID id , SFCErrorPtr exception = null )
Create a new SFBBNEng instance.
SFCError SetParam( SInt32 id , VoidConstPtr data , UInt32 length ) (inherits from SFBParameters)
This method sets a parameter value.
SFCError SetParam( SInt32 id , SFXBufferConstRef data ) (inherits from SFBParameters)
This method sets a parameter value.
SFCError SetParam( SInt32 id , SFXAnsiStringConstRef data ) (inherits from SFBParameters)
This method sets a parameter value.

SFBBNEng::GetOperationContext
This method returns an SFBBN object that functions both to represent a stored big number and a context with which to perform arithmetic operations.
[ public ]
SFCError GetOperationContext(
    SFBBNConstRef inBN   // Optional BN object that contains initialization data or NULL. 
    SFBBNSmpPtr outBN    // Pointer to a newly created IBN operation context.  
);

Return value

  • SUCCESS: OutBN.
  • AEE_ENOMEMORY: Out of memory
  • AEE_CRYPT_INVALID_KEY: key is wrong length or otherwise invalid.
Other error codes returned by specific engine implementation.

Description

If inBN is provided (it is not NULL), it is used to initialize the value in the context returned. The value for the new context is obtained by calling SFBBN::Get(inBN).

Reference

BREW API IBNEng_GetOperationContext


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