Changeset 5529:d86f148f08b2 in roaraudio


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

Implemented SHA1 support (Closes: #232)

Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • AUTHORS

    r4067 r5529  
    44 
    55--- Maintainer: 
     6archlinux: Hans-Kristian Arntzen <maister@archlinux.us> 
     7OpenBSD  : janus 
     8 
     9--- Old Maintainers: 
    610archlinux: kalasmannen <kalasmannen@gmail.com> 
    7 OpenBSD  : janus 
    811 
    912--- Code contributors --- 
     
    2427  2550 Garcia Avenue 
    2528  Mountain View, California  94043 
     29 
     30--- Crypto Layer: 
     31* Steve Reid <steve@edmweb.com> 
    2632 
    2733--- gstreamer code: 
  • ChangeLog

    r5526 r5529  
    11v. 1.0beta3 - ? 
    22        * Try use-execed workaround also on UNIX Domain Sockets (Closes: #207) 
     3        * Implemented SHA1 support (Closes: #232) 
    34 
    45v. 1.0beta2 - Wed Jun 06 2012 19:56 CEST 
  • include/libroar/hash.h

    r5381 r5529  
    109109int roar_hash_salted_buffer(void * digest, const void * data, size_t datalen, roar_hash_t algo, const void * salt, size_t saltlen); 
    110110 
     111 
     112// 'forwardings' for hashes without own header: 
     113struct roar_hash_sha1 { 
     114 uint32_t state[5]; 
     115 uint64_t count; 
     116 size_t in_buffer; 
     117 char buffer[64]; 
     118 int is_final; 
     119}; 
     120 
    111121#endif 
    112122 
  • libroar/Makefile

    r5505 r5529  
    88VIO_BRIDGE=vio_bio.o vio_stdio.o 
    99VIO=$(VIO_META) $(VIO_BRIDGE) vio_cmd.o vio_magic.o vio_pipe.o vio_socket.o vio_winsock.o vio_stack.o vio_jumbo.o vio_proto.o vio_dstr.o vio_tantalos.o vio_rtp.o vio_buffer.o vio_buffer_store.o vio_stdvios.o vio_misc.o vio_zlib.o vio_stream.o vio_proxy.o 
    10 HASHES=hash.o hash_tiger.o 
     10HASHES=hash.o hash_tiger.o hash_sha1.o 
    1111PASSWORD=passwordapi.o pinentry.o sshaskpass.o 
    1212CRYPTO=crypto.o random.o $(HASHES) crc.o 
  • 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.