<HTML><BODY><div><div class="js-helper js-readmsg-msg"><div><div id="style_15827028460894656143_BODY"><div class="class_1582896182"><div class="WordSection1_mailru_css_attribute_postfix"><p class="MsoNormal_mailru_css_attribute_postfix"><span lang="EN-US">Hello,</span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span lang="EN-US">I have a client, that sends me data, that I need to encrypt, in few steps. I can use such functions in PKCS11: C_EncryptInit (...), C_EncryptUpdate (...), C_EncryptFinal (...). It allows me add data, that will be encrypted at every step, using C_EncryptUpdate </span> function.</p><p class="MsoNormal_mailru_css_attribute_postfix"><span lang="EN-US"> </span></p><p class="MsoNormal_mailru_css_attribute_postfix"><span lang="EN-US">In OpenSSL I found CMS_encrypt (...) with flag = CMS_STREAM, but I can't understand how I can add data as I described above or another way? I get data in unsigned char* every time. Any help would be appreciated. Thanks.</span></p></div></div></div></div></div></div><style type="text/css"></style></BODY></HTML>