First public contribution.
2 * Copyright (c) 2003-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 __PKCS7_SIGNER_INFO_H__
26 #define __PKCS7_SIGNER_INFO_H__
30 class CX509AlgorithmIdentifier;
31 class CPKCS7IssuerAndSerialNumber;
34 * Represents the signer of PKCS7 signed data
37 class CPKCS7SignerInfo : public CBase
40 static CPKCS7SignerInfo* NewL(const TDesC8& aRawData);
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;
48 CPKCS7SignerInfo(void);
49 CPKCS7SignerInfo(const CPKCS7SignerInfo&);
50 void ConstructL(const TDesC8& aRawData);
52 void DecodeEncryptedDigestL(const TDesC8& aRawData);
55 CPKCS7IssuerAndSerialNumber* iIssuerAndSerialNumber;
56 CX509AlgorithmIdentifier* iDigestAlgorithm;
57 CX509AlgorithmIdentifier* iDigestEncryptionAlgorithm;
58 HBufC8* iEncryptedDigest;