First public contribution.
2 * Copyright (c) 1998-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 * This file contains the implementation of the Octet String ASN1 class.
22 EXPORT_C TASN1DecOctetString::TASN1DecOctetString(void)
26 EXPORT_C HBufC8* TASN1DecOctetString::DecodeDERL(const TDesC8& aSource,TInt& aPos)
29 TPtrC8 Source=aSource.Mid(aPos);
30 TASN1DecGeneric gen(Source);
32 HBufC8* res = gen.GetContentDER().AllocL();
33 aPos+=gen.LengthDER();
37 EXPORT_C HBufC8* TASN1DecOctetString::DecodeDERL(const TASN1DecGeneric& aSource)
39 return aSource.GetContentDER().AllocL();
42 EXPORT_C TInt TASN1DecOctetString::CheckValid(const TDesC8& /*aSource*/)