Update contrib.
2 * Copyright (c) 2006-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 * random shim class definition
26 #ifndef __RANDOMSHIM_H__
27 #define __RANDOMSHIM_H__
31 #include <cryptospi/cryptorandomapi.h>
36 NONSHARABLE_CLASS(CRandomShim) : public CBase
39 static CRandomShim* NewL();
40 static CRandomShim* NewLC();
42 virtual void GenerateBytesL(TDes8& aDest);
46 CRandomShim(const CRandomShim&);
47 CRandomShim& operator=(const CRandomShim&);
51 CryptoSpi::CRandom* iRandomImpl;
57 static void Random(TDes8& aDestination);
58 static void RandomL(TDes8& aDestination);
59 static void SecureRandomL(TDes8& aDestination);
62 #endif // __RANDOMSHIM_H__