|
CXI
|
Constructs a mechanism parameter for 'Elliptic Curve (Augmented) Encryption Scheme' (ECIES, see ANSI X9.63). More...
Public Member Functions | |
| MechParamECIES (int mech, int hash_algo, int crypt_algo, int crypt_mech, int crypt_len, int mac_algo, int mac_mech, int mac_len, const ByteArray &secret1, const ByteArray &secret2) | |
| 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 'Elliptic Curve (Augmented) Encryption Scheme' (ECIES, see ANSI X9.63).
The following example illustrates the usage of the MechParamECIES class:
| MechParamECIES | ( | int | mech, |
| int | hash_algo, | ||
| int | crypt_algo, | ||
| int | crypt_mech, | ||
| int | crypt_len, | ||
| int | mac_algo, | ||
| int | mac_mech, | ||
| int | mac_len, | ||
| const ByteArray & | secret1, | ||
| const ByteArray & | secret2 | ||
| ) |
Constructs a mechanism parameter for 'Elliptic Curve (Augmented) Encryption Scheme' (ECIES, see ANSI X9.63).
| mech | XOR combination of mechanism specifier:
|
| hash_algo | hash algorithm,see Hash Algorithms |
| crypt_algo | algorithm:
|
| crypt_mech | mechanism:
|
| crypt_len | AES key size (128,192 or 256) or zero on raw mode |
| mac_algo | algorithm:
|
| mac_mech | mechanism:
|
| mac_len | AES key size (128,192 or 256) or zero on HMAC optional: mac size in byte for truncated macs when using CXI_MECH_MODE_MAC1. |
| secret1 | secret value #1 |
| secret2 | secret value #2 |
| MechanismParameter getEncoded | ( | void | ) |