#include <openssl/blowfish.h>
#include <openssl/cipher.h>
#include <openssl/obj.h>
#include <assert.h>
#include <string.h>
#include "../../crypto/internal.h"
#include "../macros.h"
Go to the source code of this file.
|
static int | bf_cbc_cipher (EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t len) |
|
void | BF_cbc_encrypt (const uint8_t *in, uint8_t *out, size_t length, const BF_KEY *schedule, uint8_t *ivec, int encrypt) |
|
static void | BF_cfb64_encrypt (const uint8_t *in, uint8_t *out, size_t length, const BF_KEY *schedule, uint8_t *ivec, int *num, int encrypt) |
|
static int | bf_cfb_cipher (EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t len) |
|
void | BF_decrypt (uint32_t *data, const BF_KEY *key) |
|
static int | bf_ecb_cipher (EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t len) |
|
void | BF_ecb_encrypt (const uint8_t *in, uint8_t *out, const BF_KEY *key, int encrypt) |
|
void | BF_encrypt (uint32_t *data, const BF_KEY *key) |
|
static int | bf_init_key (EVP_CIPHER_CTX *ctx, const uint8_t *key, const uint8_t *iv, int enc) |
|
void | BF_set_key (BF_KEY *key, size_t len, const uint8_t *data) |
|
const EVP_CIPHER * | EVP_bf_cbc (void) |
|
const EVP_CIPHER * | EVP_bf_cfb (void) |
|
const EVP_CIPHER * | EVP_bf_ecb (void) |
|
◆ BF_ENC
#define BF_ENC |
( |
|
LL, |
|
|
|
R, |
|
|
|
S, |
|
|
|
P |
|
) |
| |
Value:
LL ^= \
(((
S[((
int)(R >> 24) & 0xff)] +
S[0x0100 + ((
int)(R >> 16) & 0xff)]) ^ \
S[0x0200 + ((
int)(R >> 8) & 0xff)]) + \
S[0x0300 + ((
int)(R)&0xff)]) & \
0xffffffffL)
Definition at line 68 of file blowfish.c.
◆ bf_cbc_cipher()
◆ BF_cbc_encrypt()
◆ BF_cfb64_encrypt()
◆ bf_cfb_cipher()
◆ BF_decrypt()
◆ bf_ecb_cipher()
◆ BF_ecb_encrypt()
◆ BF_encrypt()
◆ bf_init_key()
◆ BF_set_key()
◆ EVP_bf_cbc()
◆ EVP_bf_cfb()
◆ EVP_bf_ecb()
◆ bf_cbc
◆ bf_cfb
◆ bf_ecb
◆ bf_init