Include "bink.h", update BINK.h generation script

This commit is contained in:
Andrew 2023-06-01 18:28:41 +03:00
parent 5bf1da663a
commit bd11fb5eed
2 changed files with 5 additions and 4 deletions

View File

@ -14,7 +14,7 @@ with open('bink.h', 'w') as out:
#ifndef WINDOWSXPKG_BINK_H
#define WINDOWSXPKG_BINK_H
#include "shared.h"
#include "header.h"
std::unordered_map<std::string, std::unordered_map<int, std::string>> Products;
std::unordered_map<std::string, ECDLP_Params> BINKData;
@ -39,8 +39,8 @@ void initBink() {
'{"' + d['g']['x'] + '", "' + d['g']['y'] + '"}, ' +
'"' + d['n'] + '", "' + d['priv'] + '"};' + "\n")
out.write("""
out.write('''
}
#endif //WINDOWSXPKG_BINK_H
""")
''')

View File

@ -6,7 +6,6 @@
#define WINDOWSXPKG_HEADER_H
#include <cassert>
#include <cstdio>
#include <cstdint>
#include <cstdlib>
#include <cstring>
@ -20,6 +19,8 @@
#include <openssl/sha.h>
#include <openssl/rand.h>
#include "bink.h"
#define PK_LENGTH 25
#define NULL_TERMINATOR 1