Re: Problems with simple enveloping
Peter Gutmann <[email protected]>
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
=?UTF-8?B?0JDQu9C10LrRgdCw0L3QtNGAINCa0L7QvNGA0LDRgtC+0LI=?= <[email protected]> writes: >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. I've just tried it and it worked fine. Specifically the code was: CRYPT_ENVELOPE env; const int src_size = 32768; int status; status = cryptCreateEnvelope(&env,CRYPT_UNUSED,CRYPT_FORMAT_CRYPTLIB); status = cryptSetAttribute( env, CRYPT_ATTRIBUTE_BUFFERSIZE, src_size+16384); which executes without error. Peter. _______________________________________________ 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.