C3DES Class Reference
class C3DES : public CDES |
Abstract base class for triple-DES.
Implements features common to triple-DES encryption and decryption.
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() |
| CBlockTransformation::GetExtension(TUint,TAny *&,TAny *) |
| CDES::CDES() |
| CDES::ConstructL(const TDesC8 &,TBool) |
| CDES::DoTransform(TUint32 &,TUint32 &,const TUint32 *) |
| CDES::IsWeakKey(const TDesC8 &) |
| CDES::SetKey(const TDesC8 &,TUint32 *) |
| CDES::~CDES() |
Constructor & Destructor Documentation
Member Functions Documentation
BlockSize()
TInt
| BlockSize | ( | ) | const [virtual] |
Gets the block size in bytes.
ConstructL(const TDesC8 &)
void | ConstructL | ( | const TDesC8 & | aKey | ) | [protected, virtual] |
DoSetKey(const TDesC8 &)
void | DoSetKey | ( | const TDesC8 & | aKey | ) | [protected, pure virtual] |
Initialises the three key schedule arrays from the specified key.
Parameters
const TDesC8 & aKey | The key to be used for encryption. The key length must be K3DESKeySize = 24 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.
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
iK2
The second key schedule array
TUint32
iK3
The third key schedule array
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.