amkCrypto/mxCrypto on Win32 with Visual C++

Steve Holden sholden at holdenweb.com
Tue Jul 3 02:56:35 CEST 2001


Itamar Shtull-Trauring was kind enough to send me the following, which is
good news for all Windows Python would-be cryptographers:

> I've got this (compiled for 2.0 and the source needed to compile for
> non-2.0 versions of Python) at http://itamarst.org/downloads/. Could you
> forward this on to the list without my email? (don't want to get spam :).

His email is ... [only joking]. Itamar's web site says:

"""amkCrypto-0.1.3-win32.zip - the amkCrypto package compiled for Windows.
Includes the necessary OpenSSL DLLs (v.0.9.6a) and updated source code so
you can compile it yourself."""

You will, of course, require the OpenSSL and the Python source headers in
order to do this, and the setup.py requires source. Just dropping the Crypto
directory from the distribution in uner my Python root appeared to do the
trick for a binary installation, however.

regards
 Steve
--
http://www.holdenweb.com/


"Steve Holden" <sholden at holdenweb.com> wrote in message
news:HS507.15883$Lk6.1149673 at e420r-atl2.usenetserver.com...
> I'm trying to get the amkCrypto (modified mxCrypto) package working under
> Win32, but Visual C++ is barfing about the declaration (and concurrent
> initialization) of public member variables.
>
> For example, mxCrypto.h includes the following declaration:
>
> class StreamCipher
> {
>  protected:
>     int mode;
>
>  public:
>     static int const blocksize = 1;
>     static int const keysize = 0;
>
>     StreamCipher(PyStringObject *v, int cipher_mode);
>     ~StreamCipher();
>     PyObject *encrypt(PyStringObject *v);
>     PyObject *decrypt(PyStringObject *v);
>     int getmode(void) { return mode; };
> };
>
> The compiler says that the public member variables (blocksize and keysize)
> cannot be intialized in the header file. But clearly this code works under
> some compilers...
>
> Has anyone sucessfully installed this code on Windows? Nothing on Google
to
> suggest previous problems.
>
> Thanks in advance
>  Steve
> --
> http://www.holdenweb.com/
>
>
>
>





More information about the Python-list mailing list