os/security/crypto/weakcryptospi/source/hash/md4.cpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/crypto/weakcryptospi/source/hash/md4.cpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,123 @@
     1.4 +/*
     1.5 +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#include <e32std.h>
    1.23 +#include <hash.h>
    1.24 +#include "hashshim.h"
    1.25 +
    1.26 +#define EXPANDLOOP
    1.27 +
    1.28 +
    1.29 +CMD4::CMD4()
    1.30 +	{
    1.31 +	}
    1.32 +	
    1.33 +EXPORT_C CMD4* CMD4::NewL(void)
    1.34 +	{
    1.35 +	CMD4Shim* self=CMD4Shim::NewL();
    1.36 +	self->Reset();
    1.37 +	return self;		
    1.38 +	}
    1.39 +
    1.40 +EXPORT_C CMD4::~CMD4(void)
    1.41 +	{
    1.42 +	}
    1.43 + 
    1.44 +// All these methods have been replaced by the shim
    1.45 +#ifdef _BullseyeCoverage
    1.46 +#pragma suppress_warnings on
    1.47 +#pragma BullseyeCoverage off
    1.48 +#pragma suppress_warnings off
    1.49 +#endif
    1.50 +
    1.51 +		
    1.52 +EXPORT_C CMessageDigest* CMD4::ReplicateL(void)
    1.53 +	{
    1.54 +	// Method replaced by shim
    1.55 + 	ASSERT(EFalse);
    1.56 +
    1.57 +	return NULL;	
    1.58 +	}
    1.59 +	
    1.60 +
    1.61 +EXPORT_C TPtrC8 CMD4::Hash(const TDesC8& /*aMessage*/)
    1.62 +	{
    1.63 +    // Method replaced by shim
    1.64 +	ASSERT(EFalse);
    1.65 +	return KNullDesC8();
    1.66 +	}
    1.67 +
    1.68 +EXPORT_C CMessageDigest* CMD4::CopyL(void)
    1.69 +	{
    1.70 +    // Method replaced by shim
    1.71 +	ASSERT(EFalse);
    1.72 +	return NULL;	
    1.73 +	}
    1.74 +	
    1.75 +EXPORT_C TInt CMD4::BlockSize(void)
    1.76 +	{
    1.77 +	// Method replaced by shim
    1.78 +	ASSERT(EFalse);
    1.79 +	return KErrNotSupported;
    1.80 +	}
    1.81 +	
    1.82 +EXPORT_C TInt CMD4::HashSize(void)
    1.83 +	{
    1.84 +	// Method replaced by shim
    1.85 +	ASSERT(EFalse);
    1.86 +	return KErrNotSupported;
    1.87 +	}
    1.88 +	
    1.89 +EXPORT_C void CMD4::Reset(void)
    1.90 +	{
    1.91 +	// Method replaced by shim
    1.92 +	ASSERT(EFalse);
    1.93 +	}
    1.94 +
    1.95 +EXPORT_C void CMD4::Update(const TDesC8& /*aMessage*/)
    1.96 +	{
    1.97 +	// Method replaced by shim
    1.98 +	ASSERT(EFalse);
    1.99 +	}
   1.100 +	
   1.101 +EXPORT_C TPtrC8 CMD4::Final(const TDesC8& /*aMessage*/)
   1.102 +	{
   1.103 +	// Method replaced by shim
   1.104 +	ASSERT(EFalse);
   1.105 +	return KNullDesC8();
   1.106 +	}
   1.107 +
   1.108 +EXPORT_C TPtrC8 CMD4::Final()
   1.109 +	{
   1.110 +	// Method replaced by shim
   1.111 +	ASSERT(EFalse);
   1.112 +	return KNullDesC8();
   1.113 +	}
   1.114 +
   1.115 +void CMD4::RestoreState()
   1.116 +	{
   1.117 +	// Method replaced by shim
   1.118 +	ASSERT(EFalse);
   1.119 +	}
   1.120 +
   1.121 +void CMD4::StoreState()
   1.122 +	{
   1.123 +	// Method replaced by shim
   1.124 +	ASSERT(EFalse);
   1.125 +	}
   1.126 +