|
1 /* |
|
2 * Copyright (c) 2005-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 */ |
|
24 |
|
25 #include <pbebase.h> |
|
26 #include <pbe.h> |
|
27 |
|
28 EXPORT_C CPBEncryptElementBase* TPBEncryptionFactory::NewPBEncryptElementL( |
|
29 const TDesC& aPassword) |
|
30 { |
|
31 CPBEncryptElementBase* encrypt = NewPBEncryptElementLC(aPassword); |
|
32 CleanupStack::Pop(); |
|
33 return encrypt; |
|
34 } |
|
35 |
|
36 EXPORT_C CPBEncryptElementBase* TPBEncryptionFactory::NewPBEncryptElementLC( |
|
37 const TDesC& aPassword) |
|
38 { |
|
39 CPBEncryptElement* encrypt = CPBEncryptElement::NewLC(aPassword); |
|
40 return encrypt; |
|
41 } |
|
42 |
|
43 EXPORT_C CPBEncryptElementBase* TPBEncryptionFactory::NewPBEncryptElementL( |
|
44 const TDesC& aPassword, const TPBEncryptParms& aEncryptParms) |
|
45 { |
|
46 CPBEncryptElementBase* encrypt = NewPBEncryptElementLC(aPassword,aEncryptParms); |
|
47 CleanupStack::Pop(); |
|
48 return encrypt; |
|
49 } |
|
50 |
|
51 EXPORT_C CPBEncryptElementBase* TPBEncryptionFactory::NewPBEncryptElementLC( |
|
52 const TDesC& aPassword, const TPBEncryptParms& aEncryptParms) |
|
53 { |
|
54 CPBEncryptElement* encrypt = CPBEncryptElement::NewLC(aPassword, |
|
55 aEncryptParms); |
|
56 return encrypt; |
|
57 } |
|
58 |
|
59 EXPORT_C CPBEncryptElementBase* TPBEncryptionFactory::NewPBEncryptElementL( |
|
60 const TPBEncryptionData& aData) |
|
61 { |
|
62 CPBEncryptElementBase* encrypt = NewPBEncryptElementLC(aData); |
|
63 CleanupStack::Pop(); |
|
64 return encrypt; |
|
65 } |
|
66 |
|
67 EXPORT_C CPBEncryptElementBase* TPBEncryptionFactory::NewPBEncryptElementLC( |
|
68 const TPBEncryptionData& aData) |
|
69 { |
|
70 CPBEncryptElement* encrypt = CPBEncryptElement::NewLC(aData); |
|
71 return encrypt; |
|
72 } |
|
73 |
|
74 EXPORT_C CPBEncryptSetBase* TPBEncryptionFactory::NewPBEncryptSetL( |
|
75 const TDesC& aPassword) |
|
76 { |
|
77 CPBEncryptSetBase* encrypt = NewPBEncryptSetLC(aPassword); |
|
78 CleanupStack::Pop(); |
|
79 return encrypt; |
|
80 } |
|
81 |
|
82 EXPORT_C CPBEncryptSetBase* TPBEncryptionFactory::NewPBEncryptSetLC( |
|
83 const TDesC& aPassword) |
|
84 { |
|
85 CPBEncryptSet* encrypt = CPBEncryptSet::NewLC(aPassword); |
|
86 return encrypt; |
|
87 } |
|
88 |
|
89 EXPORT_C CPBEncryptSetBase* TPBEncryptionFactory::NewPBEncryptSetL( |
|
90 const TDesC& aPassword, const TPBEncryptParms& aEncryptParms) |
|
91 { |
|
92 CPBEncryptSetBase* encrypt = NewPBEncryptSetLC(aPassword, aEncryptParms); |
|
93 CleanupStack::Pop(); |
|
94 return encrypt; |
|
95 } |
|
96 |
|
97 EXPORT_C CPBEncryptSetBase* TPBEncryptionFactory::NewPBEncryptSetLC( |
|
98 const TDesC& aPassword, const TPBEncryptParms& aEncryptParms) |
|
99 { |
|
100 CPBEncryptSet* encrypt = CPBEncryptSet::NewLC(aPassword, aEncryptParms); |
|
101 return encrypt; |
|
102 } |
|
103 |
|
104 EXPORT_C CPBEncryptSetBase* TPBEncryptionFactory::NewPBEncryptSetL( |
|
105 const TPBEncryptionData& aData, const TDesC8& aEncryptedMasterKey) |
|
106 { |
|
107 CPBEncryptSetBase* encrypt = NewPBEncryptSetLC(aData, aEncryptedMasterKey); |
|
108 CleanupStack::Pop(); |
|
109 return encrypt; |
|
110 } |
|
111 |
|
112 EXPORT_C CPBEncryptSetBase* TPBEncryptionFactory::NewPBEncryptSetLC( |
|
113 const TPBEncryptionData& aData, const TDesC8& aEncryptedMasterKey) |
|
114 { |
|
115 CPBEncryptSet* encrypt = CPBEncryptSet::NewLC(aData, aEncryptedMasterKey); |
|
116 return encrypt; |
|
117 } |