FFmpeg
|
Go to the source code of this file.
Data Structures | |
struct | AVCAST5 |
Macros | |
#define | IA(x) ((x) >> 24) |
#define | IB(x) (((x) >> 16) & 0xff) |
#define | IC(x) (((x) >> 8) & 0xff) |
#define | ID(x) ((x) & 0xff) |
#define | LR(x, c) (((x) << (c)) | ((x) >> (32 - (c)))) |
#define | F3(l, r, i) |
#define | F2(l, r, i) |
#define | F1(l, r, i) |
#define | COMPUTE_Z |
#define | COMPUTE_X |
Functions | |
static void | generate_round_keys (int rnds, uint32_t *K, uint32_t *x, uint32_t *z) |
static void | encipher (AVCAST5 *cs, uint8_t *dst, const uint8_t *src) |
static void | decipher (AVCAST5 *cs, uint8_t *dst, const uint8_t *src, uint8_t *iv) |
struct AVCAST5 * | av_cast5_alloc (void) |
Allocate an AVCAST5 context To free the struct: av_free(ptr) | |
av_cold int | av_cast5_init (AVCAST5 *cs, const uint8_t *key, int key_bits) |
Initialize an AVCAST5 context. | |
void | av_cast5_crypt2 (AVCAST5 *cs, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt) |
Encrypt or decrypt a buffer using a previously initialized context. | |
void | av_cast5_crypt (AVCAST5 *cs, uint8_t *dst, const uint8_t *src, int count, int decrypt) |
Encrypt or decrypt a buffer using a previously initialized context, ECB mode only. | |
Variables | |
const int | av_cast5_size = sizeof(AVCAST5) |
static const uint32_t | S1 [256] |
static const uint32_t | S2 [256] |
static const uint32_t | S3 [256] |
static const uint32_t | S4 [256] |
static const uint32_t | S5 [256] |
static const uint32_t | S6 [256] |
static const uint32_t | S7 [256] |
static const uint32_t | S8 [256] |
#define IA | ( | x | ) | ((x) >> 24) |
Definition at line 26 of file cast5.c.
Referenced by generate_round_keys().
#define IB | ( | x | ) | (((x) >> 16) & 0xff) |
Definition at line 27 of file cast5.c.
Referenced by generate_round_keys().
#define IC | ( | x | ) | (((x) >> 8) & 0xff) |
Definition at line 28 of file cast5.c.
Referenced by generate_round_keys().
#define ID | ( | x | ) | ((x) & 0xff) |
Definition at line 29 of file cast5.c.
Referenced by generate_round_keys().
#define F3 | ( | l, | |
r, | |||
i | |||
) |
#define F2 | ( | l, | |
r, | |||
i | |||
) |
#define F1 | ( | l, | |
r, | |||
i | |||
) |
#define COMPUTE_Z |
Definition at line 54 of file cast5.c.
Referenced by generate_round_keys().
#define COMPUTE_X |
Definition at line 62 of file cast5.c.
Referenced by generate_round_keys().
|
static |
Definition at line 359 of file cast5.c.
Referenced by av_cast5_init().
Definition at line 392 of file cast5.c.
Referenced by av_cast5_crypt(), and av_cast5_crypt2().
Definition at line 419 of file cast5.c.
Referenced by av_cast5_crypt(), and av_cast5_crypt2().
|
static |
Definition at line 219 of file cast5.c.
Referenced by generate_round_keys().
|
static |
Definition at line 254 of file cast5.c.
Referenced by generate_round_keys().
|
static |
Definition at line 289 of file cast5.c.
Referenced by generate_round_keys().
|
static |
Definition at line 324 of file cast5.c.
Referenced by generate_round_keys().