Last active
October 11, 2025 14:31
-
-
Save estshorter/776004ceab4ccc6cc893f65d9324fec3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define DEBUG_WOLFSSL | |
| // | |
| #define HAVE_CURVE25519 | |
| #define WOLFSSL_SHA512 | |
| #define HAVE_ED25519 | |
| #define WOLFSSL_SP_MATH_ALL | |
| #include <windows.h> | |
| LARGE_INTEGER frequency; | |
| void my_cb(const int logLevel, const char* const logMessage) { | |
| LARGE_INTEGER counter; | |
| QueryPerformanceCounter(&counter); | |
| // マイクロ秒単位に変換 | |
| long long microseconds = (counter.QuadPart * 1000000) / frequency.QuadPart; | |
| printf("[%lld] %s\n", microseconds, logMessage); | |
| } | |
| wolfSSL_SetLoggingCb(my_cb); | |
| // wolfSSL_CTX_set_group_messages(ctx); | |
| /* | |
| 1. ソリューションエクスプローラーでファイルを選択 | |
| - wolfssl プロジェクトを展開 | |
| - wolfcrypt\src\sp_x86_64_asm.asm ファイルを右クリック | |
| - 「プロパティ」 を選択 | |
| 2. カスタムビルドツールの設定を開く | |
| - 左側のツリーで 「カスタムビルドツール」 → 「全般」 を選択 | |
| 3. コマンドラインを編集 | |
| - 「コマンドライン」 フィールドを探す | |
| - 現在は以下のようになっているはずです: | |
| ml64.exe /c /Zi /Fo"$(OutDir)%(Filename).obj" %(Identity) | |
| - これを以下のように変更します: | |
| ml64.exe /c /Zi /D WOLFSSL_SP_4096 /Fo"$(OutDir)%(Filename).obj" %(Identity) | |
| 4. すべての構成に適用 | |
| - 上部の 「構成」 ドロップダウンで、各構成(Debug、Release、DLL Debug、DLL Release)を選択 | |
| - それぞれの構成で同様に /D WOLFSSL_SP_4096 を追加 | |
| 5. プラットフォームも確認 | |
| - 「プラットフォーム」 が x64 になっていることを確認 | |
| - x64の各構成で設定を適用 | |
| 6. 適用して閉じる | |
| - 「適用」 → 「OK」 をクリック | |
| 7. リビルド | |
| - プロジェクトをクリーンしてリビルドします | |
| - メニューから 「ビルド」 → 「wolfssl のリビルド」 | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment