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. More... | |
#define | MBEDTLS_BLOWFISH_DECRYPT 0 |
Constant to select blowfish decryption. More... | |
#define | MBEDTLS_BLOWFISH_ROUNDS 16 |
Rounds to use. More... | |
#define | MBEDTLS_ERR_BLOWFISH_BAD_INPUT_DATA -0x0016 |
Bad input data. More... | |
#define | MBEDTLS_ERR_BLOWFISH_INVALID_INPUT_LENGTH -0x0018 |
Invalid data input length. More... | |
#define | MBEDTLS_ERR_BLOWFISH_HW_ACCEL_FAILED -0x0017 |
Blowfish hardware accelerator failed. More... | |
Typedefs | |
typedef struct mbedtls_blowfish_context | mbedtls_blowfish_context |
Blowfish context structure. More... | |
Functions | |
void | mbedtls_blowfish_init (mbedtls_blowfish_context *ctx) |
Initialize a Blowfish context. More... | |
void | mbedtls_blowfish_free (mbedtls_blowfish_context *ctx) |
Clear a Blowfish context. More... | |
int | mbedtls_blowfish_setkey (mbedtls_blowfish_context *ctx, const unsigned char *key, unsigned int keybits) |
Perform a Blowfish key schedule operation. More... | |
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. More... | |
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. More... | |
Blowfish block cipher.
Definition in file blowfish.h.