CryptoSpi::TSymmetricCipherCharacteristics Class Reference

#include <cryptospi/plugincharacteristics.h>

Link against: cryptospi.lib

class CryptoSpi::TSymmetricCipherCharacteristics

Detailed Description

Symmetric Cipher Chararcteristics

Member Attribute Documentation

cmn

Common characteristics

iBlockSize

TUint iBlockSize

The block size of the cipher in bits

iKeySupportMode

TInt iKeySupportMode

The supported key mode bit map. e.g. extern key, internal key or both

iMaximumKeyLength

TUint iMaximumKeyLength

The maximum key length in bits

iOperationModeNum

TUint iOperationModeNum

Number of the supported Operation mode

iPaddingModeNum

TUint iPaddingModeNum

Number of the supported padding mode

iSupportedOperationModes

const TInt32 *iSupportedOperationModes

The list of supported Operation modes

iSupportedPaddingModes

const TInt32 *iSupportedPaddingModes

The list of supported padding modes

Member Function Documentation

ExternalizeL ( RWriteStream & )

voidExternalizeL(RWriteStream &aStream)const

Externalises symmetric cipher characteristics to a write stream.

ParameterDescription
aStreamStream to which the object should be externalised.

IsOperationModeSupported ( TUid )

IMPORT_C TBoolIsOperationModeSupported(TUidaOperationMode)const

Determines whether an operation mode (e.g. CBC) 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.

IsPaddingModeSupported ( TUid )

IMPORT_C TBoolIsPaddingModeSupported(TUidaPaddingMode)const

Determines whether a padding mode (e.g. PKCS7) is supported by the plug-in by searching through iSupportedPaddingModes for the UID value corresponding to the aPaddingMode parameter.

ParameterDescription
aPaddingModeThe UID of the padding mode to test.

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