First public contribution.
2 * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
22 const TInt K3DESBlockBytes = 8;
23 const TInt K3DESKeyBytes = 24;
30 EXPORT_C C3DESEncryptor* C3DESEncryptor::NewL(const TDesC8& aKey)
32 return C3DESEncryptorShim::NewL(aKey);
35 EXPORT_C C3DESEncryptor* C3DESEncryptor::NewLC(const TDesC8& aKey)
37 return C3DESEncryptorShim::NewLC(aKey);
41 EXPORT_C C3DESDecryptor* C3DESDecryptor::NewL(const TDesC8& aKey)
43 return C3DESDecryptorShim::NewL(aKey);
46 EXPORT_C C3DESDecryptor* C3DESDecryptor::NewLC(const TDesC8& aKey)
48 return C3DESDecryptorShim::NewLC(aKey);
51 // All these methods have been replaced by the shim
52 #ifdef _BullseyeCoverage
53 #pragma suppress_warnings on
54 #pragma BullseyeCoverage off
55 #pragma suppress_warnings off
58 void C3DES::Transform(TDes8& /*aBlock*/)
60 // Method replaced by shim
66 // Method replaced by shim
70 TInt C3DES::BlockSize() const
72 // Method replaced by shim
74 return K3DESBlockBytes;
77 TInt C3DES::KeySize() const
79 // Method replaced by shim
84 void C3DES::DoSetKey(const TDesC8& /*aKey*/)
86 // Method replaced by shim
90 void C3DES::ConstructL(const TDesC8& /*aKey*/)
92 // Method replaced by shim
96 void C3DESEncryptor::DoSetKey(const TDesC8& /*aKey*/)
98 // Method replaced by shim
102 void C3DESDecryptor::DoSetKey(const TDesC8& /*aKey*/)
104 // Method replaced by shim