Corrections to SVN properties.
[AROS.git] / workbench / devs / networks / atheros5000 / encryption_protos.h
blob2035ab9ee1969b5dc4ef08b76309c5bff1062ce2
1 /*
3 Copyright (C) 2010 Neil Cafferkey
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston,
18 MA 02111-1307, USA.
22 #ifndef ENCRYPTION_PROTOS_H
23 #define ENCRYPTION_PROTOS_H
26 #include "device.h"
28 VOID WriteClearFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
29 UWORD *size, UBYTE *buffer, struct DevBase *base);
30 VOID EncryptWEPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
31 UWORD *size, UBYTE *buffer, struct DevBase *base);
32 VOID WriteWEPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
33 UWORD *size, UBYTE *buffer, struct DevBase *base);
34 VOID EncryptTKIPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
35 UWORD *size, UBYTE *buffer, struct DevBase *base);
36 VOID WriteTKIPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
37 UWORD *size, UBYTE *buffer, struct DevBase *base);
38 VOID EncryptCCMPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
39 UWORD *size, UBYTE *buffer, struct DevBase *base);
40 VOID WriteCCMPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
41 UWORD *size, UBYTE *buffer, struct DevBase *base);
42 BOOL ReadClearFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
43 UWORD *size, UBYTE *buffer, struct DevBase *base);
44 BOOL DecryptWEPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
45 UWORD *size, UBYTE *buffer, struct DevBase *base);
46 BOOL ReadWEPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
47 UWORD *size, UBYTE *buffer, struct DevBase *base);
48 BOOL DecryptTKIPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
49 UWORD *size, UBYTE *buffer, struct DevBase *base);
50 BOOL ReadTKIPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
51 UWORD *size, UBYTE *buffer, struct DevBase *base);
52 BOOL DecryptCCMPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
53 UWORD *size, UBYTE *buffer, struct DevBase *base);
54 BOOL ReadCCMPFragment(struct DevUnit *unit, UBYTE *header, UBYTE *data,
55 UWORD *size, UBYTE *buffer, struct DevBase *base);
56 VOID TKIPEncryptFrame(struct DevUnit *unit, const UBYTE *header,
57 UBYTE *data, UWORD size, UBYTE *buffer, struct DevBase *base);
58 BOOL TKIPDecryptFrame(struct DevUnit *unit, const UBYTE *header,
59 UBYTE *data, UWORD size, UBYTE *buffer, UWORD key_no,
60 struct DevBase *base);
61 VOID RC4Encrypt(struct DevUnit *unit, const UBYTE *data, UWORD size,
62 UBYTE *buffer, UBYTE *seed, struct DevBase *base);
63 BOOL RC4Decrypt(struct DevUnit *unit, const UBYTE *data, UWORD size,
64 UBYTE *buffer, UBYTE *seed, struct DevBase *base);
67 #endif