1 /* gc-pbkdf2-sha1.h --- Password-Based Key Derivation Function a'la PKCS#5 2 Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009, 2010 Free Software 3 Foundation, Inc. 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2, or (at your option) 8 any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software Foundation, 17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 18 19 /* Written by Simon Josefsson. */ 20 21 #ifndef __PBKDF2_SHA1__ 22 #define __PBKDF2_SHA1__ 23 24 #include <stdlib.h> 25 26 # ifdef __cplusplus 27 extern "C" { 28 # endif 29 30 extern int pbkdf2_sha1 (const char *P, size_t Plen, 31 const char *S, size_t Slen, 32 unsigned int c, 33 char *DK, size_t dkLen); 34 35 # ifdef __cplusplus 36 } 37 # endif 38 39 40 #endif /* __PBKDF2_SHA1__ */ 41