cryptoservices/certificateandkeymgmt/wtlscert/wtlsdec.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     1 /*
       
     2 * Copyright (c) 1997-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 * TWTLSDecVector class implementation
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file 
       
    24  @internalTechnology
       
    25 */
       
    26 
       
    27 #ifndef __WTLSDEC_H__
       
    28 #define __WTLSDEC_H__
       
    29 
       
    30 #include <e32base.h>
       
    31 #include <e32std.h>
       
    32 #include <bigint.h>
       
    33 
       
    34 //implementation of decoder for variable length vector
       
    35 class TWTLSDecVector
       
    36 	{
       
    37 public:
       
    38 	TWTLSDecVector(const TDesC8& aSource, TInt aMinLength, TInt aMaxLength);
       
    39 	void InitL();
       
    40 
       
    41 //	TPtrC8 Encoding() const;
       
    42 	TInt EncodingLength() const;
       
    43 	
       
    44 //	TPtrC8 Content() const;
       
    45 //	TInt ContentLength() const;
       
    46 	
       
    47 //	TInt HeaderLength() const;
       
    48 private:
       
    49 	const TPtrC8 iEncoding;
       
    50 	const TInt iMinLength;
       
    51 	const TInt iMaxLength;
       
    52 	TInt iLengthOfContents;
       
    53 	TInt iLengthOfLength;
       
    54 	};
       
    55 
       
    56 class TWTLSDecUnsignedInteger
       
    57 	{
       
    58 public:
       
    59 	TWTLSDecUnsignedInteger();
       
    60 	TInt DecodeShortL(const TDesC8& aSource,TInt& aPos, TInt aLengthOfLength);
       
    61 	RInteger DecodeLongL(const TDesC8& aSource,TInt& aPos, TInt aLength);
       
    62 	};
       
    63 
       
    64 class TWTLSDecTime
       
    65 	{
       
    66 public:
       
    67 	TWTLSDecTime();
       
    68 	TTime DecodeL(const TDesC8& aSource, TInt& aPos);
       
    69 	};
       
    70 
       
    71 #endif