TypeError: can't pickle HASH objects?
Aaron "Castironpi" Brady
castironpi at gmail.com
Thu Oct 2 05:19:07 EDT 2008
On Oct 2, 4:03 am, est <electronix... at gmail.com> wrote:
> On Oct 2, 4:22 pm, "Aaron \"Castironpi\" Brady" <castiro... at gmail.com>
> wrote:
>
>
>
> > On Oct 2, 2:44 am, est <electronix... at gmail.com> wrote:
>
> > > On Oct 2, 1:51 pm, "James Mills" <prolo... at shortcircuit.net.au> wrote:
>
> > > > On Thu, Oct 2, 2008 at 3:34 PM, est <electronix... at gmail.com> wrote:
> > > > > wow. It's giga-size file. I need stream reading it, md5 it. It may
> > > > > break for a while.
>
> > > > So use generators and consume the stream ?
>
> > > > --JamesMills
>
> > > > --
> > > > --
> > > > -- "Problems are solved by method"
>
> > > no, I need to serialize half-finished digest, not file stream.
>
> > > Anyone got solution?
>
> > I am looking at '_hashopenssl.c'. If you can find the implementation
> > of EVP_DigestUpdate, I'll give it a shot to help you write a ctypes
> > hack to store and write its state.- Hide quoted text -
>
> > - Show quoted text -
>
> http://cvs.openssl.org/fileview?f=openssl/crypto/evp/digest.c
>
> int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data,
> size_t count)
> {
> #ifdef OPENSSL_FIPS
> FIPS_selftest_check();
> #endif
> return ctx->digest->update(ctx,data,count);
> }
>
> is this one?
Oops, I needed 'EVP_MD_CTX'. I went Googling and found it.
http://www.google.com/codesearch?hl=en&q=struct+EVP_MD_CTX+show:mV3VBLQ3bJg:LiPTUi2tojQ:CERf4Pk7bsY&sa=N&cd=5&ct=rc&cs_p=http://freshmeat.net/redir/cyassl/67102/url_zip/cyassl-0.6.2.zip&cs_f=cyassl-0.8.5/include/openssl/evp.h#l51
But does Gabriel's work for you?
More information about the Python-list
mailing list