crypto/weakcryptospi/source/asymmetric/dsaverifier.cpp
changeset 19 cd501b96611d
equal deleted inserted replaced
15:da2ae96f639b 19:cd501b96611d
       
     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 "dsashim.h"
       
    20 
       
    21 EXPORT_C CDSAVerifier* CDSAVerifier::NewL(const CDSAPublicKey& aKey)
       
    22 	{
       
    23 	return CDsaVerifierShim::NewL(aKey);
       
    24 	}
       
    25 
       
    26 EXPORT_C CDSAVerifier* CDSAVerifier::NewLC(const CDSAPublicKey& aKey)
       
    27 	{
       
    28 	return CDsaVerifierShim::NewLC(aKey);
       
    29 	}
       
    30 
       
    31 CDSAVerifier::CDSAVerifier(const CDSAPublicKey& aKey)  
       
    32 	: iPublicKey(aKey)
       
    33 	{
       
    34 	}
       
    35 
       
    36 // All these methods have been replaced by the shim
       
    37 #ifdef _BullseyeCoverage
       
    38 #pragma suppress_warnings on
       
    39 #pragma BullseyeCoverage off
       
    40 #pragma suppress_warnings off
       
    41 #endif
       
    42 TInt CDSAVerifier::MaxInputLength(void) const
       
    43 	{
       
    44 	// Method replaced by shim
       
    45 	ASSERT(EFalse);
       
    46 	return 0;
       
    47 	}
       
    48 
       
    49 TBool CDSAVerifier::VerifyL(const TDesC8& /*aInput*/, const CDSASignature& /*aSignature*/) const
       
    50 	{
       
    51 	// Method replaced by shim
       
    52 	User::Leave(KErrNotSupported);
       
    53 	return EFalse;
       
    54 	}