|
1 /* |
|
2 * Copyright (c) 2003-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 "rsashim.h" |
|
20 |
|
21 |
|
22 /* CRSAPKCS1v15Decryptor */ |
|
23 |
|
24 EXPORT_C CRSAPKCS1v15Decryptor* CRSAPKCS1v15Decryptor::NewL( |
|
25 const CRSAPrivateKey& aKey) |
|
26 { |
|
27 return CRSAPKCS1v15DecryptorShim::NewL(aKey); |
|
28 } |
|
29 |
|
30 EXPORT_C CRSAPKCS1v15Decryptor* CRSAPKCS1v15Decryptor::NewLC( |
|
31 const CRSAPrivateKey& aKey) |
|
32 { |
|
33 return CRSAPKCS1v15DecryptorShim::NewLC(aKey); |
|
34 } |
|
35 |
|
36 CRSAPKCS1v15Decryptor::CRSAPKCS1v15Decryptor(const CRSAPrivateKey& aKey) |
|
37 : iPrivateKey(aKey) |
|
38 { |
|
39 } |
|
40 |
|
41 CRSAPKCS1v15Decryptor::~CRSAPKCS1v15Decryptor(void) |
|
42 { |
|
43 } |
|
44 |
|
45 // All these methods have been replaced by the shim |
|
46 #ifdef _BullseyeCoverage |
|
47 #pragma suppress_warnings on |
|
48 #pragma BullseyeCoverage off |
|
49 #pragma suppress_warnings off |
|
50 #endif |
|
51 TInt CRSAPKCS1v15Decryptor::MaxInputLength(void) const |
|
52 { |
|
53 // Method replaced by shim |
|
54 ASSERT(EFalse); |
|
55 return 0; |
|
56 } |
|
57 |
|
58 TInt CRSAPKCS1v15Decryptor::MaxOutputLength(void) const |
|
59 { |
|
60 // Method replaced by shim |
|
61 ASSERT(EFalse); |
|
62 return 0; |
|
63 } |
|
64 |
|
65 void CRSAPKCS1v15Decryptor::DecryptL(const TDesC8& /*aInput*/, TDes8& /*aOutput*/) const |
|
66 { |
|
67 // Method replaced by shim |
|
68 ASSERT(EFalse); |
|
69 } |
|
70 |
|
71 void CRSAPKCS1v15Decryptor::ConstructL(void) |
|
72 { |
|
73 // Method replaced by shim |
|
74 ASSERT(EFalse); |
|
75 } |