|
1 /* |
|
2 * Copyright (c) 2001-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #if !defined(_EAP_TYPE_GSMSIM_MAC_ATTRIBUTES_H_) |
|
22 #define _EAP_TYPE_GSMSIM_MAC_ATTRIBUTES_H_ |
|
23 |
|
24 #include "eap_type_gsmsim_header.h" |
|
25 #include "eap_type_all_types.h" |
|
26 |
|
27 //-------------------------------------------------- |
|
28 |
|
29 /// These are the stored attributes for message authentication calculations. |
|
30 class eap_type_gsmsim_MAC_attributes_c |
|
31 { |
|
32 private: |
|
33 //-------------------------------------------------- |
|
34 |
|
35 u8_t * m_MAC; ///< This is the pointer to MAC. |
|
36 u32_t m_MAC_size; ///< This is the size of the MAC. |
|
37 u8_t *m_data; ///< This is the pointer to the authenticated data. |
|
38 u32_t m_data_length; ///< This the length of the authenticated data. |
|
39 |
|
40 //-------------------------------------------------- |
|
41 public: |
|
42 //-------------------------------------------------- |
|
43 |
|
44 virtual ~eap_type_gsmsim_MAC_attributes_c(); |
|
45 |
|
46 eap_type_gsmsim_MAC_attributes_c(); |
|
47 |
|
48 eap_type_gsmsim_MAC_attributes_c( |
|
49 u8_t * MAC, |
|
50 u32_t MAC_size, |
|
51 u8_t * const EAP_data, |
|
52 u32_t EAP_data_length); |
|
53 |
|
54 void init( |
|
55 u8_t * MAC, |
|
56 u32_t MAC_size, |
|
57 u8_t * const EAP_data, |
|
58 u32_t EAP_data_length); |
|
59 |
|
60 u8_t * get_MAC() const; |
|
61 |
|
62 void set_MAC(u8_t * MAC); |
|
63 |
|
64 u32_t get_MAC_size() const; |
|
65 |
|
66 eap_type_gsmsim_MAC_attributes_c * copy() const; |
|
67 |
|
68 u8_t * get_data() const; |
|
69 |
|
70 u32_t get_data_length(); |
|
71 |
|
72 void set_data(u8_t * const data); |
|
73 |
|
74 //-------------------------------------------------- |
|
75 }; |
|
76 |
|
77 |
|
78 #endif //#if !defined(_EAP_TYPE_GSMSIM_MAC_ATTRIBUTES_H_) |
|
79 |
|
80 //-------------------------------------------------- |
|
81 |
|
82 |
|
83 |
|
84 // End. |