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. More... | |
#define | MBEDTLS_CAMELLIA_DECRYPT 0 |
Constant to select camellia decryption. More... | |
#define | MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA -0x0024 |
Bad input data. More... | |
#define | MBEDTLS_ERR_CAMELLIA_INVALID_INPUT_LENGTH -0x0026 |
Invalid data input length. More... | |
#define | MBEDTLS_ERR_CAMELLIA_HW_ACCEL_FAILED -0x0027 |
Camellia hardware accelerator failed. More... | |
Typedefs | |
typedef struct mbedtls_camellia_context | mbedtls_camellia_context |
CAMELLIA context structure. More... | |
Functions | |
void | mbedtls_camellia_init (mbedtls_camellia_context *ctx) |
Initialize a CAMELLIA context. More... | |
void | mbedtls_camellia_free (mbedtls_camellia_context *ctx) |
Clear a CAMELLIA context. More... | |
int | mbedtls_camellia_setkey_enc (mbedtls_camellia_context *ctx, const unsigned char *key, unsigned int keybits) |
Perform a CAMELLIA key schedule operation for encryption. More... | |
int | mbedtls_camellia_setkey_dec (mbedtls_camellia_context *ctx, const unsigned char *key, unsigned int keybits) |
Perform a CAMELLIA key schedule operation for decryption. More... | |
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. More... | |
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. More... | |
Camellia block cipher.
Definition in file camellia.h.