Changeset 4454:8d5b183324bc in roaraudio for libroar/hash.c
- Timestamp:
- 10/09/10 23:01:26 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/hash.c
r4453 r4454 135 135 136 136 int roar_ht_is_supported(const int ht) { 137 roar_crypto_init(); 138 137 139 #ifdef ROAR_HAVE_LIBGCRYPT 138 140 if ( roar_ht2gcrypt_tested(ht) == -1 ) … … 146 148 147 149 int roar_hash_buffer(void * digest, const void * data, size_t datalen, int algo) { 150 roar_crypto_init(); 151 148 152 return roar_hash_salted_buffer(digest, data, datalen, algo, NULL, 0); 149 153 } … … 152 156 static inline int roar_hash_salted_buffer_gcrypt(void * digest, const void * data, size_t datalen, int algo, const void * salt, size_t saltlen) { 153 157 gcry_md_hd_t hdl; 158 159 roar_crypto_init(); 154 160 155 161 algo = roar_ht2gcrypt_tested(algo);
Note: See TracChangeset
for help on using the changeset viewer.