Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of wolfSSL by
wolfssl/wolfcrypt/wc_encrypt.h@3:6f956bdb3073, 2016-04-28 (annotated)
- Committer:
- wolfSSL
- Date:
- Thu Apr 28 00:56:55 2016 +0000
- Revision:
- 3:6f956bdb3073
wolfSSL 3.9.0
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| wolfSSL | 3:6f956bdb3073 | 1 | /* wc_encrypt.h | 
| wolfSSL | 3:6f956bdb3073 | 2 | * | 
| wolfSSL | 3:6f956bdb3073 | 3 | * Copyright (C) 2006-2016 wolfSSL Inc. | 
| wolfSSL | 3:6f956bdb3073 | 4 | * | 
| wolfSSL | 3:6f956bdb3073 | 5 | * This file is part of wolfSSL. | 
| wolfSSL | 3:6f956bdb3073 | 6 | * | 
| wolfSSL | 3:6f956bdb3073 | 7 | * wolfSSL is free software; you can redistribute it and/or modify | 
| wolfSSL | 3:6f956bdb3073 | 8 | * it under the terms of the GNU General Public License as published by | 
| wolfSSL | 3:6f956bdb3073 | 9 | * the Free Software Foundation; either version 2 of the License, or | 
| wolfSSL | 3:6f956bdb3073 | 10 | * (at your option) any later version. | 
| wolfSSL | 3:6f956bdb3073 | 11 | * | 
| wolfSSL | 3:6f956bdb3073 | 12 | * wolfSSL is distributed in the hope that it will be useful, | 
| wolfSSL | 3:6f956bdb3073 | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| wolfSSL | 3:6f956bdb3073 | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 
| wolfSSL | 3:6f956bdb3073 | 15 | * GNU General Public License for more details. | 
| wolfSSL | 3:6f956bdb3073 | 16 | * | 
| wolfSSL | 3:6f956bdb3073 | 17 | * You should have received a copy of the GNU General Public License | 
| wolfSSL | 3:6f956bdb3073 | 18 | * along with this program; if not, write to the Free Software | 
| wolfSSL | 3:6f956bdb3073 | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA | 
| wolfSSL | 3:6f956bdb3073 | 20 | */ | 
| wolfSSL | 3:6f956bdb3073 | 21 | |
| wolfSSL | 3:6f956bdb3073 | 22 | |
| wolfSSL | 3:6f956bdb3073 | 23 | |
| wolfSSL | 3:6f956bdb3073 | 24 | #ifndef WOLF_CRYPT_ENCRYPT_H | 
| wolfSSL | 3:6f956bdb3073 | 25 | #define WOLF_CRYPT_ENCRYPT_H | 
| wolfSSL | 3:6f956bdb3073 | 26 | |
| wolfSSL | 3:6f956bdb3073 | 27 | #include <wolfssl/wolfcrypt/types.h> | 
| wolfSSL | 3:6f956bdb3073 | 28 | |
| wolfSSL | 3:6f956bdb3073 | 29 | #ifdef __cplusplus | 
| wolfSSL | 3:6f956bdb3073 | 30 | extern "C" { | 
| wolfSSL | 3:6f956bdb3073 | 31 | #endif | 
| wolfSSL | 3:6f956bdb3073 | 32 | |
| wolfSSL | 3:6f956bdb3073 | 33 | #ifndef NO_AES | 
| wolfSSL | 3:6f956bdb3073 | 34 | WOLFSSL_API int wc_AesCbcEncryptWithKey(byte* out, const byte* in, word32 inSz, | 
| wolfSSL | 3:6f956bdb3073 | 35 | const byte* key, word32 keySz, | 
| wolfSSL | 3:6f956bdb3073 | 36 | const byte* iv); | 
| wolfSSL | 3:6f956bdb3073 | 37 | WOLFSSL_API int wc_AesCbcDecryptWithKey(byte* out, const byte* in, word32 inSz, | 
| wolfSSL | 3:6f956bdb3073 | 38 | const byte* key, word32 keySz, | 
| wolfSSL | 3:6f956bdb3073 | 39 | const byte* iv); | 
| wolfSSL | 3:6f956bdb3073 | 40 | #endif /* !NO_AES */ | 
| wolfSSL | 3:6f956bdb3073 | 41 | |
| wolfSSL | 3:6f956bdb3073 | 42 | |
| wolfSSL | 3:6f956bdb3073 | 43 | #ifndef NO_DES3 | 
| wolfSSL | 3:6f956bdb3073 | 44 | WOLFSSL_API int wc_Des_CbcDecryptWithKey(byte* out, | 
| wolfSSL | 3:6f956bdb3073 | 45 | const byte* in, word32 sz, | 
| wolfSSL | 3:6f956bdb3073 | 46 | const byte* key, const byte* iv); | 
| wolfSSL | 3:6f956bdb3073 | 47 | WOLFSSL_API int wc_Des_CbcEncryptWithKey(byte* out, | 
| wolfSSL | 3:6f956bdb3073 | 48 | const byte* in, word32 sz, | 
| wolfSSL | 3:6f956bdb3073 | 49 | const byte* key, const byte* iv); | 
| wolfSSL | 3:6f956bdb3073 | 50 | WOLFSSL_API int wc_Des3_CbcEncryptWithKey(byte* out, | 
| wolfSSL | 3:6f956bdb3073 | 51 | const byte* in, word32 sz, | 
| wolfSSL | 3:6f956bdb3073 | 52 | const byte* key, const byte* iv); | 
| wolfSSL | 3:6f956bdb3073 | 53 | WOLFSSL_API int wc_Des3_CbcDecryptWithKey(byte* out, | 
| wolfSSL | 3:6f956bdb3073 | 54 | const byte* in, word32 sz, | 
| wolfSSL | 3:6f956bdb3073 | 55 | const byte* key, const byte* iv); | 
| wolfSSL | 3:6f956bdb3073 | 56 | #endif /* !NO_DES3 */ | 
| wolfSSL | 3:6f956bdb3073 | 57 | |
| wolfSSL | 3:6f956bdb3073 | 58 | #ifdef __cplusplus | 
| wolfSSL | 3:6f956bdb3073 | 59 | } /* extern "C" */ | 
| wolfSSL | 3:6f956bdb3073 | 60 | #endif | 
| wolfSSL | 3:6f956bdb3073 | 61 | |
| wolfSSL | 3:6f956bdb3073 | 62 | #endif /* WOLF_CRYPT_ENCRYPT_H */ | 
| wolfSSL | 3:6f956bdb3073 | 63 | |
| wolfSSL | 3:6f956bdb3073 | 64 | 
