FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions | Variables
des.c File Reference
#include "libavutil/timer.h"
#include "libavutil/des.c"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "libavutil/time.h"

Go to the source code of this file.

Data Structures

union  word_byte
 

Functions

static uint64_t rand64 (void)
 
static int run_test (int cbc, int decrypt)
 
int main (void)
 

Variables

static const uint8_t test_key [] = { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 }
 
static const uint8_t plain [] = { 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10 }
 
static const uint8_t crypt_ref [] = { 0x4a, 0xb6, 0x5b, 0x3d, 0x4b, 0x06, 0x15, 0x18 }
 
static uint8_t tmp [8]
 
static uint8_t large_buffer [10002][8]
 
static const uint8_t cbc_key []
 

Function Documentation

static uint64_t rand64 ( void  )
static

Definition at line 30 of file des.c.

Referenced by main().

static int run_test ( int  cbc,
int  decrypt 
)
static

Definition at line 48 of file des.c.

Referenced by main().

int main ( void  )

Definition at line 77 of file des.c.

Variable Documentation

const uint8_t test_key[] = { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xf0 }
static

Definition at line 37 of file des.c.

Referenced by main().

const uint8_t plain[] = { 0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10 }
static

Definition at line 38 of file des.c.

Referenced by main().

const uint8_t crypt_ref[] = { 0x4a, 0xb6, 0x5b, 0x3d, 0x4b, 0x06, 0x15, 0x18 }
static

Definition at line 39 of file des.c.

Referenced by main().

uint8_t tmp[8]
static

Definition at line 40 of file des.c.

Referenced by av_des_crypt_mac(), f_func(), main(), and run_test().

uint8_t large_buffer[10002][8]
static

Definition at line 41 of file des.c.

Referenced by run_test().

const uint8_t cbc_key[]
static
Initial value:
= {
0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01,
0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23
}

Definition at line 42 of file des.c.

Referenced by run_test().