chromium/third_party/ffmpeg/libavutil/twofish.c

/*
 * An implementation of the TwoFish algorithm
 * Copyright (c) 2015 Supraja Meedinti
 *
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#include <string.h>

#include "twofish.h"
#include "error.h"
#include "intreadwrite.h"
#include "mem.h"
#include "attributes.h"

#define LR(x, n)
#define RR(x, n)

AVTWOFISH;

static const uint8_t MD1[256] =;

static const uint8_t MD2[256] =;

static const uint8_t q0[256] =;

static const uint8_t q1[256] =;

struct AVTWOFISH *av_twofish_alloc(void)
{}

const int av_twofish_size =;

static uint8_t gfmul(uint8_t a, uint8_t b)
{}

static uint32_t tf_RS(uint32_t k0, uint32_t k1)
{}

static void tf_h0(uint8_t y[4], uint32_t L[4], int k)
{}

static uint32_t tf_h(uint32_t X, uint32_t L[4], int k)
{}

static uint32_t MDS_mul(AVTWOFISH *cs, uint32_t X)
{}

static void precomputeMDS(AVTWOFISH *cs)
{}

static void twofish_encrypt(AVTWOFISH *cs, uint8_t *dst, const uint8_t *src)
{}

static void twofish_decrypt(AVTWOFISH *cs, uint8_t *dst, const uint8_t *src, uint8_t *iv)
{}

av_cold int av_twofish_init(AVTWOFISH *cs, const uint8_t *key, int key_bits)
{}

void av_twofish_crypt(AVTWOFISH *cs, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
{}