os/security/cryptoservices/certificateandkeymgmt/tpkcs7/tpkcs7step.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     3
* All rights reserved.
sl@0
     4
* This component and the accompanying materials are made available
sl@0
     5
* under the terms of the License "Eclipse Public License v1.0"
sl@0
     6
* which accompanies this distribution, and is available
sl@0
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     8
*
sl@0
     9
* Initial Contributors:
sl@0
    10
* Nokia Corporation - initial contribution.
sl@0
    11
*
sl@0
    12
* Contributors:
sl@0
    13
*
sl@0
    14
* Description: 
sl@0
    15
*
sl@0
    16
*/
sl@0
    17
sl@0
    18
sl@0
    19
/**
sl@0
    20
 @file 
sl@0
    21
 @internalTechnology
sl@0
    22
*/
sl@0
    23
sl@0
    24
#if (!defined __TPKCS7_STEP_H__)
sl@0
    25
#define __TPKCS7_STEP_H__
sl@0
    26
#include <test/testexecutestepbase.h>
sl@0
    27
#include "tpkcs7server.h"
sl@0
    28
#include "tpkcs7stepbase.h"
sl@0
    29
sl@0
    30
class CTPKCS7CorruptTest : public CTPKCS7StepBase
sl@0
    31
	{
sl@0
    32
public:
sl@0
    33
	CTPKCS7CorruptTest();
sl@0
    34
	virtual TVerdict doTestStepL();
sl@0
    35
	};
sl@0
    36
sl@0
    37
class CTPKCS7ValidTest : public CTPKCS7StepBase
sl@0
    38
	{
sl@0
    39
public:
sl@0
    40
	CTPKCS7ValidTest();
sl@0
    41
	virtual TVerdict doTestStepL();
sl@0
    42
	};
sl@0
    43
sl@0
    44
class CTPKCS7ContentTest : public CTPKCS7StepBase
sl@0
    45
	{
sl@0
    46
public:
sl@0
    47
	CTPKCS7ContentTest();
sl@0
    48
	virtual TVerdict doTestStepL();
sl@0
    49
	};
sl@0
    50
sl@0
    51
class CTPKCS7CertificateTest : public CTPKCS7StepBase
sl@0
    52
	{
sl@0
    53
public:
sl@0
    54
	CTPKCS7CertificateTest();
sl@0
    55
	virtual TVerdict doTestStepL();
sl@0
    56
	};
sl@0
    57
sl@0
    58
class CTPKCS7SignerTest : public CTPKCS7StepBase
sl@0
    59
	{
sl@0
    60
public:
sl@0
    61
	CTPKCS7SignerTest();
sl@0
    62
	virtual TVerdict doTestStepL();
sl@0
    63
	};
sl@0
    64
sl@0
    65
class CTPKCS7EncryptedDataTest : public CTPKCS7StepBase
sl@0
    66
	{
sl@0
    67
public:
sl@0
    68
	CTPKCS7EncryptedDataTest();
sl@0
    69
	virtual TVerdict doTestStepL();
sl@0
    70
	};
sl@0
    71
	
sl@0
    72
class CTPKCS7DigestInfoTest : public CTPKCS7StepBase
sl@0
    73
	{
sl@0
    74
public:
sl@0
    75
	CTPKCS7DigestInfoTest();
sl@0
    76
	virtual TVerdict doTestStepL();
sl@0
    77
	};
sl@0
    78
	
sl@0
    79
class CTPKCS7EncryptedDataCorruptTest : public CTPKCS7StepBase
sl@0
    80
	{
sl@0
    81
public:
sl@0
    82
	CTPKCS7EncryptedDataCorruptTest();
sl@0
    83
	virtual TVerdict doTestStepL();
sl@0
    84
	};
sl@0
    85
	
sl@0
    86
class CTPKCS7DigestInfoCorruptTest : public CTPKCS7StepBase
sl@0
    87
	{
sl@0
    88
public:
sl@0
    89
	CTPKCS7DigestInfoCorruptTest();
sl@0
    90
	virtual TVerdict doTestStepL();
sl@0
    91
	};
sl@0
    92
sl@0
    93
class CTPKCS7OOMTest : public CTPKCS7StepBase
sl@0
    94
	{
sl@0
    95
public:
sl@0
    96
	CTPKCS7OOMTest();
sl@0
    97
    TVerdict doTestStepL();
sl@0
    98
	void doTestOOML();
sl@0
    99
public:
sl@0
   100
 	TInt iError;
sl@0
   101
	};
sl@0
   102
sl@0
   103
_LIT(KTPKCS7EncryptedDataTest, "EncryptedData");
sl@0
   104
_LIT(KTPKCS7DigestInfoTest, "DigestInfo");
sl@0
   105
_LIT(KTPKCS7EncryptedDataCorruptTest, "EncryptedDataCorrupt");
sl@0
   106
_LIT(KTPKCS7DigestInfoCorruptTest, "DigestInfoCorrupt");
sl@0
   107
_LIT(KTPKCS7OOMTest,"PKCS7OOM");
sl@0
   108
_LIT(KTCmsSignedDataTest,"CMSSignedData");
sl@0
   109
_LIT(KTCmsSignedDataDecodingTest,"CMSSignedDataDecoding");
sl@0
   110
_LIT(KTCmsDataTest,"CMSData");
sl@0
   111
_LIT(KTCmsDataDecodingTest,"CMSDataDecoding");
sl@0
   112
_LIT(KTCmsContentInfoDecodingTest,"CmsContentInfoDecoding");
sl@0
   113
_LIT(KTPKCS7SignedDataTest,"PKCS7SignedData");
sl@0
   114
_LIT(KTPKCS7CorruptTest, "Corrupt");
sl@0
   115
_LIT(KTPKCS7ValidTest, "Valid");
sl@0
   116
_LIT(KTPKCS7ContentTest, "Content");
sl@0
   117
_LIT(KTPKCS7CertificateTest, "Certificate");
sl@0
   118
_LIT(KTPKCS7SignerTest, "Signer");
sl@0
   119
sl@0
   120
#endif