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

Inheritance diagram

 Inheritance diagram of SFBRawBlockCipherClass

Version

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

Reference

BREW API IRawBlockCipher

Member

Public Functions
static
SFBRawBlockCipherSmp
NewInstance( SFCErrorPtr exception = null )
Create a new SFBRawBlockCipher instance.
static
SFBRawBlockCipherSmp
NewInstance( AEECLSID id , SFCErrorPtr exception = null )
Create a new SFBRawBlockCipher instance.
SFCError ProcessBlocks( ACharConstPtr input , UInt32 length , ACharPtr output )
Encrypt or decrypt multiple blocks.
SFCError ProcessBlocks( SFXBufferConstRef input , SFXBufferPtr output )
Encrypt or decrypt multiple blocks.
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.

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

SFBRawBlockCipher::ProcessBlocks
Encrypt or decrypt multiple blocks.
[ public ]
SFCError ProcessBlocks(
    ACharConstPtr input   // Pointer to data to be encrypted/decrypted 
    UInt32 length         // count of bytes to be encrypted (in multiples of block size) 
    ACharPtr output       // Buffer to receive encrypted/decrypted data 
);
[ public ]
SFCError ProcessBlocks(
    SFXBufferConstRef input   // Pointer to data to be encrypted/decrypted 
    SFXBufferPtr output       // Buffer to receive encrypted/decrypted data 
);

Return value

  • SUCCESS: block encrypted
  • EBADSTATE: cipher is not properly initialized.
  • EBADPARM: invalid parameters - null pointers or invalid count.

Description

The input count must be a multiple of the blocksize. The output buffer must have enough space to hold the input count. The input and output pointers may point to the same area.

Reference

BREW API IRAWBLOCKCIPHER_ProcessBlocks