CPnpUtilImpl Class Reference

class CPnpUtilImpl : public CBase

Inherits from

Public Member Functions
~CPnpUtilImpl()
IMPORT_C voidCreateNewNonceL(const TUint, TDes8 &)
IMPORT_C TIntCreateNewToken(TUint32, TInt &)
IMPORT_C TIntFetchAccessPoint(TUint32 &)
IMPORT_C voidFetchHomeNetworkInfoL()
IMPORT_C voidFetchNetworkInfoL()
IMPORT_C voidFormatMncCodeL(const RMobilePhone::TMobilePhoneNetworkCountryCode, const RMobilePhone::TMobilePhoneNetworkIdentity, RMobilePhone::TMobilePhoneNetworkIdentity &)
IMPORT_C voidGetKeyInfoL(TDes8 &)
IMPORT_C voidGetNonceL(TDes8 &)
IMPORT_C TIntGetNonceValidityTimeL()
IMPORT_C TIntGetTokenValidityTime()
IMPORT_C TIntGetTokenValue(TInt &)
IMPORT_C const RMobilePhone::TMobilePhoneNetworkCountryCodeHomeMccL()
IMPORT_C const RMobilePhone::TMobilePhoneNetworkIdentityHomeMncL()
IMPORT_C voidImsiL(RMobilePhone::TMobilePhoneSubscriberId &)
IMPORT_C const RMobilePhone::TMobilePhoneNetworkCountryCodeNetworkMccL()
IMPORT_C const RMobilePhone::TMobilePhoneNetworkIdentityNetworkMncL()
IMPORT_C CPnpUtilImpl *NewLC()
IMPORT_C TIntOperatorLongName(RMobilePhone::TMobilePhoneNetworkLongName &)
voidRESERVED_FUNC()
IMPORT_C TBoolRegisteredInHomeNetworkL()
IMPORT_C voidSetHomeMccL(const RMobilePhone::TMobilePhoneNetworkCountryCode)
IMPORT_C voidSetHomeMncL(const RMobilePhone::TMobilePhoneNetworkIdentity)
IMPORT_C voidSetNetworkMccL(const RMobilePhone::TMobilePhoneNetworkCountryCode)
IMPORT_C voidSetNetworkMncL(const RMobilePhone::TMobilePhoneNetworkIdentity)
IMPORT_C TIntStoreAccessPoint(TUint32)
IMPORT_C TBoolVerifySignatureL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 &)
IMPORT_C TIntVersion(TDes &)
Private Member Functions
CPnpUtilImpl()
voidConstructL()
voidCreateEncryptionKeyL(TDes8 &)
HBufC8 *DecodeBase64LC(const TDesC8 &)
TChar DecodeCharL(const TChar)
voidLogAsASCIIHexL(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()

voidConstructL()[private]

CreateEncryptionKeyL(TDes8 &)

voidCreateEncryptionKeyL(TDes8 &aEncryptionKey)[private]

Parameters

TDes8 & aEncryptionKey

CreateNewNonceL(const TUint, TDes8 &)

IMPORT_C voidCreateNewNonceL(const TUintaTimeOut,
TDes8 &aNonce
)

Commented in base class CPnPUtil

Parameters

const TUint aTimeOut
TDes8 & aNonce

CreateNewToken(TUint32, TInt &)

IMPORT_C TIntCreateNewToken(TUint32aTimeout,
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 & aEncodedDescThe base64 encoded data.

DecodeCharL(const TChar)

TChar DecodeCharL(const TCharaCharacter)[private]

A helper function for base64 encoding

Parameters

const TChar aCharacter

FetchAccessPoint(TUint32 &)

IMPORT_C TIntFetchAccessPoint(TUint32 &aAP)

Commented in base class CPnPUtil

Parameters

TUint32 & aAP

FetchHomeNetworkInfoL()

IMPORT_C voidFetchHomeNetworkInfoL()

Commented in base class CPnPUtil

FetchNetworkInfoL()

IMPORT_C voidFetchNetworkInfoL()

Commented in base class CPnPUtil

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

IMPORT_C voidFormatMncCodeL(const RMobilePhone::TMobilePhoneNetworkCountryCodeaMcc,
const RMobilePhone::TMobilePhoneNetworkIdentityaUnformattedMnc,
RMobilePhone::TMobilePhoneNetworkIdentity &aFormattedMnc
)const

Commented in base class CPnPUtil

GetKeyInfoL(TDes8 &)

IMPORT_C voidGetKeyInfoL(TDes8 &aKeyInfo)

Commented in base class CPnPUtil

Parameters

TDes8 & aKeyInfo

GetNonceL(TDes8 &)

IMPORT_C voidGetNonceL(TDes8 &aNonce)

Commented in base class CPnPUtil

Parameters

TDes8 & aNonce

GetNonceValidityTimeL()

IMPORT_C TIntGetNonceValidityTimeL()

Commented in base class CPnPUtil

GetTokenValidityTime()

IMPORT_C TIntGetTokenValidityTime()

Commented in base class CPnPUtil

GetTokenValue(TInt &)

IMPORT_C TIntGetTokenValue(TInt &aToken)

Commented in base class CPnPUtil

Parameters

TInt & aToken

HomeMccL()

IMPORT_C const RMobilePhone::TMobilePhoneNetworkCountryCodeHomeMccL()const

Commented in base class CPnPUtil

HomeMncL()

IMPORT_C const RMobilePhone::TMobilePhoneNetworkIdentityHomeMncL()const

Commented in base class CPnPUtil

ImsiL(RMobilePhone::TMobilePhoneSubscriberId &)

IMPORT_C voidImsiL(RMobilePhone::TMobilePhoneSubscriberId &aImsi)const

Commented in base class CPnPUtil

LogAsASCIIHexL(const TDesC8 &)

voidLogAsASCIIHexL(const TDesC8 &aDesc)[private]

Writes the descriptor to log as hexadecimal character representation.

Parameters

const TDesC8 & aDesc

NetworkMccL()

IMPORT_C const RMobilePhone::TMobilePhoneNetworkCountryCodeNetworkMccL()const

Commented in base class CPnPUtil

NetworkMncL()

IMPORT_C const RMobilePhone::TMobilePhoneNetworkIdentityNetworkMncL()const

Commented in base class CPnPUtil

NewLC()

IMPORT_C CPnpUtilImpl *NewLC()[static]

OperatorLongName(RMobilePhone::TMobilePhoneNetworkLongName &)

IMPORT_C TIntOperatorLongName(RMobilePhone::TMobilePhoneNetworkLongName &aName)

Commented in base class CPnPUtil

PackLC(const TDesC8 &)

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

Parameters

const TDesC8 & aHex

RESERVED_FUNC()

voidRESERVED_FUNC()

RandomCharacter(TInt64 &)

TUint RandomCharacter(TInt64 &aSeed)[private]

Parameters

TInt64 & aSeed

RegisteredInHomeNetworkL()

IMPORT_C TBoolRegisteredInHomeNetworkL()

Commented in base class CPnPUtil

SetHomeMccL(const RMobilePhone::TMobilePhoneNetworkCountryCode)

IMPORT_C voidSetHomeMccL(const RMobilePhone::TMobilePhoneNetworkCountryCodeaMcc)

Commented in base class CPnPUtil

SetHomeMncL(const RMobilePhone::TMobilePhoneNetworkIdentity)

IMPORT_C voidSetHomeMncL(const RMobilePhone::TMobilePhoneNetworkIdentityaMnc)

Commented in base class CPnPUtil

SetNetworkMccL(const RMobilePhone::TMobilePhoneNetworkCountryCode)

IMPORT_C voidSetNetworkMccL(const RMobilePhone::TMobilePhoneNetworkCountryCodeaMcc)

Commented in base class CPnPUtil

SetNetworkMncL(const RMobilePhone::TMobilePhoneNetworkIdentity)

IMPORT_C voidSetNetworkMncL(const RMobilePhone::TMobilePhoneNetworkIdentityaMnc)

Commented in base class CPnPUtil

StoreAccessPoint(TUint32)

IMPORT_C TIntStoreAccessPoint(TUint32aAP)

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 & aSendersDigestThe digest that the sender gave. In binary format (decoded from base64 format).
const TDesC8 & aDataThe data
const TDesC8 & aNonceThe original randomly created nonce.

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

IMPORT_C TBoolVerifySignatureL(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 TIntVersion(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]