Changeset 4454:8d5b183324bc in roaraudio for libroar/hash.c


Ignore:
Timestamp:
10/09/10 23:01:26 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

implemented a overall crypto init function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/hash.c

    r4453 r4454  
    135135 
    136136int          roar_ht_is_supported(const int    ht) { 
     137 roar_crypto_init(); 
     138 
    137139#ifdef ROAR_HAVE_LIBGCRYPT 
    138140 if ( roar_ht2gcrypt_tested(ht) == -1 ) 
     
    146148 
    147149int roar_hash_buffer(void * digest, const void * data, size_t datalen, int algo) { 
     150 roar_crypto_init(); 
     151 
    148152 return roar_hash_salted_buffer(digest, data, datalen, algo, NULL, 0); 
    149153} 
     
    152156static inline int roar_hash_salted_buffer_gcrypt(void * digest, const void * data, size_t datalen, int algo, const void * salt, size_t saltlen) { 
    153157 gcry_md_hd_t hdl; 
     158 
     159 roar_crypto_init(); 
    154160 
    155161 algo = roar_ht2gcrypt_tested(algo); 
Note: See TracChangeset for help on using the changeset viewer.