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