17
|
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 <e32std.h>
|
|
20 |
#include <hash.h>
|
|
21 |
#include "hashshim.h"
|
|
22 |
|
|
23 |
#define EXPANDLOOP
|
|
24 |
|
|
25 |
//
|
|
26 |
// 32bit endianness independent MD2 implementation
|
|
27 |
//
|
|
28 |
CMD2::CMD2()
|
|
29 |
{
|
|
30 |
}
|
|
31 |
|
|
32 |
EXPORT_C CMD2* CMD2::NewL(void)
|
|
33 |
{
|
|
34 |
return CMD2Shim::NewL();
|
|
35 |
}
|
|
36 |
|
|
37 |
EXPORT_C CMD2::~CMD2(void)
|
|
38 |
{
|
|
39 |
}
|
|
40 |
|
|
41 |
// All these methods have been replaced by the shim
|
|
42 |
#ifdef _BullseyeCoverage
|
|
43 |
#pragma suppress_warnings on
|
|
44 |
#pragma BullseyeCoverage off
|
|
45 |
#pragma suppress_warnings off
|
|
46 |
#endif
|
|
47 |
EXPORT_C CMessageDigest* CMD2::ReplicateL(void)
|
|
48 |
{
|
|
49 |
// Method replaced by shim
|
|
50 |
ASSERT(EFalse);
|
|
51 |
return NULL;
|
|
52 |
}
|
|
53 |
|
|
54 |
EXPORT_C TPtrC8 CMD2::Hash(const TDesC8& /*aMessage*/)
|
|
55 |
{
|
|
56 |
// Method replaced by shim
|
|
57 |
ASSERT(EFalse);
|
|
58 |
return KNullDesC8();
|
|
59 |
}
|
|
60 |
|
|
61 |
EXPORT_C CMessageDigest* CMD2::CopyL(void)
|
|
62 |
{
|
|
63 |
// Method replaced by shim
|
|
64 |
ASSERT(EFalse);
|
|
65 |
return NULL;
|
|
66 |
}
|
|
67 |
|
|
68 |
EXPORT_C TInt CMD2::BlockSize(void)
|
|
69 |
{
|
|
70 |
// Method replaced by shim
|
|
71 |
ASSERT(EFalse);
|
|
72 |
return KErrNotSupported;
|
|
73 |
}
|
|
74 |
|
|
75 |
EXPORT_C TInt CMD2::HashSize(void)
|
|
76 |
{
|
|
77 |
// Method replaced by shim
|
|
78 |
ASSERT(EFalse);
|
|
79 |
return KErrNotSupported;
|
|
80 |
}
|
|
81 |
|
|
82 |
EXPORT_C void CMD2::Reset(void)
|
|
83 |
{
|
|
84 |
// Method replaced by shim
|
|
85 |
ASSERT(EFalse);
|
|
86 |
}
|
|
87 |
|
|
88 |
EXPORT_C void CMD2::Update(const TDesC8& /*aMessage*/)
|
|
89 |
{
|
|
90 |
// Method replaced by shim
|
|
91 |
ASSERT(EFalse);
|
|
92 |
}
|
|
93 |
|
|
94 |
EXPORT_C TPtrC8 CMD2::Final(const TDesC8& /*aMessage*/)
|
|
95 |
{
|
|
96 |
// Method replaced by shim
|
|
97 |
ASSERT(EFalse);
|
|
98 |
return KNullDesC8();
|
|
99 |
}
|
|
100 |
|
|
101 |
EXPORT_C TPtrC8 CMD2::Final()
|
|
102 |
{
|
|
103 |
// Method replaced by shim
|
|
104 |
ASSERT(EFalse);
|
|
105 |
return KNullDesC8();
|
|
106 |
}
|
|
107 |
|
|
108 |
void CMD2::RestoreState()
|
|
109 |
{
|
|
110 |
// Method replaced by shim
|
|
111 |
ASSERT(EFalse);
|
|
112 |
}
|
|
113 |
|
|
114 |
void CMD2::StoreState()
|
|
115 |
{
|
|
116 |
// Method replaced by shim
|
|
117 |
ASSERT(EFalse);
|
|
118 |
}
|