On 30-Jul-08, at 8:03 AM, David Vazquez wrote:

   /* Set initialization vector (Only for AESV2) */
pdf_status_t pdf_crypt_setiv (pdf_crypt_t cipher, const void * key, size_t size);

FWIW, in the Ghostscript implementation I just take the iv implicitly from the first 16 bytes of the stream, so there's no need for special handling. One never knows how future proof such assumptions are, but it simplified the caller a bit.

 -r


Reply via email to