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