Update contrib.
2 * Copyright (c) 2003-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.
26 // 32bit endian-independent SHA-1 implementation
32 EXPORT_C CSHA1* CSHA1::NewL(void)
34 CSHA1* self=CSHA1Shim::NewL();
39 EXPORT_C CSHA1::~CSHA1(void)
43 // All these methods have been replaced by the shim
44 #ifdef _BullseyeCoverage
45 #pragma suppress_warnings on
46 #pragma BullseyeCoverage off
47 #pragma suppress_warnings off
49 EXPORT_C CMessageDigest* CSHA1::ReplicateL(void)
51 // Method replaced by shim
56 EXPORT_C TPtrC8 CSHA1::Hash(const TDesC8& /*aMessage*/)
58 // Method replaced by shim
63 EXPORT_C CMessageDigest* CSHA1::CopyL(void)
65 // Method replaced by shim
70 EXPORT_C TInt CSHA1::BlockSize(void)
73 return KErrNotSupported;
76 EXPORT_C TInt CSHA1::HashSize(void)
79 return KErrNotSupported;
82 EXPORT_C void CSHA1::Reset(void)
87 EXPORT_C void CSHA1::Update(const TDesC8& /*aMessage*/)
92 EXPORT_C TPtrC8 CSHA1::Final(const TDesC8& /*aMessage*/)
98 EXPORT_C TPtrC8 CSHA1::Final()
104 void CSHA1::RestoreState()
109 void CSHA1::StoreState()
114 ///////////////////////////////////////////////////////////////////////////////////////
115 // CSHA code is deprecated
116 ///////////////////////////////////////////////////////////////////////////////////////
118 _LIT(KSHA, "HASH::CSHA");
120 EXPORT_C CSHA* CSHA::NewL(void)
122 User::Panic(KSHA, KErrNotSupported);
123 return (NULL); // Shut compiler up
126 EXPORT_C CSHA::~CSHA(void)
128 User::Panic(KSHA, KErrNotSupported);
131 EXPORT_C TPtrC8 CSHA::Hash(const TDesC8& /*aMessage*/)
133 User::Panic(KSHA, KErrNotSupported);
134 return (KNullDesC8()); // Shut compiler up
137 EXPORT_C TInt CSHA::HashSize(void)
139 User::Panic(KSHA, KErrNotSupported);
140 return (-1); // Shut compiler up
143 EXPORT_C TInt CSHA::BlockSize(void)
145 User::Panic(KSHA, KErrNotSupported);
146 return (-1); // Shut compiler up
149 EXPORT_C CMessageDigest* CSHA::CopyL(void)
151 User::Panic(KSHA, KErrNotSupported);
152 return (NULL); // Shut compiler up
155 EXPORT_C CMessageDigest* CSHA::ReplicateL(void)
157 User::Panic(KSHA, KErrNotSupported);
158 return (NULL); // Shut compiler up
161 EXPORT_C void CSHA::Reset(void)
163 User::Panic(KSHA, KErrNotSupported);
166 EXPORT_C void CSHA::Update(const TDesC8& /*aMessage*/)
168 User::Panic(KSHA, KErrNotSupported);
171 EXPORT_C TPtrC8 CSHA::Final(const TDesC8& /*aMessage*/)
173 User::Panic(KSHA, KErrNotSupported);
174 return (KNullDesC8()); // Shut compiler up
177 EXPORT_C TPtrC8 CSHA::Final()
179 User::Panic(KSHA, KErrNotSupported);
180 return (KNullDesC8()); // Shut compiler up
183 void CSHA::RestoreState()
185 User::Panic(KSHA, KErrNotSupported);
187 void CSHA::StoreState()
189 User::Panic(KSHA, KErrNotSupported);