CDES Class Reference
class CDES : public CBlockTransformation |
Abstract base class for DES, implementing features common between DES encryption and decryption. From CBlockTransformation
Constructor & Destructor Documentation
Member Functions Documentation
BlockSize()
TInt
| BlockSize | ( | ) | const [virtual] |
Gets the block size in bytes.
ConstructL(const TDesC8 &, TBool)
void | ConstructL | ( | const TDesC8 & | aKey, |
| TBool | aCheckWeakKey |
| ) | [protected, virtual] |
DoTransform(TUint32 &, TUint32 &, const TUint32 *)
IsWeakKey(const TDesC8 &)
Indicates whether a supplied key is weak. If the key is one of the weak keys defined by the crypto library (e.g. {0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01}) ETrue is returned.
Parameters
const TDesC8 & aKey | The Key to be checked. The key length must be KDESKeySize = 8 bytes. |
KeySize()
TInt
| KeySize | ( | ) | const [virtual] |
Gets the key size in bits.
Reset()
Resets the transformation back to its original state. Clears all its buffers.
SetKey(const TDesC8 &, TUint32 *)
void | SetKey | ( | const TDesC8 & | aKey, |
| TUint32 * | aKeyBuffer |
| ) | [protected, virtual] |
Transform(TDes8 &)
void | Transform | ( | TDes8 & | aBlock | ) | [virtual] |
Transforms the supplied block, returning the new value using the same parameter. aBlock.Size() must be the same length as BlockSize().
Parameters
TDes8 & aBlock | On input, the data to be transformed; on return, the data after transformation. |
Member Data Documentation
TUint32
iK1
Key schedule array
Also used as the first key in triple-DES
HBufC8 * iKey
The initial key.
The key length must be KDESKeySize = 8 bytes.
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.