| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 32 | kaklik | /********************************************************************* |
| 2 | * |
||
| 3 | * ARCFOUR Cryptography Library |
||
| 4 | * Library for Microchip TCP/IP Stack |
||
| 5 | * - Provides encryption and decryption capabilities for the ARCFOUR |
||
| 6 | * algorithm, typically used as a bulk cipher for SSL |
||
| 7 | * - Reference: http://tools.ietf.org/html/draft-kaukonen-cipher-arcfour-01 |
||
| 8 | * |
||
| 9 | ********************************************************************* |
||
| 10 | * FileName: ARCFOUR.c |
||
| 11 | * Dependencies: None |
||
| 12 | * Processor: PIC18, PIC24F, PIC24H, dsPIC30F, dsPIC33F, PIC32 |
||
| 13 | * Compiler: Microchip C32 v1.05 or higher |
||
| 14 | * Microchip C30 v3.12 or higher |
||
| 15 | * Microchip C18 v3.30 or higher |
||
| 16 | * HI-TECH PICC-18 PRO 9.63PL2 or higher |
||
| 17 | * Company: Microchip Technology, Inc. |
||
| 18 | * |
||
| 19 | * Software License Agreement |
||
| 20 | * |
||
| 21 | * Copyright (C) 2002-2009 Microchip Technology Inc. All rights |
||
| 22 | * reserved. |
||
| 23 | * |
||
| 24 | * Microchip licenses to you the right to use, modify, copy, and |
||
| 25 | * distribute: |
||
| 26 | * (i) the Software when embedded on a Microchip microcontroller or |
||
| 27 | * digital signal controller product ("Device") which is |
||
| 28 | * integrated into Licensee's product; or |
||
| 29 | * (ii) ONLY the Software driver source files ENC28J60.c, ENC28J60.h, |
||
| 30 | * ENCX24J600.c and ENCX24J600.h ported to a non-Microchip device |
||
| 31 | * used in conjunction with a Microchip ethernet controller for |
||
| 32 | * the sole purpose of interfacing with the ethernet controller. |
||
| 33 | * |
||
| 34 | * You should refer to the license agreement accompanying this |
||
| 35 | * Software for additional information regarding your rights and |
||
| 36 | * obligations. |
||
| 37 | * |
||
| 38 | * THE SOFTWARE AND DOCUMENTATION ARE PROVIDED "AS IS" WITHOUT |
||
| 39 | * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT |
||
| 40 | * LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A |
||
| 41 | * PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL |
||
| 42 | * MICROCHIP BE LIABLE FOR ANY INCIDENTAL, SPECIAL, INDIRECT OR |
||
| 43 | * CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF |
||
| 44 | * PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY OR SERVICES, ANY CLAIMS |
||
| 45 | * BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE |
||
| 46 | * THEREOF), ANY CLAIMS FOR INDEMNITY OR CONTRIBUTION, OR OTHER |
||
| 47 | * SIMILAR COSTS, WHETHER ASSERTED ON THE BASIS OF CONTRACT, TORT |
||
| 48 | * (INCLUDING NEGLIGENCE), BREACH OF WARRANTY, OR OTHERWISE. |
||
| 49 | * |
||
| 50 | * IMPORTANT: The implementation and use of third party algorithms, |
||
| 51 | * specifications and/or other technology may require a license from |
||
| 52 | * various third parties. It is your responsibility to obtain |
||
| 53 | * information regarding any applicable licensing obligations. |
||
| 54 | * |
||
| 55 | * |
||
| 56 | * Author Date Comment |
||
| 57 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
| 58 | * Elliott Wood 2/27/07 Original |
||
| 59 | ********************************************************************/ |
||
| 60 | #define __ARCFOUR_C |
||
| 61 | |||
| 62 | #include "TCPIPConfig.h" |
||
| 63 | |||
| 64 | #if defined(STACK_USE_SSL_SERVER) || defined(STACK_USE_SSL_CLIENT) |
||
| 65 | |||
| 66 | // To comply with US Export Control restrictions, the encryption |
||
| 67 | // portion of the SSL module must be obtained separately from |
||
| 68 | // Microchip. The library of Data Encryption Routines (SW300052) is |
||
| 69 | // available for a nominal fee from www.microchipdirect.com. |
||
| 70 | #error ARCFOUR encryption module requires SW300052 from www.microchipdirect.com |
||
| 71 | |||
| 72 | #endif //#if defined(STACK_USE_SSL_SERVER) || defined(STACK_USE_SSL_CLIENT) |
||
| 73 |
Powered by WebSVN v2.8.3