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
14 LibTomCrypt FULL SPEED AHEAD!, Tom St Denis
17 /* format is ltc_mp, cipher_desc, [cipher_desc], NULL, hash_desc, [hash_desc], NULL, prng_desc, [prng_desc], NULL */
18 int crypt_fsa(void *mp, ...)
25 XMEMCPY(<c_mp, mp, sizeof(ltc_mp));
28 while ((p = va_arg(args, void*)) != NULL) {
29 if (register_cipher(p) == -1) {
31 return CRYPT_INVALID_CIPHER;
35 while ((p = va_arg(args, void*)) != NULL) {
36 if (register_hash(p) == -1) {
38 return CRYPT_INVALID_HASH;
42 while ((p = va_arg(args, void*)) != NULL) {
43 if (register_prng(p) == -1) {
45 return CRYPT_INVALID_PRNG;
54 /* ref: $Format:%D$ */
55 /* git commit: $Format:%H$ */
56 /* commit time: $Format:%ai$ */