os/security/crypto/weakcryptospi/source/hash/md4.cpp
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2007-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 CMD4::CMD4()
    27 	{
    28 	}
    29 	
    30 EXPORT_C CMD4* CMD4::NewL(void)
    31 	{
    32 	CMD4Shim* self=CMD4Shim::NewL();
    33 	self->Reset();
    34 	return self;		
    35 	}
    36 
    37 EXPORT_C CMD4::~CMD4(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 
    48 		
    49 EXPORT_C CMessageDigest* CMD4::ReplicateL(void)
    50 	{
    51 	// Method replaced by shim
    52  	ASSERT(EFalse);
    53 
    54 	return NULL;	
    55 	}
    56 	
    57 
    58 EXPORT_C TPtrC8 CMD4::Hash(const TDesC8& /*aMessage*/)
    59 	{
    60     // Method replaced by shim
    61 	ASSERT(EFalse);
    62 	return KNullDesC8();
    63 	}
    64 
    65 EXPORT_C CMessageDigest* CMD4::CopyL(void)
    66 	{
    67     // Method replaced by shim
    68 	ASSERT(EFalse);
    69 	return NULL;	
    70 	}
    71 	
    72 EXPORT_C TInt CMD4::BlockSize(void)
    73 	{
    74 	// Method replaced by shim
    75 	ASSERT(EFalse);
    76 	return KErrNotSupported;
    77 	}
    78 	
    79 EXPORT_C TInt CMD4::HashSize(void)
    80 	{
    81 	// Method replaced by shim
    82 	ASSERT(EFalse);
    83 	return KErrNotSupported;
    84 	}
    85 	
    86 EXPORT_C void CMD4::Reset(void)
    87 	{
    88 	// Method replaced by shim
    89 	ASSERT(EFalse);
    90 	}
    91 
    92 EXPORT_C void CMD4::Update(const TDesC8& /*aMessage*/)
    93 	{
    94 	// Method replaced by shim
    95 	ASSERT(EFalse);
    96 	}
    97 	
    98 EXPORT_C TPtrC8 CMD4::Final(const TDesC8& /*aMessage*/)
    99 	{
   100 	// Method replaced by shim
   101 	ASSERT(EFalse);
   102 	return KNullDesC8();
   103 	}
   104 
   105 EXPORT_C TPtrC8 CMD4::Final()
   106 	{
   107 	// Method replaced by shim
   108 	ASSERT(EFalse);
   109 	return KNullDesC8();
   110 	}
   111 
   112 void CMD4::RestoreState()
   113 	{
   114 	// Method replaced by shim
   115 	ASSERT(EFalse);
   116 	}
   117 
   118 void CMD4::StoreState()
   119 	{
   120 	// Method replaced by shim
   121 	ASSERT(EFalse);
   122 	}
   123