|
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 |
|
21 /** |
|
22 @file |
|
23 @publishedPartner |
|
24 @released |
|
25 */ |
|
26 |
|
27 #ifndef __PKCS7_SIGNER_INFO_H__ |
|
28 #define __PKCS7_SIGNER_INFO_H__ |
|
29 |
|
30 #include <e32base.h> |
|
31 |
|
32 class CX509AlgorithmIdentifier; |
|
33 class CPKCS7IssuerAndSerialNumber; |
|
34 |
|
35 /** |
|
36 * Represents the signer of PKCS7 signed data |
|
37 * @internalTechnology |
|
38 */ |
|
39 class CPKCS7SignerInfo : public CBase |
|
40 { |
|
41 public: |
|
42 static CPKCS7SignerInfo* NewL(const TDesC8& aRawData); |
|
43 ~CPKCS7SignerInfo(); |
|
44 IMPORT_C TInt Version() const; |
|
45 IMPORT_C const CPKCS7IssuerAndSerialNumber& IssuerAndSerialNumber() const; |
|
46 IMPORT_C const CX509AlgorithmIdentifier& DigestAlgorithm() const; |
|
47 IMPORT_C const CX509AlgorithmIdentifier& DigestEncryptionAlgorithm() const; |
|
48 IMPORT_C const TPtrC8 EncryptedDigest() const; |
|
49 private: |
|
50 CPKCS7SignerInfo(void); |
|
51 CPKCS7SignerInfo(const CPKCS7SignerInfo&); |
|
52 void ConstructL(const TDesC8& aRawData); |
|
53 |
|
54 void DecodeEncryptedDigestL(const TDesC8& aRawData); |
|
55 private: |
|
56 TInt iVersion; |
|
57 CPKCS7IssuerAndSerialNumber* iIssuerAndSerialNumber; |
|
58 CX509AlgorithmIdentifier* iDigestAlgorithm; |
|
59 CX509AlgorithmIdentifier* iDigestEncryptionAlgorithm; |
|
60 HBufC8* iEncryptedDigest; |
|
61 }; |
|
62 #endif |