Hi all, I have promblems with the encrypten and decryption of large Strings.
the following code works fine with little data. // Encrypt ... PEM_SealInit(& ctx,EVP_des_cbc(),EVP_md5(),ekey,ekeylen,iv,pubKey,pubkeyscount); ... PEM_SealUpdate(& ctx,outbuf,& outlen,intext,intextlen); ... PEM_SealFinal(& ctx,outbufsig,& outlensig,& outbuf[outlen],& outlen2,privatekey); .... // Decrypt // all parameters already bas64decoded if neccessary ... EVP_OpenInit(& ctx,EVP_des_cbc(),deK,deKlen,iv,pk) > 0; ... EVP_OpenUpdate(& ctx,buf, & buflen,ptx,ptxlen); ... EVP_OpenFinal(& ctx, buf,& buflen); Everything works fine, But for large intext > 1000 Byte EVP_OpenFinal produces the errors EVP_R_WRONG_FINAL_BLOCK_LENGTH or EVP_R_BAD_DECRYPT What am I doing wrong ? Thanks in advance for any help: Martin ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]