CXI
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MechParam Class Reference

Constructs a simple mechanism parameter that only consists of a mechanism specifier without additional parameter data. More...

Inheritance diagram for MechParam:
[legend]

Public Member Functions

 MechParam (int mech)
 Constructs a mechanism parameter with the given mechanism specifier. More...
 
MechanismParameter getEncoded (void)
 

Detailed Description

Constructs a simple mechanism parameter that only consists of a mechanism specifier without additional parameter data.

The following example illustrates the usage of the MechParam class:

// encrypt data in AES CBC mode
ByteArray crypt = cxi->crypt(0, aesKey, mechParam.getEncoded(), data, iv);
Encapsulates an array of primitive type char in an object and provides methods to operate on binary d...
Definition: sw/cxi_api_c/def/bytearray.h:22
Constructs a simple mechanism parameter that only consists of a mechanism specifier without additiona...
Definition: sw/cxi_api_c/def/mechparam.h:76
MechanismParameter getEncoded(void)
Definition: mechparam.cpp:550
#define CXI_MECH_CHAIN_CBC
Cipher Block Chaining.
Definition: fw/cxi/def/cxi_defs.h:357
#define CXI_MECH_MODE_ENCRYPT
Encryption mode.
Definition: fw/cxi/def/cxi_defs.h:332
Definition: cxi.cpp:173
Note
See also the derived classes:

Constructor & Destructor Documentation

◆ MechParam()

MechParam ( int  mech)

Constructs a mechanism parameter with the given mechanism specifier.

Parameters
mechmechanism specifier (see Mechanism Parameter)

Member Function Documentation

◆ getEncoded()

MechanismParameter getEncoded ( void  )
Returns
Returns the encoded mechanism parameter.