bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ost::Digest class Re: protected initDigest() method


From: bc76
Subject: ost::Digest class Re: protected initDigest() method
Date: Wed, 26 Nov 2003 15:22:55 -0500

The ost::MD5Digest/ost::SHA1Digest/ost::SHA256Digest classes all inherit from the abstract ost::Digest class.daThe ost::Digest class lists a protected abstract method, initDigest().daThe digest classes that inherit from ost::Digest make their initDigest() methods public.daI want to use the ost::Digest class as an interface to multiple digests. That way I can have a function that takes a ost::Digest* and uses it for it's digest computing needs. The shadigest.cpp demo program shows ost::SHA256Digest::initDigest() being called before the SHA256Digest instance is used.daAre newly created MD5/SHA1/SHA256Digests already inited, or does one have to call initDigest() before using one? Why is ost::Digest::initDigest() protected and not public?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]