Mercurial > dropbear
comparison libtomcrypt/src/misc/crypt/crypt_register_all_ciphers.c @ 1471:6dba84798cd5
Update to libtomcrypt 1.18.1, merged with Dropbear changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 09 Feb 2018 21:44:05 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1470:8bba51a55704 | 1471:6dba84798cd5 |
---|---|
1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis | |
2 * | |
3 * LibTomCrypt is a library that provides various cryptographic | |
4 * algorithms in a highly modular and flexible manner. | |
5 * | |
6 * The library is free for all purposes without any express | |
7 * guarantee it works. | |
8 */ | |
9 | |
10 #include "tomcrypt.h" | |
11 | |
12 /** | |
13 @file crypt_register_all_ciphers.c | |
14 | |
15 Steffen Jaeckel | |
16 */ | |
17 | |
18 #define REGISTER_CIPHER(h) do {\ | |
19 LTC_ARGCHK(register_cipher(h) != -1); \ | |
20 } while(0) | |
21 | |
22 int register_all_ciphers(void) | |
23 { | |
24 #ifdef LTC_RIJNDAEL | |
25 #ifdef ENCRYPT_ONLY | |
26 /* alternative would be | |
27 * register_cipher(&rijndael_enc_desc); | |
28 */ | |
29 REGISTER_CIPHER(&aes_enc_desc); | |
30 #else | |
31 /* alternative would be | |
32 * register_cipher(&rijndael_desc); | |
33 */ | |
34 REGISTER_CIPHER(&aes_desc); | |
35 #endif | |
36 #endif | |
37 #ifdef LTC_BLOWFISH | |
38 REGISTER_CIPHER(&blowfish_desc); | |
39 #endif | |
40 #ifdef LTC_XTEA | |
41 REGISTER_CIPHER(&xtea_desc); | |
42 #endif | |
43 #ifdef LTC_RC5 | |
44 REGISTER_CIPHER(&rc5_desc); | |
45 #endif | |
46 #ifdef LTC_RC6 | |
47 REGISTER_CIPHER(&rc6_desc); | |
48 #endif | |
49 #ifdef LTC_SAFERP | |
50 REGISTER_CIPHER(&saferp_desc); | |
51 #endif | |
52 #ifdef LTC_TWOFISH | |
53 REGISTER_CIPHER(&twofish_desc); | |
54 #endif | |
55 #ifdef LTC_SAFER | |
56 REGISTER_CIPHER(&safer_k64_desc); | |
57 REGISTER_CIPHER(&safer_sk64_desc); | |
58 REGISTER_CIPHER(&safer_k128_desc); | |
59 REGISTER_CIPHER(&safer_sk128_desc); | |
60 #endif | |
61 #ifdef LTC_RC2 | |
62 REGISTER_CIPHER(&rc2_desc); | |
63 #endif | |
64 #ifdef LTC_DES | |
65 REGISTER_CIPHER(&des_desc); | |
66 REGISTER_CIPHER(&des3_desc); | |
67 #endif | |
68 #ifdef LTC_CAST5 | |
69 REGISTER_CIPHER(&cast5_desc); | |
70 #endif | |
71 #ifdef LTC_NOEKEON | |
72 REGISTER_CIPHER(&noekeon_desc); | |
73 #endif | |
74 #ifdef LTC_SKIPJACK | |
75 REGISTER_CIPHER(&skipjack_desc); | |
76 #endif | |
77 #ifdef LTC_ANUBIS | |
78 REGISTER_CIPHER(&anubis_desc); | |
79 #endif | |
80 #ifdef LTC_KHAZAD | |
81 REGISTER_CIPHER(&khazad_desc); | |
82 #endif | |
83 #ifdef LTC_KSEED | |
84 REGISTER_CIPHER(&kseed_desc); | |
85 #endif | |
86 #ifdef LTC_KASUMI | |
87 REGISTER_CIPHER(&kasumi_desc); | |
88 #endif | |
89 #ifdef LTC_MULTI2 | |
90 REGISTER_CIPHER(&multi2_desc); | |
91 #endif | |
92 #ifdef LTC_CAMELLIA | |
93 REGISTER_CIPHER(&camellia_desc); | |
94 #endif | |
95 return CRYPT_OK; | |
96 } | |
97 | |
98 /* ref: $Format:%D$ */ | |
99 /* git commit: $Format:%H$ */ | |
100 /* commit time: $Format:%ai$ */ |