mmlib/mmat: replace some variables by literal constants
[mmondor.git] / mmsoftware / mmlib / mmrc4util.h
1 /* $Id: mmrc4util.h,v 1.5 2004/06/01 19:11:57 mmondor Exp $ */
2
3 /*
4 * Copyright (C) 2003-2004, Matthew Mondor
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 * must display the following acknowledgement:
17 * This product includes software developed by Matthew Mondor.
18 * 4. The name of Matthew Mondor may not be used to endorse or promote
19 * products derived from this software without specific prior written
20 * permission.
21 * 5. Redistribution of source code may not be released under the terms of
22 * any GNU Public License derivate.
23 *
24 * THIS SOFTWARE IS PROVIDED BY MATTHEW MONDOR ``AS IS'' AND ANY EXPRESS OR
25 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27 * IN NO EVENT SHALL MATTHEW MONDOR BE LIABLE FOR ANY DIRECT, INDIRECT,
28 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
29 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
30 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 */
35
36 #ifndef MM_RC4UTIL_H
37 #define MM_RC4UTIL_H
38
39
40
41 #include <sys/types.h>
42
43 #include <openssl/rc4.h>
44
45 #include <mmtypes.h>
46 #include <mmfd.h>
47
48
49
50 extern void rc4_load(RC4_KEY **, void **, const char *, size_t);
51 extern void rc4_random(RC4_KEY **, void **, size_t);
52 extern void rc4_free(RC4_KEY **, void **);
53 extern void rc4_create(RC4_KEY **, const void *, size_t);
54 extern void rc4_copy(RC4_KEY **, RC4_KEY *, void **, const void *,
55 size_t);
56 extern ssize_t rc4_read(RC4_KEY *, fdbuf *, void *, void *, size_t);
57 extern ssize_t rc4_write(RC4_KEY *, fdbuf *, void *, const void *, size_t);
58
59
60
61 #endif