#include "gost89.h"QByteArray gostEncodeCfb(const QByteArray &msg){ static const unsigned char iv[16] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; QByteArray data64(msg); while (data64.size() % 8) data64.append((char)0); QByteArray data64Enc(data64.size(), 0); gost_enc_cfb(&ctx, iv, (const unsigned char*)data64.constData(), (unsigned char*)data64Enc.data(), data64.size() / 8); return data64Enc;}