![]() |
Mbed OS Reference
|
Camellia block cipher. More...
#include "mbedtls/config.h"#include <stddef.h>#include <stdint.h>#include "mbedtls/platform_util.h"Go to the source code of this file.
Data Structures | |
| struct | mbedtls_camellia_context |
| CAMELLIA context structure. More... | |
Macros | |
| #define | MBEDTLS_CAMELLIA_ENCRYPT 1 |
| Constant to select camellia encryption. | |
| #define | MBEDTLS_CAMELLIA_DECRYPT 0 |
| Constant to select camellia decryption. | |
| #define | MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA -0x0024 |
| Bad input data. | |
| #define | MBEDTLS_ERR_CAMELLIA_INVALID_INPUT_LENGTH -0x0026 |
| Invalid data input length. | |
| #define | MBEDTLS_ERR_CAMELLIA_HW_ACCEL_FAILED -0x0027 |
| Camellia hardware accelerator failed. | |
Typedefs | |
| typedef struct mbedtls_camellia_context | mbedtls_camellia_context |
| CAMELLIA context structure. | |
Functions | |
| void | mbedtls_camellia_init (mbedtls_camellia_context *ctx) |
| Initialize a CAMELLIA context. | |
| void | mbedtls_camellia_free (mbedtls_camellia_context *ctx) |
| Clear a CAMELLIA context. | |
| int | mbedtls_camellia_setkey_enc (mbedtls_camellia_context *ctx, const unsigned char *key, unsigned int keybits) |
| Perform a CAMELLIA key schedule operation for encryption. | |
| int | mbedtls_camellia_setkey_dec (mbedtls_camellia_context *ctx, const unsigned char *key, unsigned int keybits) |
| Perform a CAMELLIA key schedule operation for decryption. | |
| int | mbedtls_camellia_crypt_ecb (mbedtls_camellia_context *ctx, int mode, const unsigned char input[16], unsigned char output[16]) |
| Perform a CAMELLIA-ECB block encryption/decryption operation. | |
| int | mbedtls_camellia_crypt_ctr (mbedtls_camellia_context *ctx, size_t length, size_t *nc_off, unsigned char nonce_counter[16], unsigned char stream_block[16], const unsigned char *input, unsigned char *output) |
| Perform a CAMELLIA-CTR buffer encryption/decryption operation. | |
Camellia block cipher.
Definition in file camellia.h.