-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Jeffrey Walton wrote:
> Hi Gary,
>
> A SecByteBlock is a type def of SecBlock<byte> from secblock.h. I
> do recall that a SecByteBlock is missing from the online
> documentation, but SecBlock is present. See
> http://cryptopp.com/docs/ref/class_sec_block.html.
>
> Line 262 of secblock.h is of interest: iterator begin() {return
> m_ptr;}
>
> SecBlock also provides some operator void* (casts) to get at the
> m_ptr member.
>
> Jeff
>
> On 2/2/09, Gary <[email protected]> wrote:
>> Hello Thank you Mr. Beresford. Your advice was so helpfull!
>>
>> I changed the code based on your suggestion, 1-Include the
>> "files.h" 2-change Hashmodule to HashTransformation as below:
>>
>> [ SNIP ]
>>
>> void DumpHash_SingleStep( CryptoPP::HashTransformation& hash,
>> char const* szModuleName, std::string const& strData) { using
>> namespace std; using namespace CryptoPP;
>>
>> // Cannot use std::string for buffer; // its internal storage
>> might not be contiguous SecByteBlock
>> sbbDigest(hash.DigestSize());
>>
>> hash.CalculateDigest( sbbDigest.Begin(), (byte const*)
>> strData.data(), strData.size());
>>
>> [ SNIP ]
>>
>> Most of errors are removed! But still there are 6 error as below:
>>
>>
>>
>> ------ Build started: Project: cryptopp(hashmodule),
>> Configuration: Debug Win32 ------ Compiling... 1.cpp
>> d:\cryptopp(hashmodule)\1.cpp(22) : error C2039: 'Begin' : is not
>> a member of
>>
>> 'CryptoPP::SecBlock<T>' with [ T=byte ]
>>
>> [ SNIP ]
>
> >
>
Jeff,

I take it your a night owl like me like myself! I just made another
pot of coffee. :-)

Gary,

Let us know when you get your environment for Visual Studio 2008
configured.

> I want to use from "Cryptopp" library in my project(implementing a
> Smart Card CSP). I only want to use RSA algorithm to sign and
> verify (not encrypt/ decrypt) with 1024-bit key size, and to use
> SHA1 algorithm for hashing!

Using the RSA algorithm for signature and verification is fine,
encrypting with RSA and having to go through the trouble of adding an
extra layer of security to your decryption using a padding scheme
actually will slow down the performance. I take it this project will
not be encrypting or decrypting but rather authenticating.

Are you working with cards or modules? If so are they contactless or
contact cards and what kind of reader are you using? Are these cards
being used to login to terminals or as access cards?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFJhr4IRnxC5lZRuuERAuWvAJ4uvcvKRKrmwLsu5/840BMTg8njhACeMT3f
Yu2q8plCv+kKPVrNKwrxpAs=
=jzuM
-----END PGP SIGNATURE-----


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to