|
1 /* |
|
2 * Copyright (c) 2004-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 * Serialization for public and private keys |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalTechnology |
|
25 */ |
|
26 |
|
27 #ifndef __KEYSTREAMUTILS_H__ |
|
28 #define __KEYSTREAMUTILS_H__ |
|
29 |
|
30 #include <s32strm.h> |
|
31 #include "fsmarshaller.h" |
|
32 |
|
33 class CRSAPublicKey; |
|
34 class CRSAPrivateKey; |
|
35 class CDSAPublicKey; |
|
36 class CDSAPrivateKey; |
|
37 class RInteger; |
|
38 |
|
39 EXTERNALIZE_FUNCTION(CRSAPublicKey) |
|
40 EXTERNALIZE_FUNCTION(CRSAPrivateKey) |
|
41 EXTERNALIZE_FUNCTION(CDSAPublicKey) |
|
42 EXTERNALIZE_FUNCTION(CDSAPrivateKey) |
|
43 |
|
44 void ExternalizeL(const CRSAPublicKey& aData, RWriteStream& aStream); |
|
45 void ExternalizeL(const CRSAPrivateKey& aData, RWriteStream& aStream); |
|
46 void ExternalizeL(const CDSAPublicKey& aData, RWriteStream& aStream); |
|
47 void ExternalizeL(const CDSAPrivateKey& aData, RWriteStream& aStream); |
|
48 |
|
49 void CreateL(RReadStream& aStream, CRSAPublicKey*& aOut); |
|
50 void CreateL(RReadStream& aStream, CRSAPrivateKey*& aOut); |
|
51 void CreateL(RReadStream& aStream, CDSAPublicKey*& aOut); |
|
52 void CreateL(RReadStream& aStream, CDSAPrivateKey*& aOut); |
|
53 |
|
54 #endif |