API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IRAWBLOCKCIPHER_PROCESSBLOCKS()

Brew Release
Brew MP 1.0.2
See Also
ICipher_Process()
Description

Encrypt or decrypt multiple blocks. 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.
Params
pIRawBlockCipher
[]:
Pointer to IRawBlockCipher interface object
pbIn
[]:
[in] Pointer to data to be encrypted/decrypted
cbIn
[]:
[in] count of bytes to be encrypted (in multiples of block size)
pbOut
[]:
[out] Buffer to receive encrypted/decrypted data
Interface
Prototype
  •    int IRawBlockCipher_ProcessBlocks(IRawBlockCipher* pIRawBlockCipher, 
                   const byte *pbIn, unsigned cbIn, byte *pbOut)
    
Return
  • AEE_SUCCESS: block encrypted AEE_EBADSTATE: cipher is not properly initialized. AEE_EBADPARM: invalid parameters - null pointers or invalid count.
Side Effect
  • None
Comments
None