linux/crypto/anubis.c

/*
 * Cryptographic API.
 *
 * Anubis Algorithm
 *
 * The Anubis algorithm was developed by Paulo S. L. M. Barreto and
 * Vincent Rijmen.
 *
 * See
 *
 *	P.S.L.M. Barreto, V. Rijmen,
 *	``The Anubis block cipher,''
 *	NESSIE submission, 2000.
 *
 * This software implements the "tweaked" version of Anubis.
 * Only the S-box and (consequently) the rounds constants have been
 * changed.
 *
 * The original authors have disclaimed all copyright interest in this
 * code and thus put it in the public domain. The subsequent authors
 * have put this under the GNU General Public License.
 *
 * By Aaron Grothe [email protected], October 28, 2004
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 */

#include <crypto/algapi.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <asm/byteorder.h>
#include <linux/types.h>

#define ANUBIS_MIN_KEY_SIZE
#define ANUBIS_MAX_KEY_SIZE
#define ANUBIS_BLOCK_SIZE
#define ANUBIS_MAX_N
#define ANUBIS_MAX_ROUNDS

struct anubis_ctx {};

static const u32 T0[256] =;

static const u32 T1[256] =;

static const u32 T2[256] =;

static const u32 T3[256] =;

static const u32 T4[256] =;

static const u32 T5[256] =;

static const u32 rc[] =;

static int anubis_setkey(struct crypto_tfm *tfm, const u8 *in_key,
			 unsigned int key_len)
{}

static void anubis_crypt(u32 roundKey[ANUBIS_MAX_ROUNDS + 1][4],
		u8 *ciphertext, const u8 *plaintext, const int R)
{}

static void anubis_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
{}

static void anubis_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
{}

static struct crypto_alg anubis_alg =;

static int __init anubis_mod_init(void)
{}

static void __exit anubis_mod_fini(void)
{}

subsys_initcall(anubis_mod_init);
module_exit(anubis_mod_fini);

MODULE_LICENSE();
MODULE_DESCRIPTION();
MODULE_ALIAS_CRYPTO();