Created
October 12, 2013 03:31
-
-
Save Varriount/6945468 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
# Functions for accessing the CryptRandGen functions | |
proc CryptGenRandom( | |
hProv:HCRYPTPROV, | |
dwLen:DWORD, | |
pbBuffer:ptr BYTE | |
):WINBOOL {.stdcall, | |
dynlib: "Advapi32", importc: "CryptGenRandom".} | |
proc CryptAcquireContext( | |
phProv:ptr HCRYPTPROV, | |
pszContainer:LPCTSTR, | |
pszProvider:LPCTSTR, | |
dwProvType:DWORD, | |
dwFlags:DWORD | |
):WINBOOL {.stdcall, | |
dynlib: "Advapi32", importc: "CryptAcquireContext".} | |
proc CryptReleaseContext( | |
hProv:HCRYPTPROV, | |
dwFlags:DWORD | |
):WINBOOL {.stdcall, | |
dynlib: "Advapi32", importc: "CryptReleaseContext".} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment