using the cryptopp as a dll, lib

861 views
Skip to first unread message

Christophe A.

unread,
Mar 27, 2008, 5:07:45 AM3/27/08
to Crypto++ Users
Hi

I'm new c++ user, and I have some questions about using the crypto++
as a dynamic library.

For my project I need to use crypto++ as an .dll and .lib in an
visual studio 2008 project and I have some problem to do it.

So I only have this 2 files and I try to use the AES functions. The
lib has been compiled and I have the cryptopp.dll and cryptopp.lib but
I dont know exactly what to do with.

I added the .lib in my project input linker option, but I'm not able
to use the functions. And so... the site is down and I don't exactly
know how to use AES functions.

So, how I could use this dll ?

using namespace ? ; __declspec(dllimport) ?

I'm a bit lost... can someone help me ?

Christophe

Jeffrey Walton

unread,
Mar 27, 2008, 8:38:21 AM3/27/08
to Christophe A., Crypto++ Users
Hi Christophe,

> I'm new c++ user, and I have some questions about using the
> crypto++ as a dynamic library.

Welcome.

> I'm a bit lost... can someone help me?

We'll do our best.

> the site is down...
Unfortunately, it has been down for some time now. Wei is aware. See
http://groups.google.com/group/cryptopp-users/browse_thread/thread/d94e97763cd4157.

> For my project I need to use crypto++ as an .dll and .lib
> in an visual studio 2008 project

I've read issues on the NG with VS2008. But I do not use it, so I
cannot offer any assistance.

> ... use the AES functions ...but I dont know


> exactly what to do with.

See http://www.codeproject.com/KB/security/BlockCiphers.aspx.

> > So, how I could use this dll?

Wei recommends static linking because it is easier to use. See
http://www.codeproject.com/KB/tips/CryptoPPIntegration.aspx.

> using namespace ?
namespace is CryptoPP

> __declspec(dllimport)?
See dll.h (if I recall correctly)

Jeff

Christophe A.

unread,
Mar 28, 2008, 6:55:58 AM3/28/08
to Crypto++ Users
thank you Jeff, your links are verry usefull.


Now I can start my project with another question, but I'll write a new
topic for it.

Thx again

Christophe

Reply all
Reply to author
Forward
0 new messages