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

Developer

API Reference

CIPHERINFO

Brew Release
Brew MP 1.0.2
See Also
ICipherFactory ICipherFactory_CreateCipher2
Description
CipherInfo holds all of the information required by ICipherFactory to initialize an ICipher1
Members
  • cipherId       : Specifies class ID of algorithm.
  • cipherModeId   : Specifies class ID of chaining mode. This should be zero for non-block (streaming) cipher algorithms.
  • padding        : Specifies padding for block modes.  May be zero for streaming cipher algorithm. See CIPHER_PARAM_PADDING.
  • encryptDirection : Identifies direction. Valid directions are
                      - CIPHER_DIRECTION_ENCRYPT
    - CIPHER_DIRECTION_DECRYPT

  • pKey           : pointer to key.  If this is NULL, the key is not initialized.
  • cKey           : key size.  If this is zero, the key is not initialized.
  • pIV            : pointer to Initialization Vector.  If this is null, the IV is not intialized.
  • cIV            : Initialization Vector size.  If zero, the IV is not initialized.
Definition
  • typedef struct CipherInfo {
       AEECLSID    cipherId;
       AEECLSID    cipherModeId;
       int         padding;
       int         encryptDirection;
       byte        *pKey;
       unsigned    cKey;
       byte        *pIV;
       unsigned    cIV;
    } CipherInfo;
    
Comments
None