crypto/weakcrypto/inc/des.h
changeset 8 35751d3474b7
parent 0 2c201484c85f
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    17 * DES encryptor and decryptor implementation
    17 * DES encryptor and decryptor implementation
    18 *
    18 *
    19 */
    19 */
    20 
    20 
    21 
    21 
    22 
       
    23 
       
    24 /**
    22 /**
    25  @file 
    23  @file 
    26  @internalAll
    24  @publishedPartner
       
    25  @released 
    27 */
    26 */
    28  
    27  
    29 #ifndef __DATAENCRYPTIONSTANDARD_H__
    28 #ifndef __DATAENCRYPTIONSTANDARD_H__
    30 #define __DATAENCRYPTIONSTANDARD_H__
    29 #define __DATAENCRYPTIONSTANDARD_H__
    31 
    30 
    32 #include "blocktransformation.h"
    31 #include "blocktransformation.h"
       
    32 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    33 #include <securityerr.h>
    33 #include <securityerr.h>
       
    34 #endif
    34 
    35 
    35 /** The size of the key schedule array (in 32-bit words).
    36 /** The size of the key schedule array (in 32-bit words).
    36 * 
    37 * 
    37 * @publishedPartner
       
    38 * @released 
       
    39 */
    38 */
    40 const TUint KDESScheduleSizeInWords = 32;
    39 const TUint KDESScheduleSizeInWords = 32;
    41 
    40 
    42 /**
    41 /**
    43 * Abstract base class for DES, implementing features common between DES encryption and
    42 * Abstract base class for DES, implementing features common between DES encryption and
    44 * decryption. From CBlockTransformation
    43 * decryption. From CBlockTransformation
    45 * 
    44 * 
    46 * @publishedPartner
       
    47 * @released 
       
    48 */
    45 */
    49 class CDES : public CBlockTransformation
    46 class CDES : public CBlockTransformation
    50 {
    47 {
    51 public:	
    48 public:	
    52 	virtual void Transform(TDes8& aBlock);
    49 	virtual void Transform(TDes8& aBlock);
    88 };
    85 };
    89 
    86 
    90 /**
    87 /**
    91 * Concrete class for DES encryption.
    88 * Concrete class for DES encryption.
    92 * 
    89 * 
    93 * @publishedPartner
       
    94 * @released 
       
    95 */
    90 */
    96 class CDESEncryptor : public CDES
    91 class CDESEncryptor : public CDES
    97 {
    92 {
    98 public:
    93 public:
    99 	/**
    94 	/**
   134 };
   129 };
   135 
   130 
   136 /**
   131 /**
   137 * Concrete class for DES decryption.
   132 * Concrete class for DES decryption.
   138 *
   133 *
   139 * @publishedPartner
       
   140 * @released 
       
   141 */
   134 */
   142 class CDESDecryptor : public CDES
   135 class CDESDecryptor : public CDES
   143 {
   136 {
   144 public:
   137 public:
   145 	/**
   138 	/**