Camellia block cipher.
More...
Go to the source code of this file.
Go to the SVN repository for this file.
Camellia block cipher.
Definition in file camellia.h.
◆ MBEDTLS_CAMELLIA_DECRYPT
#define MBEDTLS_CAMELLIA_DECRYPT 0 |
◆ MBEDTLS_CAMELLIA_ENCRYPT
#define MBEDTLS_CAMELLIA_ENCRYPT 1 |
◆ MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA
#define MBEDTLS_ERR_CAMELLIA_BAD_INPUT_DATA -0x0024 |
◆ MBEDTLS_ERR_CAMELLIA_INVALID_INPUT_LENGTH
#define MBEDTLS_ERR_CAMELLIA_INVALID_INPUT_LENGTH -0x0026 |
Invalid data input length.
Definition at line 28 of file camellia.h.
◆ mbedtls_camellia_context
CAMELLIA context structure.
◆ mbedtls_camellia_crypt_ecb()
Perform a CAMELLIA-ECB block encryption/decryption operation.
- Parameters
-
ctx | The CAMELLIA context to use. This must be initialized and bound to a key. |
mode | The mode of operation. This must be either MBEDTLS_CAMELLIA_ENCRYPT or MBEDTLS_CAMELLIA_DECRYPT. |
input | The input block. This must be a readable buffer of size 16 Bytes. |
output | The output block. This must be a writable buffer of size 16 Bytes. |
- Returns
0
if successful.
-
A negative error code on failure.
◆ mbedtls_camellia_free()
Clear a CAMELLIA context.
- Parameters
-
ctx | The CAMELLIA context to be cleared. This may be NULL , in which case this function returns immediately. If it is not NULL , it must be initialized. |
◆ mbedtls_camellia_init()
Initialize a CAMELLIA context.
- Parameters
-
ctx | The CAMELLIA context to be initialized. This must not be NULL . |
◆ mbedtls_camellia_setkey_dec()
Perform a CAMELLIA key schedule operation for decryption.
- Parameters
-
ctx | The CAMELLIA context to use. This must be initialized. |
key | The decryption key. This must be a readable buffer of size keybits Bits. |
keybits | The length of key in Bits. This must be either 128 , 192 or 256 . |
- Returns
0
if successful.
-
A negative error code on failure.
◆ mbedtls_camellia_setkey_enc()
Perform a CAMELLIA key schedule operation for encryption.
- Parameters
-
ctx | The CAMELLIA context to use. This must be initialized. |
key | The encryption key to use. This must be a readable buffer of size keybits Bits. |
keybits | The length of key in Bits. This must be either 128 , 192 or 256 . |
- Returns
0
if successful.
-
A negative error code on failure.