source: UsbWattMeter/trunk/wolfssl-3.7.0/wolfssl/wolfcrypt/wc_encrypt.h@ 164

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

TOPPERS/ECNLサンプルアプリ「USB充電器電力計」を追加

  • 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.3 KB
Line 
1/* wc_encrypt.h
2 *
3 * Copyright (C) 2006-2015 wolfSSL Inc.
4 *
5 * This file is part of wolfSSL. (formerly known as CyaSSL)
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-1301, USA
20 */
21
22
23#ifndef WOLF_CRYPT_ENCRYPT_H
24#define WOLF_CRYPT_ENCRYPT_H
25
26#include <wolfssl/wolfcrypt/types.h>
27
28#ifdef __cplusplus
29 extern "C" {
30#endif
31
32#ifndef NO_AES
33WOLFSSL_API int wc_AesCbcEncryptWithKey(byte* out, const byte* in, word32 inSz,
34 const byte* key, word32 keySz,
35 const byte* iv);
36WOLFSSL_API int wc_AesCbcDecryptWithKey(byte* out, const byte* in, word32 inSz,
37 const byte* key, word32 keySz,
38 const byte* iv);
39#endif /* !NO_AES */
40
41
42#ifndef NO_DES3
43WOLFSSL_API int wc_Des_CbcDecryptWithKey(byte* out,
44 const byte* in, word32 sz,
45 const byte* key, const byte* iv);
46WOLFSSL_API int wc_Des_CbcEncryptWithKey(byte* out,
47 const byte* in, word32 sz,
48 const byte* key, const byte* iv);
49WOLFSSL_API int wc_Des3_CbcEncryptWithKey(byte* out,
50 const byte* in, word32 sz,
51 const byte* key, const byte* iv);
52WOLFSSL_API int wc_Des3_CbcDecryptWithKey(byte* out,
53 const byte* in, word32 sz,
54 const byte* key, const byte* iv);
55#endif /* !NO_DES3 */
56
57#ifdef __cplusplus
58 } /* extern "C" */
59#endif
60
61#endif /* WOLF_CRYPT_ENCRYPT_H */
62
Note: See TracBrowser for help on using the repository browser.