![]() |
Mbed OS Reference
|
Blowfish 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_blowfish_context |
| Blowfish context structure. More... | |
Macros | |
| #define | MBEDTLS_BLOWFISH_ENCRYPT 1 |
| Constant to select blowfish encryption. | |
| #define | MBEDTLS_BLOWFISH_DECRYPT 0 |
| Constant to select blowfish decryption. | |
| #define | MBEDTLS_BLOWFISH_ROUNDS 16 |
| Rounds to use. | |
| #define | MBEDTLS_ERR_BLOWFISH_BAD_INPUT_DATA -0x0016 |
| Bad input data. | |
| #define | MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH -0x0018 |
| Invalid data input length. | |
| #define | MBEDTLS_ERR_BLOWFISH_HW_ACCEL_FAILED -0x0017 |
| Blowfish hardware accelerator failed. | |
Typedefs | |
| typedef struct mbedtls_blowfish_context | mbedtls_blowfish_context |
| Blowfish context structure. | |
Functions | |
| void | mbedtls_blowfish_init (mbedtls_blowfish_context *ctx) |
| Initialize a Blowfish context. | |
| void | mbedtls_blowfish_free (mbedtls_blowfish_context *ctx) |
| Clear a Blowfish context. | |
| int | mbedtls_blowfish_setkey (mbedtls_blowfish_context *ctx, const unsigned char *key, unsigned int keybits) |
| Perform a Blowfish key schedule operation. | |
| int | mbedtls_blowfish_crypt_ecb (mbedtls_blowfish_context *ctx, int mode, const unsigned char input[8], unsigned char output[8]) |
| Perform a Blowfish-ECB block encryption/decryption operation. | |
| int | mbedtls_blowfish_crypt_ctr (mbedtls_blowfish_context *ctx, size_t length, size_t *nc_off, unsigned char nonce_counter[8], unsigned char stream_block[8], const unsigned char *input, unsigned char *output) |
| Perform a Blowfish-CTR buffer encryption/decryption operation. | |
Blowfish block cipher.
Definition in file blowfish.h.