~ubuntu-branches/ubuntu/trusty/rhash/trusty

« back to all changes in this revision

Viewing changes to librhash/tth.c

  • Committer: Package Import Robot
  • Author(s): Aleksey Kravchenko
  • Date: 2013-09-16 19:48:55 UTC
  • mfrom: (1.2.1) (16.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130916194855-sengvtinypyl41ld
Tags: 1.3.0-1
* New upstream release version 1.3.0
 - switched the package back to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* tth.c - calculate TTH (Tiger Tree Hash) function.
2
2
 *
3
 
 * Copyright: 2007 Aleksey Kravchenko <rhash.admin@gmail.com>
 
3
 * Copyright: 2007-2012 Aleksey Kravchenko <rhash.admin@gmail.com>
4
4
 *
5
5
 * Permission is hereby granted,  free of charge,  to any person  obtaining a
6
6
 * copy of this software and associated documentation files (the "Software"),
8
8
 * the rights to  use, copy, modify,  merge, publish, distribute, sublicense,
9
9
 * and/or sell copies  of  the Software,  and to permit  persons  to whom the
10
10
 * Software is furnished to do so.
 
11
 *
 
12
 * This program  is  distributed  in  the  hope  that it will be useful,  but
 
13
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 
14
 * or FITNESS FOR A PARTICULAR PURPOSE.  Use this program  at  your own risk!
11
15
 */
12
16
 
13
17
#include <string.h>
17
21
/**
18
22
 * Initialize context before calculaing hash.
19
23
 *
20
 
 * @param ctx context to initalize
 
24
 * @param ctx context to initialize
21
25
 */
22
26
void rhash_tth_init(tth_ctx *ctx)
23
27
{