1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner.
6 * The library is free for all purposes without any express
9 * Tom St Denis, tomstdenis@gmail.com, http://libtomcrypt.com
16 LibTomCrypt FULL SPEED AHEAD!, Tom St Denis
19 /* format is ltc_mp, cipher_desc, [cipher_desc], NULL, hash_desc, [hash_desc], NULL, prng_desc, [prng_desc], NULL */
20 int crypt_fsa(void *mp, ...)
28 XMEMCPY(<c_mp, mp, sizeof(ltc_mp));
31 while ((p = va_arg(args, void*)) != NULL) {
32 if ((err = register_cipher(p)) != CRYPT_OK) {
38 while ((p = va_arg(args, void*)) != NULL) {
39 if ((err = register_hash(p)) != CRYPT_OK) {
45 while ((p = va_arg(args, void*)) != NULL) {
46 if ((err = register_prng(p)) != CRYPT_OK) {
57 /* $Source: /cvs/libtom/libtomcrypt/src/misc/crypt/crypt_fsa.c,v $ */
58 /* $Revision: 1.4 $ */
59 /* $Date: 2006/11/13 23:14:33 $ */