Problems with simple enveloping

Александр Комратов <[email protected]>
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Hi people!

I'm using Cryltlib 3.4.0 both under WindowsXP SP3 and FreeBSD 8.2 (AMD64)

While creating envelopes in code beow I got an error.

  this->cl_err = 
cryptCreateEnvelope(&env,CRYPT_UNUSED,CRYPT_FORMAT_CRYPTLIB);
  if (this->cl_err) IRET(446);

  this->cl_err = cryptSetAttribute( env, CRYPT_ATTRIBUTE_BUFFERSIZE, 
src_size+16384);
  if (this->cl_err) IRET(449);

The last operation returns -2 i.e. CRYPT_ATTRIBUTE_BUFFERSIZE is a wrong 
attr for envelope.

real value for src_size was 32768, but might be aany one up to 32MB.

What's wrong?

PS  As a test one I tried to exclude buffer size definition from code 
but still using definition of raw data size. The result of data push was 
-30 (i.e. Data overflow).

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.