comparison libtomcrypt/src/misc/pkcs5/pkcs_5_1.c @ 1435:f849a5ca2efc

update to libtomcrypt 1.17 (with Dropbear changes)
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Jun 2017 17:50:50 +0800
parents 0cbe8f6dbf9e
children 6dba84798cd5
comparison
equal deleted inserted replaced
1434:27b9ddb06b09 1435:f849a5ca2efc
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 * 8 *
9 * Tom St Denis, [email protected], http://libtomcrypt.com 9 * Tom St Denis, [email protected], http://libtom.org
10 */ 10 */
11 #include <tomcrypt.h> 11 #include <tomcrypt.h>
12 12
13 /** 13 /**
14 @file pkcs_5_1.c 14 @file pkcs_5_1.c
15 PKCS #5, Algorithm #1, Tom St Denis 15 LTC_PKCS #5, Algorithm #1, Tom St Denis
16 */ 16 */
17 #ifdef PKCS_5 17 #ifdef LTC_PKCS_5
18 /** 18 /**
19 Execute PKCS #5 v1 19 Execute LTC_PKCS #5 v1
20 @param password The password (or key) 20 @param password The password (or key)
21 @param password_len The length of the password (octet) 21 @param password_len The length of the password (octet)
22 @param salt The salt (or nonce) which is 8 octets long 22 @param salt The salt (or nonce) which is 8 octets long
23 @param iteration_count The PKCS #5 v1 iteration count 23 @param iteration_count The LTC_PKCS #5 v1 iteration count
24 @param hash_idx The index of the hash desired 24 @param hash_idx The index of the hash desired
25 @param out [out] The destination for this algorithm 25 @param out [out] The destination for this algorithm
26 @param outlen [in/out] The max size and resulting size of the algorithm output 26 @param outlen [in/out] The max size and resulting size of the algorithm output
27 @return CRYPT_OK if successful 27 @return CRYPT_OK if successful
28 */ 28 */
99 return err; 99 return err;
100 } 100 }
101 101
102 #endif 102 #endif
103 103
104 /* $Source: /cvs/libtom/libtomcrypt/src/misc/pkcs5/pkcs_5_1.c,v $ */ 104 /* $Source$ */
105 /* $Revision: 1.5 $ */ 105 /* $Revision$ */
106 /* $Date: 2006/03/31 14:15:35 $ */ 106 /* $Date$ */