os/security/cryptoservices/certificateandkeymgmt/inc/pkcs7signerinfo.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 /*
     2 * Copyright (c) 2003-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 *
    16 */
    17 
    18 
    19 /**
    20  @file
    21  @internalTechnology
    22  @released
    23 */
    24 
    25 #ifndef __PKCS7_SIGNER_INFO_H__
    26 #define __PKCS7_SIGNER_INFO_H__
    27 
    28 #include <e32base.h>
    29 
    30 class CX509AlgorithmIdentifier;
    31 class CPKCS7IssuerAndSerialNumber;
    32 
    33 /**
    34  * Represents the signer of PKCS7 signed data
    35  * @internalTechnology
    36  */
    37 class CPKCS7SignerInfo : public CBase
    38 	{
    39 public:
    40 	static CPKCS7SignerInfo* NewL(const TDesC8& aRawData);
    41 	~CPKCS7SignerInfo();
    42 	IMPORT_C TInt Version() const;
    43 	IMPORT_C const CPKCS7IssuerAndSerialNumber& IssuerAndSerialNumber() const;
    44 	IMPORT_C const CX509AlgorithmIdentifier& DigestAlgorithm() const;
    45 	IMPORT_C const CX509AlgorithmIdentifier& DigestEncryptionAlgorithm() const;
    46 	IMPORT_C const TPtrC8 EncryptedDigest() const;
    47 private:
    48 	CPKCS7SignerInfo(void);
    49 	CPKCS7SignerInfo(const CPKCS7SignerInfo&);
    50 	void ConstructL(const TDesC8& aRawData);
    51 
    52 	void DecodeEncryptedDigestL(const TDesC8& aRawData);
    53 private:
    54 	TInt iVersion;
    55 	CPKCS7IssuerAndSerialNumber* iIssuerAndSerialNumber;
    56 	CX509AlgorithmIdentifier* iDigestAlgorithm;
    57 	CX509AlgorithmIdentifier* iDigestEncryptionAlgorithm;
    58 	HBufC8* iEncryptedDigest;
    59 	};
    60 #endif