2 * Claws Mail -- a GTK based, lightweight, and fast e-mail client
3 * Copyright (C) 2016 The Claws Mail Team
5 * pkcs5_pbkdf2.h - Password-Based Key Derivation Function 2
7 * according to the definition of MD5 in RFC 1321 from April 1992.
8 * NOTE: This is *not* the same file as the one from glibc
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by the
12 * Free Software Foundation; either version 3, or (at your option) any
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef __PKCS_PBKDF2_H
25 #define __PKCS_PBKDF2_H
27 /* The output will be placed into memory pointed to by key parameter.
28 * Memory needs to be pre-allocated with key_len bytes. */
29 gint
pkcs5_pbkdf2(const gchar
*pass
, size_t pass_len
, const guchar
*salt
,
30 size_t salt_len
, guchar
*key
, size_t key_len
, guint rounds
);
32 #endif /* __PKCS_PBKDF2_H */