Select Git revision
aes-invert-internal.c
Forked from
Nettle / nettle
Source project has a limited visibility.
-
Niels Möller authoredNiels Möller authored
algorithms.c 13.49 KiB
/* algorithms.c
*
* Translate algorithm identifiers (or names) to algorithm objects.
*
*/
/* lsh, an implementation of the ssh protocol
*
* Copyright (C) 1998 Niels Möller
*
* 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.
*
* This program 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
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include "algorithms.h"
#include "atoms.h"
#include "compress.h"
#include "crypto.h"
#include "xalloc.h"
#include "lsh_argp.h"
#include <assert.h>
#include <stdarg.h>
#include <string.h>
#define GABA_DEFINE
#include "algorithms.h.x"
#undef GABA_DEFINE
struct alist *
all_symmetric_algorithms()
{
return make_alist(12
#if WITH_ZLIB
+1
#endif
,
ATOM_ARCFOUR, &crypto_arcfour_algorithm,
ATOM_BLOWFISH_CBC, &crypto_blowfish_cbc_algorithm,
ATOM_TWOFISH_CBC, &crypto_twofish256_cbc_algorithm,
ATOM_AES128_CBC, &crypto_aes128_cbc_algorithm,
ATOM_AES128_CTR, &crypto_aes128_ctr_algorithm,
ATOM_AES256_CBC, &crypto_aes256_cbc_algorithm,
ATOM_AES256_CTR, &crypto_aes256_ctr_algorithm,
ATOM_SERPENT256_CBC, &crypto_serpent256_cbc_algorithm,
ATOM_3DES_CBC, &crypto_des3_cbc_algorithm,
ATOM_CAST128_CBC, &crypto_cast128_cbc_algorithm,
ATOM_HMAC_SHA1,
make_hmac_algorithm(&nettle_sha1),
ATOM_HMAC_MD5,
make_hmac_algorithm(&nettle_md5),
#if WITH_ZLIB
ATOM_ZLIB, make_zlib(),