FFmpeg
Functions | Variables
rc4.c File Reference
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "libavutil/attributes_internal.h"
#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "libavutil/rc4.h"

Go to the source code of this file.

Functions

int main (void)
 

Variables

struct {
   int   key_bits
 
   const uint8_t   key [16]
 
   const uint8_t   keystream [8]
 
test_vectors []
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 53 of file rc4.c.

Variable Documentation

◆ key_bits

int key_bits

◆ key

const uint8_t key[16]

Definition at line 31 of file rc4.c.

Referenced by av_rc4_init(), and main().

◆ keystream

const uint8_t keystream[8]

Definition at line 32 of file rc4.c.

Referenced by encrypt_counter(), and main().

◆ test_vectors

const { ... } test_vectors[]
Initial value:
= {
{ 40,
{ 0x01, 0x02, 0x03, 0x04, 0x05 },
{ 0xb2, 0x39, 0x63, 0x05, 0xf0, 0x3d, 0xc0, 0x27 } },
{ 56,
{ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 },
{ 0x29, 0x3f, 0x02, 0xd4, 0x7f, 0x37, 0xc9, 0xb6 } },
{ 64,
{ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 },
{ 0x97, 0xab, 0x8a, 0x1b, 0xf0, 0xaf, 0xb9, 0x61 } },
{ 128,
{ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10 },
{ 0x9a, 0xc7, 0xcc, 0x9a, 0x60, 0x9d, 0x1e, 0xf7 } },
}

Referenced by main().