FreeCalypso > hg > tcs211-c139
comparison g23m/condat/com/include/cl_des.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : COMLIB | |
4 | Modul : cl_des.h | |
5 +----------------------------------------------------------------------------- | |
6 | Copyright 2002 Texas Instruments Berlin, AG | |
7 | All rights reserved. | |
8 | | |
9 | This file is confidential and a trade secret of Texas | |
10 | Instruments Berlin, AG | |
11 | The receipt of or possession of this file does not convey | |
12 | any rights to reproduce or disclose its contents or to | |
13 | manufacture, use, or sell anything it may describe, in | |
14 | whole, or in part, without the specific written consent of | |
15 | Texas Instruments Berlin, AG. | |
16 +----------------------------------------------------------------------------- | |
17 | Purpose : Definitions of global types used by common library functions | |
18 | and the prototypes of those functions. | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 /* | |
22 * Version 1.0 | |
23 */ | |
24 | |
25 /**********************************************************************************/ | |
26 | |
27 #ifndef CL_DES_H | |
28 #define CL_DES_H | |
29 | |
30 /**********************************************************************************/ | |
31 | |
32 #define CL_DES_BUFFER_SIZE 8 | |
33 #define CL_DES_KEY_SIZE 8 | |
34 #define CL_DES_ENCRYPTION 1 | |
35 #define CL_DES_DECRYPTION 2 | |
36 | |
37 #if defined(CL_IMEI_CALYPSO_PLATFORM) && defined(FF_PROTECTED_IMEI) | |
38 | |
39 /* | |
40 +------------------------------------------------------------------------------ | |
41 | Function : cl_des | |
42 +------------------------------------------------------------------------------ | |
43 | Description : The function performs DES encrypting or decrypting | |
44 | | |
45 | Parameters : inMsgPtr : pointer to input message M. The length of message | |
46 | has to be min. 8 bytes e.g. M = 0123456789abcdef | |
47 | desKeyPtr : pointer to DES key. Length has to be 8 bytes | |
48 | outMsgPtr : output encrypted/decrypted message. The length is 8 b. | |
49 | code : CL_DES_ENCRYPTION, CL_DES_DECRYPTION | |
50 +------------------------------------------------------------------------------ | |
51 */ | |
52 EXTERN void cl_des(UBYTE *inMsgPtr, UBYTE *desKeyPtr, UBYTE *outMsgPtr, UBYTE code); | |
53 | |
54 | |
55 /**********************************************************************************/ | |
56 | |
57 #endif | |
58 #endif /* CL_DES_H */ |