comparison libtomcrypt/src/misc/crypt/crypt_register_prng.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_register_prng.c 12 @file crypt_register_prng.c
15 Register a PRNG, Tom St Denis 13 Register a PRNG, Tom St Denis
16 */ 14 */
17 15
18 /** 16 /**
19 Register a PRNG with the descriptor table 17 Register a PRNG with the descriptor table
20 @param prng The PRNG you wish to register 18 @param prng The PRNG you wish to register
21 @return value >= 0 if successfully added (or already present), -1 if unsuccessful 19 @return value >= 0 if successfully added (or already present), -1 if unsuccessful
22 */ 20 */
47 /* no spot */ 45 /* no spot */
48 LTC_MUTEX_UNLOCK(&ltc_prng_mutex); 46 LTC_MUTEX_UNLOCK(&ltc_prng_mutex);
49 return -1; 47 return -1;
50 } 48 }
51 49
52 /* $Source$ */ 50 /* ref: $Format:%D$ */
53 /* $Revision$ */ 51 /* git commit: $Format:%H$ */
54 /* $Date$ */ 52 /* commit time: $Format:%ai$ */