Update contrib.
2 * Copyright (c) 2005-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.
25 #ifndef __PKCS8TESTER_H__
26 #define __PKCS8TESTER_H__
28 CASN1EncSequence* GenerateL(TDesC& fileName);
29 void GenerateAndSaveL(TDesC& origin, TDesC& destination);
35 * Extracts the nPos command line argument.
37 * @param nPos The position of the command line argument to extract.
39 * @return A descriptor containing the command line argument.
41 static HBufC* GetArgumentL(TInt nPos);
44 * Decodes a pkcs8 file
46 * @param fileName The name of the file containing the pkcs8 key
48 * @return A structure containing the decoded data.
50 static CDecPKCS8Data* getPkcsDataL(TDesC& fileName);
53 * Writes the given ASN1 sequence DER encoded to the given fileName
55 * @param fn The file name where the sequecne will be stored.
56 * @param seq The ASN1 sequence to write.
58 static void WriteSequenceL(const TDesC& fn, CASN1EncSequence& seq);