source: azure_iot_hub/trunk/wolfssl-3.15.7/wolfssl/wolfcrypt/pwdbased.h@ 388

Last change on this file since 388 was 388, checked in by coas-nagasima, 5 years ago

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 2.5 KB
Line 
1/* pwdbased.h
2 *
3 * Copyright (C) 2006-2017 wolfSSL Inc.
4 *
5 * This file is part of wolfSSL.
6 *
7 * wolfSSL is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * wolfSSL is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20 */
21
22/*!
23 \file wolfssl/wolfcrypt/pwdbased.h
24*/
25
26#ifndef WOLF_CRYPT_PWDBASED_H
27#define WOLF_CRYPT_PWDBASED_H
28
29#include <wolfssl/wolfcrypt/types.h>
30
31#ifndef NO_PWDBASED
32
33
34#ifdef __cplusplus
35 extern "C" {
36#endif
37
38/*
39 * hashType renamed to typeH to avoid shadowing global declaration here:
40 * wolfssl/wolfcrypt/asn.h line 173 in enum Oid_Types
41 */
42WOLFSSL_API int wc_PBKDF1_ex(byte* key, int keyLen, byte* iv, int ivLen,
43 const byte* passwd, int passwdLen,
44 const byte* salt, int saltLen, int iterations,
45 int hashType, void* heap);
46WOLFSSL_API int wc_PBKDF1(byte* output, const byte* passwd, int pLen,
47 const byte* salt, int sLen, int iterations, int kLen,
48 int typeH);
49WOLFSSL_API int wc_PBKDF2(byte* output, const byte* passwd, int pLen,
50 const byte* salt, int sLen, int iterations, int kLen,
51 int typeH);
52WOLFSSL_API int wc_PKCS12_PBKDF(byte* output, const byte* passwd, int pLen,
53 const byte* salt, int sLen, int iterations,
54 int kLen, int typeH, int purpose);
55WOLFSSL_API int wc_PKCS12_PBKDF_ex(byte* output, const byte* passwd,int passLen,
56 const byte* salt, int saltLen, int iterations, int kLen,
57 int hashType, int id, void* heap);
58
59#ifdef HAVE_SCRYPT
60WOLFSSL_API int wc_scrypt(byte* output, const byte* passwd, int passLen,
61 const byte* salt, int saltLen, int cost,
62 int blockSize, int parallel, int dkLen);
63#endif
64
65
66#ifdef __cplusplus
67 } /* extern "C" */
68#endif
69
70#endif /* NO_PWDBASED */
71#endif /* WOLF_CRYPT_PWDBASED_H */
Note: See TracBrowser for help on using the repository browser.