В коде C++ он успешно расшифровывает зашифрованное RC4 слово «Hello», но на golang нет :


C++
#include
#include
#include
#include
#include
using namespace std;
// https://doxygen.reactos.org/df/d13/sysf ... ource.html
// Function prototype for SystemFunction033
typedef NTSTATUS(WINAPI* _SystemFunction033)(
struct ustring* memoryRegion,
struct ustring* keyPointer);
struct ustring {
DWORD Length;
DWORD MaximumLength;
PVOID Buffer;
} _data, key;
void printResult(const unsigned char* input, size_t size) {
// Iterate over each byte in the input array
for (size_t i = 0; i < size; i++) {
// Print each byte in hexadecimal format
std::cout
Подробнее здесь: https://stackoverflow.com/questions/784 ... -in-golang