|
FFmpeg
|
#include <string.h>#include "cast5.h"#include "error.h"#include "intreadwrite.h"#include "mem.h"#include "attributes.h"Go to the source code of this file.
Data Structures | |
| struct | AVCAST5 |
Macros | |
| #define | IA(x) |
| #define | IB(x) |
| #define | IC(x) |
| #define | ID(x) |
| #define | LR(x, 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 | ) |
Definition at line 30 of file cast5.c.
Referenced by generate_round_keys(), and lup_invert().
| #define IB | ( | x | ) |
Definition at line 31 of file cast5.c.
Referenced by generate_round_keys().
| #define IC | ( | x | ) |
Definition at line 32 of file cast5.c.
Referenced by generate_round_keys().
| #define ID | ( | x | ) |
| #define LR | ( | x, | |
| c ) |
Definition at line 37 of file cast5.c.
Referenced by compute_error(), decipher(), and encipher().
| #define COMPUTE_Z |
Definition at line 58 of file cast5.c.
Referenced by generate_round_keys().
| #define COMPUTE_X |
Definition at line 66 of file cast5.c.
Referenced by generate_round_keys().
|
static |
Definition at line 363 of file cast5.c.
Referenced by av_cast5_init().
|
static |
Definition at line 396 of file cast5.c.
Referenced by av_cast5_crypt(), and av_cast5_crypt2().
|
static |
Definition at line 423 of file cast5.c.
Referenced by av_cast5_crypt(), and av_cast5_crypt2().
|
static |
Definition at line 223 of file cast5.c.
Referenced by generate_round_keys().
|
static |
Definition at line 258 of file cast5.c.
Referenced by generate_round_keys().
|
static |
Definition at line 293 of file cast5.c.
Referenced by generate_round_keys().
|
static |
Definition at line 328 of file cast5.c.
Referenced by generate_round_keys(), PCM_CODEC(), and pcm_decode_init().