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

Developer

API Reference

CIPHER_PARAM_XXX

Brew Release
Brew MP 1.0.2
See Also
Error Codes ICipher1 ICipher1_SetParam ICipher1_GetParam
Description
ICipher1_SetParam: not supported
ICipher1_GetParam: This ID returns the number of bytes currently buffered by the cipher. Due to padding, this may not be the actual number of bytes returned from ICipher1_ProcessLast. A non-zero value does indicate that ICipher1_ProcessLast() must be called to finish processing. pParam points to a buffer large enough to hold an int.

Members
  • Name: CIPHER_PARAM_DIRECTION
    
Return
  • AEE_SUCCESS: data is buffered AEE_EFAILED: no data is buffered AEE_EBADPARM: cipher doesn't buffer data
Definition
  • #define  CIPHER_PARAM_DIRECTION  0  // get set encryption/decryption direction.  Defaults to encryption
    #define  CIPHER_PARAM_KEY        1  // --- set encryption key
    #define  CIPHER_PARAM_KEY_SIZE   2  // get --- current key size
    #define  CIPHER_PARAM_IV         3  // get set initialization vector
    #define  CIPHER_PARAM_IV_SIZE    4  // get --- initialization vector size
    #define  CIPHER_PARAM_PADDING    5  // get set block padding style
    #define  CIPHER_PARAM_BLOCKSIZE  6  // get --- blocksize
    #define  CIPHER_PARAM_KEYSCHED   7  // get set the keyschedule info
    #define  CIPHER_PARAM_MODE       8  // get set the chaining mode w/ mode id.
    #define  CIPHER_PARAM_BUFFERED   9  // get --- status for buffered data
    
Comments
None