comparison libtomcrypt/demos/hashsum.c @ 1439:8d24733026c5 coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Jun 2017 23:33:16 +0800
parents f849a5ca2efc
children 6dba84798cd5
comparison
equal deleted inserted replaced
1400:238a439670f5 1439:8d24733026c5
66 66
67 void register_algs(void) 67 void register_algs(void)
68 { 68 {
69 int err; 69 int err;
70 70
71 #ifdef TIGER 71 #ifdef LTC_TIGER
72 register_hash (&tiger_desc); 72 register_hash (&tiger_desc);
73 #endif 73 #endif
74 #ifdef MD2 74 #ifdef LTC_MD2
75 register_hash (&md2_desc); 75 register_hash (&md2_desc);
76 #endif 76 #endif
77 #ifdef MD4 77 #ifdef LTC_MD4
78 register_hash (&md4_desc); 78 register_hash (&md4_desc);
79 #endif 79 #endif
80 #ifdef MD5 80 #ifdef LTC_MD5
81 register_hash (&md5_desc); 81 register_hash (&md5_desc);
82 #endif 82 #endif
83 #ifdef SHA1 83 #ifdef LTC_SHA1
84 register_hash (&sha1_desc); 84 register_hash (&sha1_desc);
85 #endif 85 #endif
86 #ifdef SHA224 86 #ifdef LTC_SHA224
87 register_hash (&sha224_desc); 87 register_hash (&sha224_desc);
88 #endif 88 #endif
89 #ifdef SHA256 89 #ifdef LTC_SHA256
90 register_hash (&sha256_desc); 90 register_hash (&sha256_desc);
91 #endif 91 #endif
92 #ifdef SHA384 92 #ifdef LTC_SHA384
93 register_hash (&sha384_desc); 93 register_hash (&sha384_desc);
94 #endif 94 #endif
95 #ifdef SHA512 95 #ifdef LTC_SHA512
96 register_hash (&sha512_desc); 96 register_hash (&sha512_desc);
97 #endif 97 #endif
98 #ifdef RIPEMD128 98 #ifdef LTC_RIPEMD128
99 register_hash (&rmd128_desc); 99 register_hash (&rmd128_desc);
100 #endif 100 #endif
101 #ifdef RIPEMD160 101 #ifdef LTC_RIPEMD160
102 register_hash (&rmd160_desc); 102 register_hash (&rmd160_desc);
103 #endif 103 #endif
104 #ifdef WHIRLPOOL 104 #ifdef LTC_WHIRLPOOL
105 register_hash (&whirlpool_desc); 105 register_hash (&whirlpool_desc);
106 #endif 106 #endif
107 #ifdef CHC_HASH 107 #ifdef LTC_CHC_HASH
108 register_hash(&chc_desc); 108 register_hash(&chc_desc);
109 if ((err = chc_register(register_cipher(&aes_enc_desc))) != CRYPT_OK) { 109 if ((err = chc_register(register_cipher(&aes_enc_desc))) != CRYPT_OK) {
110 printf("chc_register error: %s\n", error_to_string(err)); 110 printf("chc_register error: %s\n", error_to_string(err));
111 exit(EXIT_FAILURE); 111 exit(EXIT_FAILURE);
112 } 112 }
113 #endif 113 #endif
114 114
115 } 115 }
116 116
117 /* $Source: /cvs/libtom/libtomcrypt/demos/hashsum.c,v $ */ 117 /* $Source$ */
118 /* $Revision: 1.2 $ */ 118 /* $Revision$ */
119 /* $Date: 2005/05/05 14:35:56 $ */ 119 /* $Date$ */