TypeError: can't pickle HASH objects?

est electronixtar at gmail.com
Thu Oct 2 11:03:13 CEST 2008


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?



More information about the Python-list mailing list