My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cipher.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * Copyright 2000, 2010 Oracle and/or its affiliates.
7  *
8  * OpenOffice.org - a multi-platform office productivity suite
9  *
10  * This file is part of OpenOffice.org.
11  *
12  * OpenOffice.org is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License version 3
14  * only, as published by the Free Software Foundation.
15  *
16  * OpenOffice.org is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License version 3 for more details
20  * (a copy is included in the LICENSE file that accompanied this code).
21  *
22  * You should have received a copy of the GNU Lesser General Public License
23  * version 3 along with OpenOffice.org. If not, see
24  * <http://www.openoffice.org/license.html>
25  * for a copy of the LGPLv3 License.
26  *
27  ************************************************************************/
28 
29 #ifndef _RTL_CIPHER_H_
30 #define _RTL_CIPHER_H_
31 
32 #include <sal/types.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /*========================================================================
39  *
40  * rtlCipher interface.
41  *
42  *======================================================================*/
45 typedef void* rtlCipher;
46 
47 
52 {
57 };
58 
62 
63 
68 {
74 };
75 
79 
80 
85 {
91 };
92 
96 
97 
101 {
111 };
112 
116 
117 
126 SAL_DLLPUBLIC rtlCipher SAL_CALL rtl_cipher_create (
127  rtlCipherAlgorithm Algorithm,
128  rtlCipherMode Mode
130 
131 
143 SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_init (
144  rtlCipher Cipher,
145  rtlCipherDirection Direction,
146  const sal_uInt8 *pKeyData, sal_Size nKeyLen,
147  const sal_uInt8 *pArgData, sal_Size nArgLen
149 
150 
162 SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_encode (
163  rtlCipher Cipher,
164  const void *pData, sal_Size nDatLen,
165  sal_uInt8 *pBuffer, sal_Size nBufLen
167 
168 
180 SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_decode (
181  rtlCipher Cipher,
182  const void *pData, sal_Size nDatLen,
183  sal_uInt8 *pBuffer, sal_Size nBufLen
185 
186 
191 SAL_DLLPUBLIC void SAL_CALL rtl_cipher_destroy (
192  rtlCipher Cipher
194 
195 
196 /*========================================================================
197  *
198  * rtl_cipherBF (Blowfish) interface.
199  *
200  *======================================================================*/
207 SAL_DLLPUBLIC rtlCipher SAL_CALL rtl_cipher_createBF (
208  rtlCipherMode Mode
210 
211 
215 SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_initBF (
216  rtlCipher Cipher,
217  rtlCipherDirection Direction,
218  const sal_uInt8 *pKeyData, sal_Size nKeyLen,
219  const sal_uInt8 *pArgData, sal_Size nArgLen
221 
222 
226 SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_encodeBF (
227  rtlCipher Cipher,
228  const void *pData, sal_Size nDatLen,
229  sal_uInt8 *pBuffer, sal_Size nBufLen
231 
232 
236 SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_decodeBF (
237  rtlCipher Cipher,
238  const void *pData, sal_Size nDatLen,
239  sal_uInt8 *pBuffer, sal_Size nBufLen
241 
242 
246 SAL_DLLPUBLIC void SAL_CALL rtl_cipher_destroyBF (
247  rtlCipher Cipher
249 
250 
251 /*========================================================================
252  *
253  * rtl_cipherARCFOUR (RC4) interface.
254  *
255  *======================================================================*/
265 SAL_DLLPUBLIC rtlCipher SAL_CALL rtl_cipher_createARCFOUR (
266  rtlCipherMode Mode
268 
269 
273 SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_initARCFOUR (
274  rtlCipher Cipher,
275  rtlCipherDirection Direction,
276  const sal_uInt8 *pKeyData, sal_Size nKeyLen,
277  const sal_uInt8 *pArgData, sal_Size nArgLen
279 
280 
284 SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_encodeARCFOUR (
285  rtlCipher Cipher,
286  const void *pData, sal_Size nDatLen,
287  sal_uInt8 *pBuffer, sal_Size nBufLen
289 
290 
294 SAL_DLLPUBLIC rtlCipherError SAL_CALL rtl_cipher_decodeARCFOUR (
295  rtlCipher Cipher,
296  const void *pData, sal_Size nDatLen,
297  sal_uInt8 *pBuffer, sal_Size nBufLen
299 
300 
305  rtlCipher Cipher
307 
308 
309 /*========================================================================
310  *
311  * The End.
312  *
313  *======================================================================*/
314 
315 #ifdef __cplusplus
316 }
317 #endif
318 
319 #endif /* !_RTL_CIPHER_H_ */
320 
321 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */