SenCryptoUtils Class Reference
Set of static convenience methods to help in cryptography
Constructor & Destructor Documentation
SenCryptoUtils()
SenCryptoUtils | ( | ) | [private] |
Hide default C++ constructor.
Member Functions Documentation
CreateEncodedBinarySecretL(const TDesC8 &, const TDesC8 &)
IMPORT_C HBufC8 * | CreateEncodedBinarySecretL | ( | const TDesC8 & | aSecret, |
| const TDesC8 & | aValueType |
| ) | [static] |
DecodeBase64L(const TDesC8 &)
EncodeBase64L(const TDesC8 &)
GetPSHA1HashL(const TDesC8 &, const TDesC8 &, const TInt)
Algorithm taken from of TLS specification RFC 2246 - 5.HMAC and the pseudorandom function
P_hash(secret, seed) = HMAC_hash(secret, A(1) + seed) + HMAC_hash(secret, A(2) + seed) + HMAC_hash(secret, A(3) + seed) + ...
Where + indicates concatenation.
A() is defined as: A(0) = seed A(i) = HMAC_hash(secret, A(i-1))
P_hash can be iterated as many times as is necessary to produce the required quantity of data. For example, if P_SHA-1 was being used to create 64 bytes of data, it would have to be iterated 4 times (through A(4)), creating 80 bytes of output data; the last 16 bytes of the final iteration would then be discarded, leaving 64 bytes of output data.
- Since
- Series60 3.2.3
Parameters
const TDesC8 & aSecret | - secret |
const TDesC8 & aSeed | - seed |
const TInt aLength | - length of new secret |
GetRandomNonceL()
IMPORT_C HBufC8 * | GetRandomNonceL | ( | ) | [static] |
GetTimestampL()
IMPORT_C HBufC8 * | GetTimestampL | ( | ) | [static] |
RandomAndHashMd5LC()
IMPORT_C HBufC8 * | RandomAndHashMd5LC | ( | ) | [static] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.