aboutsummaryrefslogtreecommitdiff
path: root/core/sys/windows/bcrypt.odin
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2020-06-26 19:11:34 +0100
committergingerBill <bill@gingerbill.org>2020-06-26 19:11:34 +0100
commit6bd05ef5d7381f8b24a40f7df2d72c62d11a8f21 (patch)
tree8c25194d2aa896c4e4dd27f5ff265957c4d265be /core/sys/windows/bcrypt.odin
parent251a3a690ed97be9582a4ca10000c4475bbef5fc (diff)
Begin migration from sys/win32 to sys/windows
Diffstat (limited to 'core/sys/windows/bcrypt.odin')
-rw-r--r--core/sys/windows/bcrypt.odin10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/sys/windows/bcrypt.odin b/core/sys/windows/bcrypt.odin
new file mode 100644
index 000000000..5d6c6811f
--- /dev/null
+++ b/core/sys/windows/bcrypt.odin
@@ -0,0 +1,10 @@
+package sys_windows
+
+foreign import bcrypt "system:Bcrypt.lib"
+
+BCRYPT_USE_SYSTEM_PREFERRED_RNG: DWORD : 0x00000002;
+
+@(default_calling_convention="stdcall")
+foreign bcrypt {
+ BCryptGenRandom :: proc(hAlgorithm: LPVOID, pBuffer: ^u8, cbBuffer: ULONG, dwFlags: ULONG) -> LONG ---
+}