Update contrib.
2 * Copyright (c) 2002-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.
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 * CBlockTransformation class implementation
28 #ifndef __BLOCKTRANSFORMATION_H__
29 #define __BLOCKTRANSFORMATION_H__
33 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
34 /** The maximum block size supported (in bytes) */
35 const TUint KMaxBlockSizeSupported = 32;
39 * Abstract base class defining the interface to block transformation schemes.
41 * Block transformation schemes process a fixed-size block of input to return a
42 * block of output the same size.
45 class CBlockTransformation : public CBase
49 * Transforms the supplied block, returning the new value using the same
50 * parameter. aBlock.Size() must be the same length as BlockSize().
52 * @param aBlock On input, the data to be transformed;
53 * on return, the data after transformation.
55 virtual void Transform(TDes8& aBlock) = 0;
58 * Resets the transformation back to its original state. Clears all its buffers.
60 virtual void Reset() = 0;
63 * Gets the block size in bytes.
65 * @return Block size in bytes.
67 virtual TInt BlockSize() const = 0;
70 * Gets the key size in bits.
72 * @return Key size in bits.
74 virtual TInt KeySize() const = 0;
78 Used to retrieve the extended interfaces by id. For Crypto
79 SPI internal use only.
81 TInt GetExtension(TUint aExtensionId, TAny*& a0, TAny* a1);
84 #endif // __BLOCKTRANSFORMATION_H__