svn-gvsig-desktop / tags / v1_9_Build_1234 / libraries / libjni-readecw-linux / include / NCSCrypto.h @ 43614
History | View | Annotate | Download (1.22 KB)
1 | 1448 | igbrotru | /********************************************************
|
---|---|---|---|
2 | ** Copyright 2000 Earth Resource Mapping Ltd.
|
||
3 | ** This document contains proprietary source code of
|
||
4 | ** Earth Resource Mapping Ltd, and can only be used under
|
||
5 | ** one of the three licenses as described in the
|
||
6 | ** license.txt file supplied with this distribution.
|
||
7 | ** See separate license.txt file for license details
|
||
8 | ** and conditions.
|
||
9 | **
|
||
10 | ** This software is covered by US patent #6,442,298,
|
||
11 | ** #6,102,897 and #6,633,688. Rights to use these patents
|
||
12 | ** is included in the license agreements.
|
||
13 | **
|
||
14 | ** FILE: include\NCSCrypto.h
|
||
15 | ** CREATED: 08Mar00
|
||
16 | ** AUTHOR: Nicholas Yue
|
||
17 | ** PURPOSE: Encryption utilities heeader
|
||
18 | ** EDITS:
|
||
19 | ** [01] 14Nov00 ny Mac port changes
|
||
20 | *******************************************************/
|
||
21 | #include "NCSTypes.h" /**[01]**/ |
||
22 | |||
23 | |||
24 | #ifdef __cplusplus
|
||
25 | extern "C" { |
||
26 | #endif
|
||
27 | |||
28 | #ifndef NCSCRYPTO_H
|
||
29 | #define NCSCRYPTO_H
|
||
30 | |||
31 | #define NCSCryptoNULL 0x0000 |
||
32 | #define NCSCryptoRot13 0x0001 |
||
33 | #define NCSCryptoRSA 0x0002 |
||
34 | |||
35 | extern void NCSSetCryptoMethod(int cryptomethod); |
||
36 | extern int NCSGetCryptoMethod(void); |
||
37 | extern int NCSEncryptData(UINT8 * plaintext, UINT8 * ciphertext); |
||
38 | extern int NCSDecryptData(UINT8 * ciphertext, UINT8 * plaintext); |
||
39 | |||
40 | #endif // NCSCRYPTO_H |
||
41 | |||
42 | #ifdef __cplusplus
|
||
43 | } |
||
44 | #endif |