This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
manual:security [2018/07/03 15:59] voorburg [MicroBoot] |
manual:security [2022/02/10 11:15] voorburg [Building on Windows with Microsoft Visual C++] |
||
---|---|---|---|
Line 58: | Line 58: | ||
blt_int8u XcpVerifyKeyHook(blt_int8u resource, blt_int8u *key, blt_int8u len) | blt_int8u XcpVerifyKeyHook(blt_int8u resource, blt_int8u *key, blt_int8u len) | ||
{ | { | ||
- | /* the example key algorithm in "FeaserKey.dll" works as follows: | + | /* the example key algorithm in "libopenblt.dll" works as follows: |
* - programming resource will be unlocked if key = seed - 1 | * - programming resource will be unlocked if key = seed - 1 | ||
*/ | */ | ||
Line 136: | Line 136: | ||
==== Building on Windows with Microsoft Visual C++ ==== | ==== Building on Windows with Microsoft Visual C++ ==== | ||
- | This method assumes that Microsoft Visual C++ is installed. During the SeedNKey development, Microsoft Visual Studio 2013 Express was used. The method outlined here should work just fine with both older and newer versions of Microsoft Visual Studio. | + | This method assumes that Microsoft Visual C++ is installed. During the SeedNKey development, Microsoft Visual Studio 2019 was used. The method outlined here should work just fine with both older and newer versions of Microsoft Visual Studio. |
Using the Command Prompt in Windows, set the working directory to **.\Host\Source\SeedNKey\build** and type the command: | Using the Command Prompt in Windows, set the working directory to **.\Host\Source\SeedNKey\build** and type the command: | ||
Line 148: | Line 148: | ||
After a successful build, the shared library **libseednkey.dll** is located in the **./Host** directory. | After a successful build, the shared library **libseednkey.dll** is located in the **./Host** directory. | ||
+ | |||
+ | Note that this builds a 64-bit version of **libseednkey.dll**, which only works together with 64-bit versions of the PC binaries (MicroBoot, BootCommander and LibOpenBLT). This is the default starting with OpenBLT version 1.14. | ||
+ | |||
+ | When using the PC binaries from before OpenBLT version 1.14, or if you rebuilt them yourself as 32-bit, then you should build **libseednkey.dll** as 32-bit as well. To build a 32-bit version of **libseednkey.dll**, generate the build environment with command “cmake -A Win32..”. | ||
+ | |||
==== Building on Windows with MinGW ==== | ==== Building on Windows with MinGW ==== |