os/security/cryptoservices/filebasedcertificateandkeystores/source/keystore/Server/keystreamutils.h
First public contribution.
2 * Copyright (c) 2004-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 * Serialization for public and private keys
25 #ifndef __KEYSTREAMUTILS_H__
26 #define __KEYSTREAMUTILS_H__
29 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER
31 #endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER
32 #include "fsmarshaller.h"
40 EXTERNALIZE_FUNCTION(CRSAPublicKey)
41 EXTERNALIZE_FUNCTION(CRSAPrivateKey)
42 EXTERNALIZE_FUNCTION(CDSAPublicKey)
43 EXTERNALIZE_FUNCTION(CDSAPrivateKey)
45 void ExternalizeL(const CRSAPublicKey& aData, RWriteStream& aStream);
46 void ExternalizeL(const CRSAPrivateKey& aData, RWriteStream& aStream);
47 void ExternalizeL(const CDSAPublicKey& aData, RWriteStream& aStream);
48 void ExternalizeL(const CDSAPrivateKey& aData, RWriteStream& aStream);
50 void CreateL(RReadStream& aStream, CRSAPublicKey*& aOut);
51 void CreateL(RReadStream& aStream, CRSAPrivateKey*& aOut);
52 void CreateL(RReadStream& aStream, CDSAPublicKey*& aOut);
53 void CreateL(RReadStream& aStream, CDSAPrivateKey*& aOut);
55 #ifdef SYMBIAN_KEYSTORE_USE_AUTH_SERVER
56 HBufC8* DecryptFromStreamL( RReadStream& aInStream, TPtrC8& aKey );
57 #endif // SYMBIAN_KEYSTORE_USE_AUTH_SERVER