Go to the source code of this file.
|
static int | cast_cbc_cipher (EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t len) |
|
void | CAST_cbc_encrypt (const uint8_t *in, uint8_t *out, size_t length, const CAST_KEY *ks, uint8_t *iv, int enc) |
|
void | CAST_cfb64_encrypt (const uint8_t *in, uint8_t *out, size_t length, const CAST_KEY *schedule, uint8_t *ivec, int *num, int enc) |
|
void | CAST_decrypt (uint32_t *data, const CAST_KEY *key) |
|
static int | cast_ecb_cipher (EVP_CIPHER_CTX *ctx, uint8_t *out, const uint8_t *in, size_t len) |
|
void | CAST_ecb_encrypt (const uint8_t *in, uint8_t *out, const CAST_KEY *ks, int enc) |
|
void | CAST_encrypt (uint32_t *data, const CAST_KEY *key) |
|
static int | cast_init_key (EVP_CIPHER_CTX *ctx, const uint8_t *key, const uint8_t *iv, int enc) |
|
void | CAST_set_key (CAST_KEY *key, size_t len, const uint8_t *data) |
|
const EVP_CIPHER * | EVP_cast5_cbc (void) |
|
const EVP_CIPHER * | EVP_cast5_ecb (void) |
|
◆ CAST_exp
#define CAST_exp |
( |
|
l, |
|
|
|
A, |
|
|
|
a, |
|
|
|
n |
|
) |
| |
Value:
a[
n + 2] = (
l >> 8) & 0xff; \
a[
n + 1] = (
l >> 16) & 0xff; \
a[
n + 0] = (
l >> 24) & 0xff;
Definition at line 239 of file cast.c.
◆ E_CAST
#define E_CAST |
( |
|
n, |
|
|
|
key, |
|
|
|
L, |
|
|
|
R, |
|
|
|
OP1, |
|
|
|
OP2, |
|
|
|
OP3 |
|
) |
| |
Value: { \
t = (
key[
n * 2] OP1 R) & 0xffffffff; \
L ^= (((((
a OP2
b)&0xffffffffL)OP3
c) & 0xffffffffL) OP1
d) & 0xffffffffL; \
}
Definition at line 87 of file cast.c.
◆ S4
◆ S5
◆ S6
◆ S7
◆ cast_cbc_cipher()
◆ CAST_cbc_encrypt()
◆ CAST_cfb64_encrypt()
◆ CAST_decrypt()
◆ cast_ecb_cipher()
◆ CAST_ecb_encrypt()
◆ CAST_encrypt()
◆ cast_init_key()
◆ CAST_set_key()
◆ EVP_cast5_cbc()
◆ EVP_cast5_ecb()
◆ cast5_cbc
Initial value:
Definition at line 447 of file cast.c.
◆ cast5_ecb
Initial value:
Definition at line 438 of file cast.c.