Data Structures | Functions | Variables
tea.c File Reference
#include "avutil.h"
#include "common.h"
#include "intreadwrite.h"
#include "tea.h"

Go to the source code of this file.

Data Structures

struct  AVTEA


struct AVTEAav_tea_alloc (void)
 Allocate an AVTEA context To free the struct: av_free(ptr) More...
void av_tea_init (AVTEA *ctx, const uint8_t key[16], int rounds)
 Initialize an AVTEA context. More...
static void tea_crypt_ecb (AVTEA *ctx, uint8_t *dst, const uint8_t *src, int decrypt, uint8_t *iv)
void av_tea_crypt (AVTEA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
 Encrypt or decrypt a buffer using a previously initialized context. More...


const int av_tea_size = sizeof(AVTEA)

Function Documentation

◆ tea_crypt_ecb()

static void tea_crypt_ecb ( AVTEA ctx,
uint8_t *  dst,
const uint8_t *  src,
int  decrypt,
uint8_t *  iv 

Definition at line 52 of file tea.c.

Referenced by av_tea_crypt().