CryptoSpi::CHashCharacteristics Class Reference

#include <cryptospi/cryptocharacteristics.h>

Link against: cryptospi.lib

class CryptoSpi::CHashCharacteristics : public CryptoSpi::CCharacteristics

Inherits from

Detailed Description

The class holds the hash characteristics. which is used for internalization.

Member Attribute Documentation

iBlockSize

TUint iBlockSize

The internal block size of the hash in bits

iOutputSize

TUint iOutputSize

the output size of the hash in bytes

iSupportedOperationModes

RArray< TInt32 >iSupportedOperationModes

The list of supported Operation modes

Constructor & Destructor Documentation

~CHashCharacteristics ( )

~CHashCharacteristics()[virtual]

Destructor

Member Function Documentation

InternalizeL ( RReadStream & )

voidInternalizeL(RReadStream &aStream)[virtual]

Reimplemented from CryptoSpi::CCharacteristics::InternalizeL(RReadStream &)

Internalize this object from the supplied stream.

ParameterDescription
aStreamStream to read CHashCharacteristics from.

IsOperationModeSupported ( TUid )

TBool IsOperationModeSupported(TUidaOperationMode)const

Determines whether an operation mode (e.g. HMAC) is supported by the plug-in by searching through iSupportedOperationModes for the UID value corresponding to the aOperationMode parameter.

ParameterDescription
aOperationModeThe UID of the operation mode to test

Returns: ETrue if the operation mode is supported; otherwise, EFalse is returned.

NewL ( )

CHashCharacteristics *NewL()[static]

Create a new instance of CHashCharacteristics.

Returns: the pointer of the hash characteristic

NewLC ( )

CHashCharacteristics *NewLC()[static]

Create a new instance of CHashCharacteristics, Leave it on the cleanup stack.

Returns: the pointer of the hash characteristic