TypeError: can't pickle HASH objects?
Aaron "Castironpi" Brady
castironpi at gmail.com
Thu Oct 2 11:19:07 CEST 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>
> > 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 -
> int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data,
> size_t count)
> #ifdef OPENSSL_FIPS
> return ctx->digest->update(ctx,data,count);
> is this one?
Oops, I needed 'EVP_MD_CTX'. I went Googling and found it.
But does Gabriel's work for you?
More information about the Python-list