pfnus Guest
|
Posted: Mon Aug 25, 2003 10:13 pm Post subject: Please help me providing a factory framework here.... |
|
|
i was told to use factory., for many reasons, this seems to be the
good choice. but...anyway.
simple, i have a crypto library, it has hash functions, symmetric key
functions and assymmetric key functions., and some derived classes
from hash, symmetric and asymmetric classes. the classes that i have
basically are the following:-
To be more specific, i have these classes now, can you help me glue
these things together properly.. providing maximum efficiency and
flexibility to both the user of this library and future updates to
this library?
In my mind, probably it look like this:
CCryptoLIB * pCrypto= new CCryptoLib;
CHash* pHash=pCrypto->CreateHash("MD5"....);
pHash->Doit(..)
class CHash;
class CMD5 : Hash;
class CSHA:CHash;
CKey;
Class CSymmetric:CKey;
Class CAsymmetric:CKey
Class CSymm1:CSymmetric;
Class CSymm2:CSymmetric;
Class CAsymm1:CAsymmetric;
Class CAsymm2:CAysmmetric;
I KNOW THEY ARE A LOT OF C++ GURUS IN THIS FORUM..
if you can provide me a framework for me i would really really
appreicated it.. just a framework where i can continue my work on
it...
AGAIN YOUR HELP IS VERY MUCH APPREICATED HERE...!!
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|
|