Hi all,
I have promblems with decrypting 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,inbuf,inbuflen); ... EVP_OpenFinal(& ctx, buf,& buflen); Everything works fine, But for large encrypted data (> 1000 Byte) in inbuf EVP_OpenFinal produces the errors EVP_R_WRONG_FINAL_BLOCK_LENGTH or EVP_R_BAD_DECRYPT The partial decrypted text in buf is ok. But a small amount of data is missing. 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] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]