Hi everyone, I have promblems with decrypting of large Strings. the following code works fine with little data (<= 743 Byte).
// Encrypt ... PEM_ENCODE_SEAL_CTX ctx; 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 from the Sael-functions already bas64decoded if neccessary ... EVP_CIPHER_CTX ctx; EVP_OpenInit(& ctx,EVP_des_cbc(),recipientdeK,recipientdeKlen,iv,recipientPrivatekey); ... EVP_OpenUpdate(& ctx,buf, & buflen,inbuf,inbuflen); ... EVP_OpenFinal(& ctx,& buf[buflen],& buflen2); Everything works fine, But for larger encrypted data (>= 744 Byte) given to PEM_SealUpdate in intext, EVP_OpenFinal produces the errors EVP_R_WRONG_FINAL_BLOCK_LENGTH or EVP_R_BAD_DECRYPT The partial decrypted text (from EVP_OpenUpdate) in buf is ok. But a small amount of data is missing. Can anyone give me a hint on this Problem? 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]