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

« back to all changes in this revision

Viewing changes to librhash/snefru.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
/* snefru.c - an implementation of Snefru-128/256 Message-Digest Algorithms
2
2
 *
3
 
 * Copyright: 2009 Aleksey Kravchenko <rhash.admin@gmail.com>
 
3
 * Copyright: 2009-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"),
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
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!
 
15
 *
12
16
 * Specification: Ralph C. Merkle, A Fast Software One-Way Hash Function,
13
17
 *   J. Cryptology, Vol. 3, No 1, pp. 43-58, 1990
14
18
 *
732
736
/**
733
737
 * Initialize algorithm context before calculaing hash.
734
738
 *
735
 
 * @param ctx context to initalize
 
739
 * @param ctx context to initialize
736
740
 */
737
741
void rhash_snefru128_init(struct snefru_ctx *ctx)
738
742
{
743
747
/**
744
748
 * Initialize algorithm context before calculaing hash.
745
749
 *
746
 
 * @param ctx context to initalize
 
750
 * @param ctx context to initialize
747
751
 */
748
752
void rhash_snefru256_init(struct snefru_ctx *ctx)
749
753
{