FFmpeg
Data Structures | Functions | Variables
des.c File Reference
#include "libavutil/mem_internal.h"
#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

◆ rand64()

static uint64_t rand64 ( void  )
static

Definition at line 31 of file des.c.

Referenced by main().

◆ run_test()

static int run_test ( int  cbc,
int  decrypt 
)
static

Definition at line 49 of file des.c.

Referenced by main().

◆ main()

int main ( void  )

Definition at line 78 of file des.c.

Variable Documentation

◆ test_key

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

Definition at line 38 of file des.c.

Referenced by main().

◆ plain

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

Definition at line 39 of file des.c.

Referenced by main().

◆ crypt_ref

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

Definition at line 40 of file des.c.

Referenced by main().

◆ tmp

uint8_t tmp[8]
static

Definition at line 41 of file des.c.

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

◆ large_buffer

uint8_t large_buffer[10002][8]
static

Definition at line 42 of file des.c.

Referenced by run_test().

◆ cbc_key

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 43 of file des.c.

Referenced by run_test().