mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/rand for Windows
R=rsc, brainman CC=golang-dev https://golang.org/cl/1773041
This commit is contained in:
parent
c9f83372d8
commit
ccd28e8eb6
10 changed files with 268 additions and 141 deletions
|
|
@ -132,6 +132,9 @@ func getSysProcAddr(m uint32, pname string) uintptr {
|
|||
//sys CreateIoCompletionPort(filehandle int32, cphandle int32, key uint32, threadcnt uint32) (handle int32, errno int)
|
||||
//sys GetQueuedCompletionStatus(cphandle int32, qty *uint32, key *uint32, overlapped **Overlapped, timeout uint32) (ok bool, errno int)
|
||||
//sys GetTempPath(buflen uint32, buf *uint16) (n uint32, errno int) = GetTempPathW
|
||||
//sys CryptAcquireContext(provhandle *uint32, container *uint16, provider *uint16, provtype uint32, flags uint32) (ok bool, errno int) = advapi32.CryptAcquireContextW
|
||||
//sys CryptReleaseContext(provhandle uint32, flags uint32) (ok bool, errno int) = advapi32.CryptReleaseContext
|
||||
//sys CryptGenRandom(provhandle uint32, buflen uint32, buf *byte) (ok bool, errno int) = advapi32.CryptGenRandom
|
||||
|
||||
// syscall interface implementation for other packages
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue