comparison libtomcrypt/src/misc/pkcs5/pkcs_5_2.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_2.c 14 @file pkcs_5_2.c
15 PKCS #5, Algorithm #2, Tom St Denis 15 LTC_PKCS #5, Algorithm #2, Tom St Denis
16 */ 16 */
17 #ifdef PKCS_5 17 #ifdef LTC_PKCS_5
18 18
19 /** 19 /**
20 Execute PKCS #5 v2 20 Execute LTC_PKCS #5 v2
21 @param password The input password (or key) 21 @param password The input password (or key)
22 @param password_len The length of the password (octets) 22 @param password_len The length of the password (octets)
23 @param salt The salt (or nonce) 23 @param salt The salt (or nonce)
24 @param salt_len The length of the salt (octets) 24 @param salt_len The length of the salt (octets)
25 @param iteration_count # of iterations desired for PKCS #5 v2 [read specs for more] 25 @param iteration_count # of iterations desired for LTC_PKCS #5 v2 [read specs for more]
26 @param hash_idx The index of the hash desired 26 @param hash_idx The index of the hash desired
27 @param out [out] The destination for this algorithm 27 @param out [out] The destination for this algorithm
28 @param outlen [in/out] The max size and resulting size of the algorithm output 28 @param outlen [in/out] The max size and resulting size of the algorithm output
29 @return CRYPT_OK if successful 29 @return CRYPT_OK if successful
30 */ 30 */
122 } 122 }
123 123
124 #endif 124 #endif
125 125
126 126
127 /* $Source: /cvs/libtom/libtomcrypt/src/misc/pkcs5/pkcs_5_2.c,v $ */ 127 /* $Source$ */
128 /* $Revision: 1.5 $ */ 128 /* $Revision$ */
129 /* $Date: 2006/03/31 14:15:35 $ */ 129 /* $Date$ */