os/security/crypto/weakcryptospi/inc/nullcipher.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2002-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 * ** IMPORTANT ** PublishedPartner API's in this file are published to 3rd party developers via the 
    16 * Symbian website. Changes to these API's should be treated as PublishedAll API changes and the Security TA should be consulted.
    17 * CNullCipher class implementation
    18 *
    19 */
    20 
    21 
    22 /**
    23  @file 
    24  @publishedPartner
    25  @released 
    26 */
    27  
    28 #ifndef __NULLCIPHER_H__
    29 #define __NULLCIPHER_H__
    30 
    31 #include <streamcipher.h>
    32 
    33 /**
    34 * Stream cipher that does no encryption or decryption, but simply returns the
    35 * data given to it.
    36 * From CBlockTransformation
    37 *
    38 */
    39 class CNullCipher : public CStreamCipher
    40 {
    41 public:	
    42 	/**
    43 	 * Creates a new CNullCipher object.
    44 	 * 
    45 	 * @return	A pointer to a new CNullCipher object
    46 	 */
    47 	IMPORT_C static CNullCipher* NewL(void);
    48 
    49 	/**
    50 	 * Creates a new CNullCipher object.
    51 	 * 
    52 	 * The returned pointer is put onto the cleanup stack.
    53 	 * 
    54 	 * @return	A pointer to a new CNullCipher object
    55 	 */
    56 	IMPORT_C static CNullCipher* NewLC(void);
    57 	virtual void Reset(void);
    58 	virtual TInt KeySize(void) const;
    59 protected:
    60 	virtual void DoProcess(TDes8& aData);
    61 	/**
    62 	 * @internalAll
    63 	 */
    64 	CNullCipher();
    65 };
    66 
    67 #endif	//	__NULLCIPHER_H__