os/security/crypto/weakcryptospi/source/asymmetric/rsasigner.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 /* CRSASigner */
    22 
    23 EXPORT_C CRSASigner::CRSASigner(void)
    24 	{
    25 	}
    26 
    27 /* CRSAPKCS1v15Signer */
    28 EXPORT_C CRSAPKCS1v15Signer* CRSAPKCS1v15Signer::NewL(const CRSAPrivateKey& aKey)
    29 	{
    30 	return CRSAPKCS1v15SignerShim::NewL(aKey);
    31 	}
    32 
    33 EXPORT_C CRSAPKCS1v15Signer* CRSAPKCS1v15Signer::NewLC(const CRSAPrivateKey& aKey)
    34 	{
    35 	return CRSAPKCS1v15SignerShim::NewLC(aKey);
    36 	}
    37 
    38 CRSAPKCS1v15Signer::CRSAPKCS1v15Signer(const CRSAPrivateKey& aKey)
    39 	: iPrivateKey(aKey)
    40 	{
    41 	}
    42 
    43 CRSAPKCS1v15Signer::~CRSAPKCS1v15Signer(void)
    44 	{
    45 	}
    46 
    47 // All these methods have been replaced by the shim
    48 #ifdef _BullseyeCoverage
    49 #pragma suppress_warnings on
    50 #pragma BullseyeCoverage off
    51 #pragma suppress_warnings off
    52 #endif
    53 TInt CRSAPKCS1v15Signer::MaxInputLength(void) const
    54 	{
    55 	// Method replaced by shim
    56 	ASSERT(EFalse);
    57 	return 0;
    58 	}
    59 
    60 TInt CRSAPKCS1v15Signer::MaxOutputLength(void) const
    61 	{
    62 	// Method replaced by shim
    63 	ASSERT(EFalse);
    64 	return 0;
    65 	}
    66 
    67 CRSASignature* CRSAPKCS1v15Signer::SignL(const TDesC8& /*aInput*/) const
    68 	{
    69 	// Method replaced by shim
    70 	User::Leave(KErrNotSupported);
    71 	return 0;
    72 	}
    73 
    74 void CRSAPKCS1v15Signer::ConstructL(void)
    75 	{
    76 	// Method replaced by shim
    77 	User::Leave(KErrNotSupported);
    78 	}