|
CXI
|
Constructs a mechanism parameter for Galois Counter MAC (GMAC) creation or verification. More...
Public Member Functions | |
| MechParamGMAC (int mech, const ByteArray &iv_init, int iv_gen_func=CXI_MECH_PARAM_IV_NO_GENERATE) | |
| MechanismParameter | getEncoded (void) |
Public Member Functions inherited from MechParam | |
| MechParam (int mech) | |
| Constructs a mechanism parameter with the given mechanism specifier. More... | |
| MechanismParameter | getEncoded (void) |
Constructs a mechanism parameter for Galois Counter MAC (GMAC) creation or verification.
The following example illustrates the usage of the MechParamGMAC class:
| MechParamGMAC | ( | int | mech, |
| const ByteArray & | iv_init, | ||
| int | iv_generate_func = CXI_MECH_PARAM_IV_NO_GENERATE |
||
| ) |
Constructs mechanism parameter for Galois Counter Mode MAC creation (see NIST SP-800-38D).
| mech | XOR combination of mechanism specifier:
|
| iv_init | Initialization Vector:
|
| iv_gen_func | IV generation function:
|
| MechanismParameter getEncoded | ( | void | ) |