CPnpUtilImpl Class Reference

class CPnpUtilImpl : public CBase

Inherits from

Public Member Functions
~CPnpUtilImpl ()
IMPORT_C void CreateNewNonceL (const TUint , TDes8 &)
IMPORT_C TInt CreateNewToken ( TUint32 , TInt &)
IMPORT_C TInt FetchAccessPoint ( TUint32 &)
IMPORT_C void FetchHomeNetworkInfoL ()
IMPORT_C void FetchNetworkInfoL ()
IMPORT_C void FormatMncCodeL (const RMobilePhone::TMobilePhoneNetworkCountryCode , const RMobilePhone::TMobilePhoneNetworkIdentity , RMobilePhone::TMobilePhoneNetworkIdentity &)
IMPORT_C void GetKeyInfoL ( TDes8 &)
IMPORT_C void GetNonceL ( TDes8 &)
IMPORT_C TInt GetNonceValidityTimeL ()
IMPORT_C TInt GetTokenValidityTime ()
IMPORT_C TInt GetTokenValue ( TInt &)
IMPORT_C const RMobilePhone::TMobilePhoneNetworkCountryCode HomeMccL ()
IMPORT_C const RMobilePhone::TMobilePhoneNetworkIdentity HomeMncL ()
IMPORT_C void ImsiL ( RMobilePhone::TMobilePhoneSubscriberId &)
IMPORT_C const RMobilePhone::TMobilePhoneNetworkCountryCode NetworkMccL ()
IMPORT_C const RMobilePhone::TMobilePhoneNetworkIdentity NetworkMncL ()
IMPORT_C CPnpUtilImpl * NewLC ()
IMPORT_C TInt OperatorLongName ( RMobilePhone::TMobilePhoneNetworkLongName &)
void RESERVED_FUNC ()
IMPORT_C TBool RegisteredInHomeNetworkL ()
IMPORT_C void SetHomeMccL (const RMobilePhone::TMobilePhoneNetworkCountryCode )
IMPORT_C void SetHomeMncL (const RMobilePhone::TMobilePhoneNetworkIdentity )
IMPORT_C void SetNetworkMccL (const RMobilePhone::TMobilePhoneNetworkCountryCode )
IMPORT_C void SetNetworkMncL (const RMobilePhone::TMobilePhoneNetworkIdentity )
IMPORT_C TInt StoreAccessPoint ( TUint32 )
IMPORT_C TBool VerifySignatureL (const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C TInt Version ( TDes &)
Private Member Functions
CPnpUtilImpl ()
void ConstructL ()
void CreateEncryptionKeyL ( TDes8 &)
HBufC8 * DecodeBase64LC (const TDesC8 &)
TChar DecodeCharL (const TChar )
void LogAsASCIIHexL (const TDesC8 &)
HBufC8 * PackLC (const TDesC8 &)
TUint RandomCharacter ( TInt64 &)
TBool VerifyDigestL (const TDesC8 &, const TDesC8 &, const TDesC8 &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
C3DESDecryptor * iDecryptor
C3DESEncryptor * iEncryptor
RMobilePhone::TMobilePhoneNetworkCountryCode iHomeMCC
RMobilePhone::TMobilePhoneNetworkIdentity iHomeMNC
TBuf < 15 > iIMSI
RMobilePhone::TMobilePhoneNetworkCountryCode iNetworkMCC
RMobilePhone::TMobilePhoneNetworkIdentity iNetworkMNC
RMobilePhone iPhone
TBool iRegisteredInHomeNetwork
CRepository * iRepository
RTelServer iServer

Constructor & Destructor Documentation

CPnpUtilImpl()

CPnpUtilImpl ( ) [private]

~CPnpUtilImpl()

IMPORT_C ~CPnpUtilImpl ( )

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

CreateEncryptionKeyL(TDes8 &)

void CreateEncryptionKeyL ( TDes8 & aEncryptionKey ) [private]

Parameters

TDes8 & aEncryptionKey

CreateNewNonceL(const TUint, TDes8 &)

IMPORT_C void CreateNewNonceL ( const TUint aTimeOut,
TDes8 & aNonce
)

Commented in base class CPnPUtil

Parameters

const TUint aTimeOut
TDes8 & aNonce

CreateNewToken(TUint32, TInt &)

IMPORT_C TInt CreateNewToken ( TUint32 aTimeout,
TInt & aToken
)

Commented in base class CPnPUtil

Parameters

TUint32 aTimeout
TInt & aToken

DecodeBase64LC(const TDesC8 &)

HBufC8 * DecodeBase64LC ( const TDesC8 & aEncodedDesc ) [private]

Decodes given base64-encoded data. Leaves with KErrCorrupted if The data is not base64-encoded.

Parameters

const TDesC8 & aEncodedDesc The base64 encoded data.

DecodeCharL(const TChar)

TChar DecodeCharL ( const TChar aCharacter ) [private]

A helper function for base64 encoding

Parameters

const TChar aCharacter

FetchAccessPoint(TUint32 &)

IMPORT_C TInt FetchAccessPoint ( TUint32 & aAP )

Commented in base class CPnPUtil

Parameters

TUint32 & aAP

FetchHomeNetworkInfoL()

IMPORT_C void FetchHomeNetworkInfoL ( )

Commented in base class CPnPUtil

FetchNetworkInfoL()

IMPORT_C void FetchNetworkInfoL ( )

Commented in base class CPnPUtil

FormatMncCodeL(const RMobilePhone::TMobilePhoneNetworkCountryCode, const RMobilePhone::TMobilePhoneNetworkIdentity, RMobilePhone::TMobilePhoneNetworkIdentity &)

IMPORT_C void FormatMncCodeL ( const RMobilePhone::TMobilePhoneNetworkCountryCode aMcc,
const RMobilePhone::TMobilePhoneNetworkIdentity aUnformattedMnc,
RMobilePhone::TMobilePhoneNetworkIdentity & aFormattedMnc
) const

Commented in base class CPnPUtil

GetKeyInfoL(TDes8 &)

IMPORT_C void GetKeyInfoL ( TDes8 & aKeyInfo )

Commented in base class CPnPUtil

Parameters

TDes8 & aKeyInfo

GetNonceL(TDes8 &)

IMPORT_C void GetNonceL ( TDes8 & aNonce )

Commented in base class CPnPUtil

Parameters

TDes8 & aNonce

GetNonceValidityTimeL()

IMPORT_C TInt GetNonceValidityTimeL ( )

Commented in base class CPnPUtil

GetTokenValidityTime()

IMPORT_C TInt GetTokenValidityTime ( )

Commented in base class CPnPUtil

GetTokenValue(TInt &)

IMPORT_C TInt GetTokenValue ( TInt & aToken )

Commented in base class CPnPUtil

Parameters

TInt & aToken

HomeMccL()

IMPORT_C const RMobilePhone::TMobilePhoneNetworkCountryCode HomeMccL ( ) const

Commented in base class CPnPUtil

HomeMncL()

IMPORT_C const RMobilePhone::TMobilePhoneNetworkIdentity HomeMncL ( ) const

Commented in base class CPnPUtil

ImsiL(RMobilePhone::TMobilePhoneSubscriberId &)

IMPORT_C void ImsiL ( RMobilePhone::TMobilePhoneSubscriberId & aImsi ) const

Commented in base class CPnPUtil

LogAsASCIIHexL(const TDesC8 &)

void LogAsASCIIHexL ( const TDesC8 & aDesc ) [private]

Writes the descriptor to log as hexadecimal character representation.

Parameters

const TDesC8 & aDesc

NetworkMccL()

IMPORT_C const RMobilePhone::TMobilePhoneNetworkCountryCode NetworkMccL ( ) const

Commented in base class CPnPUtil

NetworkMncL()

IMPORT_C const RMobilePhone::TMobilePhoneNetworkIdentity NetworkMncL ( ) const

Commented in base class CPnPUtil

NewLC()

IMPORT_C CPnpUtilImpl * NewLC ( ) [static]

OperatorLongName(RMobilePhone::TMobilePhoneNetworkLongName &)

IMPORT_C TInt OperatorLongName ( RMobilePhone::TMobilePhoneNetworkLongName & aName )

Commented in base class CPnPUtil

PackLC(const TDesC8 &)

HBufC8 * PackLC ( const TDesC8 & aHex ) const [private]

Parameters

const TDesC8 & aHex

RESERVED_FUNC()

void RESERVED_FUNC ( )

RandomCharacter(TInt64 &)

TUint RandomCharacter ( TInt64 & aSeed ) [private]

Parameters

TInt64 & aSeed

RegisteredInHomeNetworkL()

IMPORT_C TBool RegisteredInHomeNetworkL ( )

Commented in base class CPnPUtil

SetHomeMccL(const RMobilePhone::TMobilePhoneNetworkCountryCode)

IMPORT_C void SetHomeMccL ( const RMobilePhone::TMobilePhoneNetworkCountryCode aMcc )

Commented in base class CPnPUtil

SetHomeMncL(const RMobilePhone::TMobilePhoneNetworkIdentity)

IMPORT_C void SetHomeMncL ( const RMobilePhone::TMobilePhoneNetworkIdentity aMnc )

Commented in base class CPnPUtil

SetNetworkMccL(const RMobilePhone::TMobilePhoneNetworkCountryCode)

IMPORT_C void SetNetworkMccL ( const RMobilePhone::TMobilePhoneNetworkCountryCode aMcc )

Commented in base class CPnPUtil

SetNetworkMncL(const RMobilePhone::TMobilePhoneNetworkIdentity)

IMPORT_C void SetNetworkMncL ( const RMobilePhone::TMobilePhoneNetworkIdentity aMnc )

Commented in base class CPnPUtil

StoreAccessPoint(TUint32)

IMPORT_C TInt StoreAccessPoint ( TUint32 aAP )

Commented in base class CPnPUtil

Parameters

TUint32 aAP

VerifyDigestL(const TDesC8 &, const TDesC8 &, const TDesC8 &)

TBool VerifyDigestL ( const TDesC8 & aSendersDigest,
const TDesC8 & aData,
const TDesC8 & aNonce
) [private]

Verifies the digest that the sender gave. The digest (hash value) is calculated as follows: H( nonce:data ), where H (hash) is the sha1 operation

Parameters

const TDesC8 & aSendersDigest The digest that the sender gave. In binary format (decoded from base64 format).
const TDesC8 & aData The data
const TDesC8 & aNonce The original randomly created nonce.

VerifySignatureL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 &)

IMPORT_C TBool VerifySignatureL ( const TDesC8 & aDigestValue,
const TDesC8 & aSignatureValue,
const TDesC8 & aData,
const TDesC8 & aNonce
)

Commented in base class CPnPUtil

Parameters

const TDesC8 & aDigestValue
const TDesC8 & aSignatureValue
const TDesC8 & aData
const TDesC8 & aNonce

Version(TDes &)

IMPORT_C TInt Version ( TDes & aVersion )

Commented in base class CPnPUtil

Parameters

TDes & aVersion

Member Data Documentation

C3DESDecryptor * iDecryptor

C3DESDecryptor * iDecryptor [private]

C3DESEncryptor * iEncryptor

C3DESEncryptor * iEncryptor [private]

RMobilePhone::TMobilePhoneNetworkCountryCode iHomeMCC

RMobilePhone::TMobilePhoneNetworkCountryCode iHomeMCC [private]

RMobilePhone::TMobilePhoneNetworkIdentity iHomeMNC

RMobilePhone::TMobilePhoneNetworkIdentity iHomeMNC [private]

TBuf< 15 > iIMSI

TBuf < 15 > iIMSI [private]

RMobilePhone::TMobilePhoneNetworkCountryCode iNetworkMCC

RMobilePhone::TMobilePhoneNetworkCountryCode iNetworkMCC [private]

RMobilePhone::TMobilePhoneNetworkIdentity iNetworkMNC

RMobilePhone::TMobilePhoneNetworkIdentity iNetworkMNC [private]

RMobilePhone iPhone

RMobilePhone iPhone [private]

TBool iRegisteredInHomeNetwork

TBool iRegisteredInHomeNetwork [private]

CRepository * iRepository

CRepository * iRepository [private]

RTelServer iServer

RTelServer iServer [private]