os/security/cryptoservices/certificateandkeymgmt/tpkcs7/tpkcs7step.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) 2002-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 */
    23 
    24 #if (!defined __TPKCS7_STEP_H__)
    25 #define __TPKCS7_STEP_H__
    26 #include <test/testexecutestepbase.h>
    27 #include "tpkcs7server.h"
    28 #include "tpkcs7stepbase.h"
    29 
    30 class CTPKCS7CorruptTest : public CTPKCS7StepBase
    31 	{
    32 public:
    33 	CTPKCS7CorruptTest();
    34 	virtual TVerdict doTestStepL();
    35 	};
    36 
    37 class CTPKCS7ValidTest : public CTPKCS7StepBase
    38 	{
    39 public:
    40 	CTPKCS7ValidTest();
    41 	virtual TVerdict doTestStepL();
    42 	};
    43 
    44 class CTPKCS7ContentTest : public CTPKCS7StepBase
    45 	{
    46 public:
    47 	CTPKCS7ContentTest();
    48 	virtual TVerdict doTestStepL();
    49 	};
    50 
    51 class CTPKCS7CertificateTest : public CTPKCS7StepBase
    52 	{
    53 public:
    54 	CTPKCS7CertificateTest();
    55 	virtual TVerdict doTestStepL();
    56 	};
    57 
    58 class CTPKCS7SignerTest : public CTPKCS7StepBase
    59 	{
    60 public:
    61 	CTPKCS7SignerTest();
    62 	virtual TVerdict doTestStepL();
    63 	};
    64 
    65 class CTPKCS7EncryptedDataTest : public CTPKCS7StepBase
    66 	{
    67 public:
    68 	CTPKCS7EncryptedDataTest();
    69 	virtual TVerdict doTestStepL();
    70 	};
    71 	
    72 class CTPKCS7DigestInfoTest : public CTPKCS7StepBase
    73 	{
    74 public:
    75 	CTPKCS7DigestInfoTest();
    76 	virtual TVerdict doTestStepL();
    77 	};
    78 	
    79 class CTPKCS7EncryptedDataCorruptTest : public CTPKCS7StepBase
    80 	{
    81 public:
    82 	CTPKCS7EncryptedDataCorruptTest();
    83 	virtual TVerdict doTestStepL();
    84 	};
    85 	
    86 class CTPKCS7DigestInfoCorruptTest : public CTPKCS7StepBase
    87 	{
    88 public:
    89 	CTPKCS7DigestInfoCorruptTest();
    90 	virtual TVerdict doTestStepL();
    91 	};
    92 
    93 class CTPKCS7OOMTest : public CTPKCS7StepBase
    94 	{
    95 public:
    96 	CTPKCS7OOMTest();
    97     TVerdict doTestStepL();
    98 	void doTestOOML();
    99 public:
   100  	TInt iError;
   101 	};
   102 
   103 _LIT(KTPKCS7EncryptedDataTest, "EncryptedData");
   104 _LIT(KTPKCS7DigestInfoTest, "DigestInfo");
   105 _LIT(KTPKCS7EncryptedDataCorruptTest, "EncryptedDataCorrupt");
   106 _LIT(KTPKCS7DigestInfoCorruptTest, "DigestInfoCorrupt");
   107 _LIT(KTPKCS7OOMTest,"PKCS7OOM");
   108 _LIT(KTCmsSignedDataTest,"CMSSignedData");
   109 _LIT(KTCmsSignedDataDecodingTest,"CMSSignedDataDecoding");
   110 _LIT(KTCmsDataTest,"CMSData");
   111 _LIT(KTCmsDataDecodingTest,"CMSDataDecoding");
   112 _LIT(KTCmsContentInfoDecodingTest,"CmsContentInfoDecoding");
   113 _LIT(KTPKCS7SignedDataTest,"PKCS7SignedData");
   114 _LIT(KTPKCS7CorruptTest, "Corrupt");
   115 _LIT(KTPKCS7ValidTest, "Valid");
   116 _LIT(KTPKCS7ContentTest, "Content");
   117 _LIT(KTPKCS7CertificateTest, "Certificate");
   118 _LIT(KTPKCS7SignerTest, "Signer");
   119 
   120 #endif