while (pos < length)
{
char buffer[1024];
std::string::size_type chunkLength = std::min(length - pos, sizeof(buffer));
EncryptString(buffer, answer.c_str() + pos, chunkLength, &ctx);
while (pos < length)
{
char buffer[1024];
std::string::size_type chunkLength = std::min(length - pos, sizeof(buffer));
EncryptString(buffer, answer.c_str() + pos, chunkLength, &ctx);