comparison libtomcrypt/src/misc/crypt/crypt_hash_is_valid.c @ 1471:6dba84798cd5

Update to libtomcrypt 1.18.1, merged with Dropbear changes
author Matt Johnston <matt@ucc.asn.au>
date Fri, 09 Feb 2018 21:44:05 +0800
parents f849a5ca2efc
children
comparison
equal deleted inserted replaced
1470:8bba51a55704 1471:6dba84798cd5
3 * LibTomCrypt is a library that provides various cryptographic 3 * LibTomCrypt is a library that provides various cryptographic
4 * algorithms in a highly modular and flexible manner. 4 * algorithms in a highly modular and flexible manner.
5 * 5 *
6 * The library is free for all purposes without any express 6 * The library is free for all purposes without any express
7 * guarantee it works. 7 * guarantee it works.
8 *
9 * Tom St Denis, [email protected], http://libtom.org
10 */ 8 */
11 #include "tomcrypt.h" 9 #include "tomcrypt.h"
12 10
13 /** 11 /**
14 @file crypt_hash_is_valid.c 12 @file crypt_hash_is_valid.c
15 Determine if hash is valid, Tom St Denis 13 Determine if hash is valid, Tom St Denis
16 */ 14 */
17 15
18 /* 16 /*
19 Test if a hash index is valid 17 Test if a hash index is valid
20 @param idx The index of the hash to search for 18 @param idx The index of the hash to search for
21 @return CRYPT_OK if valid 19 @return CRYPT_OK if valid
29 } 27 }
30 LTC_MUTEX_UNLOCK(&ltc_hash_mutex); 28 LTC_MUTEX_UNLOCK(&ltc_hash_mutex);
31 return CRYPT_OK; 29 return CRYPT_OK;
32 } 30 }
33 31
34 /* $Source$ */ 32 /* ref: $Format:%D$ */
35 /* $Revision$ */ 33 /* git commit: $Format:%H$ */
36 /* $Date$ */ 34 /* commit time: $Format:%ai$ */