if(1!=EVP_EncryptUpdate(ctx_,reinterpret_cast<unsignedchar*>(data),&len,reinterpret_cast<constunsignedchar*>(data),static_cast<int>(dataSize))){err_str="Failed to encrypt.";gotoerror;}
if(1!=EVP_EncryptUpdate(ctx_,out,&len,reinterpret_cast<constunsignedchar*>(data),static_cast<int>(dataSize))){err_str="Failed to encrypt.";gotoerror;}
if(1!=EVP_EncryptUpdate(ctx_,reinterpret_cast<unsignedchar*>(ptr),&len,reinterpret_cast<constunsignedchar*>(ptr),static_cast<int>(dataSize-n))){err_str="Failed to encrypt remaining.";gotoerror;}
if(1!=EVP_EncryptUpdate(ctx_,out,&len,reinterpret_cast<constunsignedchar*>(ptr),static_cast<int>(dataSize-n))){err_str="Failed to encrypt remaining.";gotoerror;}