|
1 /* |
|
2 * Copyright (c) 2002-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 #include <rc2.h> |
|
20 #include "rc2shim.h" |
|
21 |
|
22 CRC2::CRC2() |
|
23 { |
|
24 } |
|
25 |
|
26 /* CRC2Encryptor */ |
|
27 EXPORT_C CRC2Encryptor* CRC2Encryptor::NewL(const TDesC8& aKey, TInt aEffectiveKeyLenBits) |
|
28 { |
|
29 return CRC2EncryptorShim::NewL(aKey, aEffectiveKeyLenBits); |
|
30 } |
|
31 |
|
32 EXPORT_C CRC2Encryptor* CRC2Encryptor::NewLC(const TDesC8& aKey, TInt aEffectiveKeyLenBits) |
|
33 { |
|
34 return CRC2EncryptorShim::NewLC(aKey, aEffectiveKeyLenBits); |
|
35 } |
|
36 |
|
37 CRC2Encryptor::CRC2Encryptor() |
|
38 { |
|
39 } |
|
40 |
|
41 /* CRC2Decryptor */ |
|
42 EXPORT_C CRC2Decryptor* CRC2Decryptor::NewL(const TDesC8& aKey, TInt aEffectiveKeyLenBits) |
|
43 { |
|
44 return CRC2DecryptorShim::NewL(aKey, aEffectiveKeyLenBits); |
|
45 } |
|
46 |
|
47 EXPORT_C CRC2Decryptor* CRC2Decryptor::NewLC(const TDesC8& aKey, TInt aEffectiveKeyLenBits) |
|
48 { |
|
49 return CRC2DecryptorShim::NewLC(aKey, aEffectiveKeyLenBits); |
|
50 } |
|
51 |
|
52 CRC2Decryptor::CRC2Decryptor() |
|
53 { |
|
54 } |
|
55 |
|
56 // All these methods have been replaced by the shim |
|
57 #ifdef _BullseyeCoverage |
|
58 #pragma suppress_warnings on |
|
59 #pragma BullseyeCoverage off |
|
60 #pragma suppress_warnings off |
|
61 #endif |
|
62 |
|
63 TInt CRC2::BlockSize() const |
|
64 { |
|
65 // Method replaced by shim |
|
66 ASSERT(EFalse); |
|
67 return 0; |
|
68 } |
|
69 |
|
70 TInt CRC2::KeySize() const |
|
71 { |
|
72 // Method replaced by shim |
|
73 ASSERT(EFalse); |
|
74 return 0; |
|
75 } |
|
76 |
|
77 void CRC2::Reset() |
|
78 { |
|
79 // Method replaced by shim |
|
80 ASSERT(EFalse); |
|
81 } |
|
82 |
|
83 void CRC2::SetKey(const TDesC8& /*aKey*/, TInt /*aEffectiveKeyLenBits*/) |
|
84 { |
|
85 // Method replaced by shim |
|
86 ASSERT(EFalse); |
|
87 } |
|
88 |
|
89 void CRC2Decryptor::Transform(TDes8& /*aBlock*/) |
|
90 { |
|
91 // Method replaced by shim |
|
92 ASSERT(EFalse); |
|
93 } |
|
94 |
|
95 void CRC2Encryptor::Transform(TDes8& /*aBlock*/) |
|
96 { |
|
97 // Method replaced by shim |
|
98 ASSERT(EFalse); |
|
99 } |
|
100 |