FFmpeg
4.0
|
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/mem.h"
#include "libavutil/blowfish.h"
Go to the source code of this file.
Macros | |
#define | NUM_VARIABLE_KEY_TESTS 34 |
#define | IV "blowfish" |
Functions | |
static void | test_blowfish (AVBlowfish *ctx, uint8_t *dst, const uint8_t *src, const uint8_t *ref, int len, uint8_t *iv, int dir, const char *test) |
int | main (void) |
Variables | |
static const uint32_t | plaintext_l [NUM_VARIABLE_KEY_TESTS] |
static const uint32_t | plaintext_r [NUM_VARIABLE_KEY_TESTS] |
static const uint8_t | variable_key [NUM_VARIABLE_KEY_TESTS][8] |
static const uint32_t | ciphertext_l [NUM_VARIABLE_KEY_TESTS] |
static const uint32_t | ciphertext_r [NUM_VARIABLE_KEY_TESTS] |
static const uint8_t | plaintext [8] = "BLOWFISH" |
static const uint8_t | plaintext2 [16] = "BLOWFISHBLOWFISH" |
static const uint8_t | ciphertext [8] |
static const uint8_t | ciphertext2 [16] |
#define NUM_VARIABLE_KEY_TESTS 34 |
Definition at line 27 of file blowfish.c.
Referenced by main().
#define IV "blowfish" |
Definition at line 126 of file blowfish.c.
Referenced by main().
|
static |
Definition at line 128 of file blowfish.c.
Referenced by main().
Definition at line 146 of file blowfish.c.
|
static |
Definition at line 30 of file blowfish.c.
Referenced by main().
|
static |
Definition at line 41 of file blowfish.c.
Referenced by main().
|
static |
Definition at line 52 of file blowfish.c.
Referenced by main().
|
static |
Definition at line 90 of file blowfish.c.
Referenced by main().
|
static |
Definition at line 101 of file blowfish.c.
Referenced by main().
|
static |
Definition at line 112 of file blowfish.c.
Referenced by main().
|
static |
Definition at line 114 of file blowfish.c.
Referenced by main().
|
static |
Definition at line 117 of file blowfish.c.
Referenced by main().
|
static |
Definition at line 121 of file blowfish.c.
Referenced by main().