Changeset 5529:d86f148f08b2 in roaraudio for libroar/hash.c


Ignore:
Timestamp:
06/12/12 09:18:12 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Implemented SHA1 support (Closes: #232)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/hash.c

    r5381 r5529  
    9292}; 
    9393 
     94int roar_hash_sha1_init(void * state); 
     95int roar_hash_sha1_uninit(void * state); 
     96int roar_hash_sha1_digest(void * state, void * digest, size_t * len); 
     97int roar_hash_sha1_proc_block(void * state, const void * block); 
     98int roar_hash_sha1_proc(void * state, const void * data, size_t len); 
     99 
    94100static struct roar_hash_cmds _libroar_hash_cmds[] = { 
    95101 {ROAR_HT_TIGER, sizeof(struct roar_hash_tiger), 512, 
     
    107113  roar_hash_adler32_digest, NULL, roar_hash_adler32_proc 
    108114 }, 
     115 {ROAR_HT_SHA1, sizeof(struct roar_hash_sha1), 64, 
     116  roar_hash_sha1_init, roar_hash_sha1_uninit, 
     117  roar_hash_sha1_digest, roar_hash_sha1_proc_block, roar_hash_sha1_proc}, 
    109118 {-1, -1, -1, NULL, NULL, NULL, NULL, NULL} 
    110119}; 
Note: See TracChangeset for help on using the changeset viewer.