Created
July 1, 2018 05:55
-
-
Save Varriount/d729f16913750a3f935790d5a1f125b3 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
{.push, stdcall, dynlib: "Advapi32.dll".} | |
proc CryptReleaseContext*( | |
hProv: HCRYPTPROV; | |
dwFlags: culong | |
): cint {.importc: "CryptReleaseContext".} | |
proc CryptAcquireContextA*( | |
phProv: ptr HCRYPTPROV; | |
szContainer: cstring; | |
szProvider: cstring; | |
dwProvType: culong; | |
dwFlags: culong | |
): cint {.importc: "CryptAcquireContextA".} | |
proc CryptGenRandom*( | |
hProv: HCRYPTPROV; | |
dwLen: culong; | |
pbBuffer: pointer | |
): cint {.importc: "CryptGenRandom".} | |
{.pop.} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment