SophiaFramework UNIVERSE 5.3 |
#include <SFBCipherFactory.h.hpp>
class SFBCipherFactory : public SFBQuery;
SFMTYPEDEFWRAPPER(SFBCipherFactory)
BREW 2.0 | BREW 2.1 | BREW 3.1 | BREW 4.0 |
---|---|---|---|
X | X | O | O |
Public Functions | |
---|---|
SFCError |
CreateCipher(
AEECLSID clsid
, SInt32 direction
, AEECLSID mode
, SInt32 padding
, SFBCipher1SmpPtr cipher
) Creates a cipher with the specified characteristics.
|
SFCError |
CreateCipher2(
CipherInfo * info
, UInt32 size
, SFBCipher1SmpPtr cipher
) Creates a cipher with the characteristics specified in a CipherInfo structure.
|
static SFBCipherFactorySmp |
NewInstance(
AEECLSID id
, SFCErrorPtr exception = null
) Create a new SFBCipherFactory instance.
|
SFCError |
QueryCipher(
AEECLSID cipher
, AEECLSID mode
, SInt32 padding
, SInt32 keysize
) Checks the factory to determine if a cipher with the specified characteristics can be created.
|
SFCError |
QueryInterface(
AEECLSID clsid
, VoidHandle handle
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
SFCError |
QueryInterface(
AEECLSID clsid
, SFBBaseSmpPtr handle
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
SFBBaseSmp |
QueryInterface(
AEECLSID clsid
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
Void |
Self(
AEECLSID clsidReq
, SFBQuerySmpPtr clone
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
SFBQuerySmp |
Self(
AEECLSID clsidReq
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
Protected Functions | |
---|---|
static SFBBaseSmp |
FactoryByCreate(
AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface.
|
static SFBBaseSmp |
FactoryByQuery(
SFBQuerySmpConstRef query
, AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.
|
[ public ] SFCError CreateCipher( AEECLSID clsid // Class ID of requested cipher algorithm SInt32 direction // encryption direction. See CIPHER_PARAM_DIRECTION under CIPHER_PARAM_XXX. AEECLSID mode // Class ID of requested block chaining mode algorithm. For stream ciphers this parameter should be 0 SInt32 padding // Type of padding to use for block ciphers. For stream ciphers or streaming block modes, this parameter is ignored. SFBCipher1SmpPtr cipher // pointer to returned ICipher1 handle );
[ public ] SFCError CreateCipher2( CipherInfo * info // Pointer to information on type of cipher to create. UInt32 size // Size of structure pointed to by pCipherInfo SFBCipher1SmpPtr cipher // pointer to returned ICipher1 handle );
Not all of the fields in CipherInfo are required for all ciphers. If the CipherInfo field cKey is zero or pKey is null, the key is not initialized. If the CipherInfo field cIV is zero or pIV is null, the IV is not initialized.
[ public, static ] SFBCipherFactorySmp NewInstance( AEECLSID id // Class ID SFCErrorPtr exception = null // Error );
[ public ] SFCError QueryCipher( AEECLSID cipher // Class ID of requested cipher algorithm AEECLSID mode // Class ID of requested block chaining mode algorithm SInt32 padding // Type of padding to use for block ciphers SInt32 keysize // Required key length in bytes );
Class ID of requested cipher algorithm.
Class ID of requested block chaining mode algorithm. For stream ciphers this parameter is ignored and should be 0.
Type of padding to use for block ciphers. For stream ciphers or streaming block modes, this parameter is ignored.
Required key length in bytes. Unless an unusual key length is required, this value may be 0 to skip this check.
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |