crypto/weakcrypto/inc/bigint.h
changeset 8 35751d3474b7
parent 0 2c201484c85f
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    16 * Symbian website. Changes to these API's should be treated as PublishedAll API changes and the Security TA should be consulted.
    16 * Symbian website. Changes to these API's should be treated as PublishedAll API changes and the Security TA should be consulted.
    17 *
    17 *
    18 */
    18 */
    19 
    19 
    20 
    20 
    21 
       
    22 
       
    23 /**
    21 /**
    24  @file
    22  @file
    25  @publishedPartner
    23  @publishedAll
    26  @released
    24  @released
    27 */
    25 */
    28 
    26 
    29 #ifndef __BIGINT_H__
    27 #ifndef __BIGINT_H__
    30 #define __BIGINT_H__
    28 #define __BIGINT_H__
    31 
    29 
    32 #include <random.h>
    30 #include <random.h>
    33 #include <e32base.h>
    31 #include <e32base.h>
    34 
    32 
    35 /** @internalComponent */
       
    36 const TUint KSignMask = 0x1L;
    33 const TUint KSignMask = 0x1L;
    37 /** @internalComponent */
       
    38 const TUint KHeapBasedMask = 0x2L;
    34 const TUint KHeapBasedMask = 0x2L;
    39 /** @internalComponent */
       
    40 const TUint KPtrMask = 0xFFFFFFFCL;
    35 const TUint KPtrMask = 0xFFFFFFFCL;
       
    36 
    41 
    37 
    42 class RInteger;
    38 class RInteger;
    43 
    39 
    44 /**
    40 /**
    45  * Abstract base class defining the interface for handling and manipulating big
    41  * Abstract base class defining the interface for handling and manipulating big
    58 class TInteger
    54 class TInteger
    59 	{
    55 	{
    60 public:
    56 public:
    61 	/** @internalComponent */
    57 	/** @internalComponent */
    62 	enum TRandomAttribute {EAllBitsRandom=0, ETopBitSet=1, ETop2BitsSet=2};
    58 	enum TRandomAttribute {EAllBitsRandom=0, ETopBitSet=1, ETop2BitsSet=2};
    63 
       
    64 	IMPORT_C HBufC8* BufferLC() const;
    59 	IMPORT_C HBufC8* BufferLC() const;
    65 	IMPORT_C TUint WordCount(void) const;
    60 	IMPORT_C TUint WordCount(void) const;
    66 	IMPORT_C TUint ByteCount(void) const;
    61 	IMPORT_C TUint ByteCount(void) const;
    67 	IMPORT_C TUint BitCount(void) const;
    62 	IMPORT_C TUint BitCount(void) const;
    68 
    63 
   307 
   302 
   308 /** 
   303 /** 
   309  * A TInteger derived class allowing the construction of variable length big integers.
   304  * A TInteger derived class allowing the construction of variable length big integers.
   310  * See the Cryptography API guide for further information.
   305  * See the Cryptography API guide for further information.
   311  *
   306  *
   312  * @publishedPartner
       
   313  * @released
       
   314  *
   307  *
   315  * @see TInteger
   308  * @see TInteger
   316  */
   309  */
   317 class RInteger : public TInteger
   310 class RInteger : public TInteger
   318 	{
   311 	{