Stu | 1 Oct 2008 02:24
Picon

Unused variable warnings


I get a lot of these warnings with crypto++:

   /usr/include/crypto++/algparam.h:26: warning: unused variable
‘cryptopp_assert_26’

This is causing a host of issues because my build system treats
warnings as errors (as it should).
Does anyone know if it's possible to turn off this warning temporarily
in gcc with pragmas?

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

zooko | 1 Oct 2008 17:55
Gravatar

Re: Unused variable warnings


On Sep 30, 2008, at 18:24 PM, Stu wrote:

>
> I get a lot of these warnings with crypto++:
>
>    /usr/include/crypto++/algparam.h:26: warning: unused variable
> ‘cryptopp_assert_26’
>
> This is causing a host of issues because my build system treats
> warnings as errors (as it should).
> Does anyone know if it's possible to turn off this warning temporarily
> in gcc with pragmas?

Personally, I recently gave in and just passed "-w" (suppress all  
warnings) to gcc.  :-(

Regards,

Zooko
---
http://allmydata.org -- Tahoe, the Least-Authority Filesystem
http://allmydata.com -- back up all your files for $5/month

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

(Continue reading)

Stu | 1 Oct 2008 18:45
Picon

Re: Unused variable warnings


Sure...
I need the warnings though. As a temporary fix I disabled warnings
just while compiling dependencies of crypto++. Makes the build files a
mess though and means I have to write wrappers around crypto++ to
prevent inclusion by the rest of my code.

- Stu

>
> Personally, I recently gave in and just passed "-w" (suppress all  
> warnings) to gcc.  :-(
>
> Regards,
>
> Zooko
> ---http://allmydata.org-- Tahoe, the Least-Authority Filesystemhttp://allmydata.com-- back up
all your files for $5/month
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe <at> googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Robert Lemmen | 1 Oct 2008 19:03

Re: Unused variable warnings

On Tue, Sep 30, 2008 at 05:24:55PM -0700, Stu wrote:
> Does anyone know if it's possible to turn off this warning temporarily
> in gcc with pragmas?

i get these too, and some more when i use a newer g++. most of them look
reasonable and trivial to fix, so the question is: how big are the
chances a patch that fixes them gets accepted and included?

cu  robert

--

-- 
Robert Lemmen                               http://www.semistable.com 
zooko | 1 Oct 2008 19:19
Gravatar

Re: Unused variable warnings


On Oct 1, 2008, at 11:03 AM, Robert Lemmen wrote:

> i get these too, and some more when i use a newer g++. most of them  
> look
> reasonable and trivial to fix, so the question is: how big are the
> chances a patch that fixes them gets accepted and included?

I can't speak for Wei Dai, the official maintainer of Crypto++, but I  
personally maintain my own variant of Crypto++ for my pycryptopp  
project, and I would be quite happy to accept your patch.  :-)

Regards,

Zooko
---
http://allmydata.org -- Tahoe, the Least-Authority Filesystem
http://allmydata.com -- back up all your files for $5/month

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

zooko | 1 Oct 2008 19:20
Gravatar

paper about Tahoe filesystem


Folks:

The secure decentralized filesystem described in this paper is  
implemented using Crypto++ for all of the crypto operations described  
herein:

http://allmydata.org/~zooko/lafs.pdf

Regards,

Zooko
---
http://allmydata.org -- Tahoe, the Least-Authority Filesystem
http://allmydata.com -- back up all your files for $5/month

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

Stu | 1 Oct 2008 20:32
Picon

Compiling for VS2008 Express Edition


I got this error when compiling the cryptest project for the latest
stable release:
   Fatal error RC1015: cannot open include file 'afxres.h'

afxres.h is not present on my system.

If I remove the .rc file that includes it from the project, everything
works fine.

Is there a Bugzilla for crypto++?

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

Eugene Zolenko | 1 Oct 2008 21:12
Picon
Gravatar

Re: Compiling for VS2008 Express Edition


> I got this error when compiling the cryptest project for the latest
> stable release:
>    Fatal error RC1015: cannot open include file 'afxres.h'

Not sure about VS2008, but VS2005 express edition didn't include
headers for ATL or even Win32 -- you had to install Platform SDK for
that. This might be the reason for the error.

It is probably used just for a VERSION_INFO for dlls or something.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscribe <at> googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

zooko | 1 Oct 2008 21:15
Gravatar

Re: Compiling for VS2008 Express Edition


On Oct 1, 2008, at 12:32 PM, Stu wrote:

> Is there a Bugzilla for crypto++?

No, but I would be willing to host a trac.  It would be like one of  
these:

http://allmydata.org/trac

So it would include issue tracking, source code browsing, revision  
control history browsing, and wiki.

I would also be very interested in hosting a buildbot for Crypto++.   
It would look like this:

http://allmydata.org/buildbot/waterfall?show_events=false

And each column would be a different computer which some volunteer is  
offering which runs the Crypto++ self-tests against the current  
version of the source code.

Regards,

Zooko
---
http://allmydata.org -- Tahoe, the Least-Authority Filesystem
http://allmydata.com -- back up all your files for $5/month

--~--~---------~--~----~------------~-------~--~----~
(Continue reading)

Simon Heffer | 2 Oct 2008 12:47
Picon
Favicon

MaxPlainTextLength' : is not a member of 'CryptoPP::PK_FinalTemplate<BASE>


Hi,

I've just upgraded from an old version of Crypto++ to 5.5.2 ('cos I'm
doing a 64bit XP port). I;m getting this a lot so obviously that
member is no longer used. Is there an equivalent or will the class
handle any length now?

Sample code with problem...
	StringSource pubString(mystuff,true,new HexDecoder);
	RSAES_OAEP_SHA_Encryptor pub(pubString);

	if (strlen(message) > pub.MaxPlainTextLength())
	{
		cerr << "message too long \n";
		abort();
	}

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


Gmane