serpent_generic.c (5800571960234f9d1f1011bf135799b2014d4268) | serpent_generic.c (d6ebf5286f8f94a254a8c90d4b9f2a8b076a8634) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later | |
2/* 3 * Cryptographic API. 4 * 5 * Serpent Cipher Algorithm. 6 * 7 * Copyright (C) 2002 Dag Arne Osvik <osvik@ii.uib.no> 8 * 2003 Herbert Valerio Riedel <hvr@gnu.org> 9 * 10 * Added tnepres support: 11 * Ruben Jesus Garcia Hernandez <ruben@ugr.es>, 18.10.2004 12 * Based on code by hvr | 1/* 2 * Cryptographic API. 3 * 4 * Serpent Cipher Algorithm. 5 * 6 * Copyright (C) 2002 Dag Arne Osvik <osvik@ii.uib.no> 7 * 2003 Herbert Valerio Riedel <hvr@gnu.org> 8 * 9 * Added tnepres support: 10 * Ruben Jesus Garcia Hernandez <ruben@ugr.es>, 18.10.2004 11 * Based on code by hvr |
12 * 13 * This program is free software; you can redistribute it and/or modify 14 * it under the terms of the GNU General Public License as published by 15 * the Free Software Foundation; either version 2 of the License, or 16 * (at your option) any later version. |
|
13 */ 14 15#include <linux/init.h> 16#include <linux/module.h> 17#include <linux/errno.h> 18#include <asm/byteorder.h> 19#include <linux/crypto.h> 20#include <linux/types.h> --- 611 unchanged lines hidden (view full) --- 632 .cra_u = { .cipher = { 633 .cia_min_keysize = SERPENT_MIN_KEY_SIZE, 634 .cia_max_keysize = SERPENT_MAX_KEY_SIZE, 635 .cia_setkey = serpent_setkey, 636 .cia_encrypt = serpent_encrypt, 637 .cia_decrypt = serpent_decrypt } } 638}, { 639 .cra_name = "tnepres", | 17 */ 18 19#include <linux/init.h> 20#include <linux/module.h> 21#include <linux/errno.h> 22#include <asm/byteorder.h> 23#include <linux/crypto.h> 24#include <linux/types.h> --- 611 unchanged lines hidden (view full) --- 636 .cra_u = { .cipher = { 637 .cia_min_keysize = SERPENT_MIN_KEY_SIZE, 638 .cia_max_keysize = SERPENT_MAX_KEY_SIZE, 639 .cia_setkey = serpent_setkey, 640 .cia_encrypt = serpent_encrypt, 641 .cia_decrypt = serpent_decrypt } } 642}, { 643 .cra_name = "tnepres", |
644 .cra_driver_name = "tnepres-generic", |
|
640 .cra_flags = CRYPTO_ALG_TYPE_CIPHER, 641 .cra_blocksize = SERPENT_BLOCK_SIZE, 642 .cra_ctxsize = sizeof(struct serpent_ctx), 643 .cra_alignmask = 3, 644 .cra_module = THIS_MODULE, 645 .cra_u = { .cipher = { 646 .cia_min_keysize = SERPENT_MIN_KEY_SIZE, 647 .cia_max_keysize = SERPENT_MAX_KEY_SIZE, --- 24 unchanged lines hidden --- | 645 .cra_flags = CRYPTO_ALG_TYPE_CIPHER, 646 .cra_blocksize = SERPENT_BLOCK_SIZE, 647 .cra_ctxsize = sizeof(struct serpent_ctx), 648 .cra_alignmask = 3, 649 .cra_module = THIS_MODULE, 650 .cra_u = { .cipher = { 651 .cia_min_keysize = SERPENT_MIN_KEY_SIZE, 652 .cia_max_keysize = SERPENT_MAX_KEY_SIZE, --- 24 unchanged lines hidden --- |