os/security/crypto/weakcryptospi/source/symmetric/rc2.cpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
#include <rc2.h>
sl@0
    20
#include "rc2shim.h"
sl@0
    21
sl@0
    22
CRC2::CRC2()
sl@0
    23
	{
sl@0
    24
	}
sl@0
    25
sl@0
    26
/* CRC2Encryptor */
sl@0
    27
EXPORT_C CRC2Encryptor* CRC2Encryptor::NewL(const TDesC8& aKey, TInt aEffectiveKeyLenBits)
sl@0
    28
	{
sl@0
    29
	return CRC2EncryptorShim::NewL(aKey, aEffectiveKeyLenBits);
sl@0
    30
	}
sl@0
    31
sl@0
    32
EXPORT_C CRC2Encryptor* CRC2Encryptor::NewLC(const TDesC8& aKey, TInt aEffectiveKeyLenBits)
sl@0
    33
	{
sl@0
    34
	return CRC2EncryptorShim::NewLC(aKey, aEffectiveKeyLenBits);
sl@0
    35
	}
sl@0
    36
	
sl@0
    37
CRC2Encryptor::CRC2Encryptor()
sl@0
    38
	{
sl@0
    39
	}
sl@0
    40
sl@0
    41
/* CRC2Decryptor */
sl@0
    42
EXPORT_C CRC2Decryptor* CRC2Decryptor::NewL(const TDesC8& aKey, TInt aEffectiveKeyLenBits)
sl@0
    43
	{
sl@0
    44
	return CRC2DecryptorShim::NewL(aKey, aEffectiveKeyLenBits);
sl@0
    45
	}
sl@0
    46
sl@0
    47
EXPORT_C CRC2Decryptor* CRC2Decryptor::NewLC(const TDesC8& aKey, TInt aEffectiveKeyLenBits)
sl@0
    48
	{
sl@0
    49
	return CRC2DecryptorShim::NewLC(aKey, aEffectiveKeyLenBits);
sl@0
    50
	}
sl@0
    51
sl@0
    52
CRC2Decryptor::CRC2Decryptor()
sl@0
    53
	{	
sl@0
    54
	}
sl@0
    55
	
sl@0
    56
// All these methods have been replaced by the shim
sl@0
    57
#ifdef _BullseyeCoverage
sl@0
    58
#pragma suppress_warnings on
sl@0
    59
#pragma BullseyeCoverage off
sl@0
    60
#pragma suppress_warnings off
sl@0
    61
#endif
sl@0
    62
sl@0
    63
TInt CRC2::BlockSize() const
sl@0
    64
	{
sl@0
    65
	// Method replaced by shim 
sl@0
    66
	ASSERT(EFalse);			
sl@0
    67
	return 0;
sl@0
    68
	}
sl@0
    69
sl@0
    70
TInt CRC2::KeySize() const
sl@0
    71
	{
sl@0
    72
	// Method replaced by shim 
sl@0
    73
	ASSERT(EFalse);			
sl@0
    74
	return 0;
sl@0
    75
	}
sl@0
    76
	
sl@0
    77
void CRC2::Reset()
sl@0
    78
	{
sl@0
    79
	// Method replaced by shim 
sl@0
    80
	ASSERT(EFalse);			
sl@0
    81
	}	
sl@0
    82
	
sl@0
    83
void CRC2::SetKey(const TDesC8& /*aKey*/, TInt /*aEffectiveKeyLenBits*/)
sl@0
    84
	{
sl@0
    85
	// Method replaced by shim 
sl@0
    86
	ASSERT(EFalse);				
sl@0
    87
	}	
sl@0
    88
sl@0
    89
void CRC2Decryptor::Transform(TDes8& /*aBlock*/)
sl@0
    90
	{
sl@0
    91
	// Method replaced by shim 
sl@0
    92
	ASSERT(EFalse);	
sl@0
    93
	}		
sl@0
    94
sl@0
    95
void CRC2Encryptor::Transform(TDes8& /*aBlock*/)
sl@0
    96
	{
sl@0
    97
	// Method replaced by shim 
sl@0
    98
	ASSERT(EFalse);	
sl@0
    99
	}	
sl@0
   100