#include "common.h"Go to the source code of this file.
Defines | |
| #define | IKEv2_ENCRYPT 1 |
| #define | IKEv2_DECRYPT 0 |
Functions | |
| uint32_t | GetEncrKeyLen (uint32_t type, uint16_t keylen) |
| Get encryption key length. | |
| uint32_t | GetEncrBlockLen (uint32_t type, uint32_t keylen) |
| Get length of block for specific encryption algorithm. | |
| int | EncrKeyLenValid (uint32_t type, uint32_t keylen) |
| Check for valid key length. | |
| void | IKEv2Crypt (uint8_t *data, uint32_t dlen, uint8_t *iv, uint8_t *key, uint32_t type, uint32_t keylen, int enc) |
| Encrypt/decrypt a block of data. | |
|
|
|
|
|
|
|
||||||||||||
|
Check for valid key length.
|
|
||||||||||||
|
Get length of block for specific encryption algorithm.
|
|
||||||||||||
|
Get encryption key length.
|
|
||||||||||||||||||||||||||||||||
|
Encrypt/decrypt a block of data.
|