#include "zipint.h"
#include <windows.h>
#include <wincrypt.h>
#include <stdlib.h>
Go to the source code of this file.
◆ zip_random_uint32()
Definition at line 66 of file zip_random_win32.c.
67 static bool seeded =
false;
static static fork const void static count static fd const char const char static newpath char char char static envp time
ZIP_EXTERN bool zip_secure_random(zip_uint8_t *buffer, zip_uint16_t length)
References NULL, time, value, and zip_secure_random().
◆ zip_secure_random()
Definition at line 47 of file zip_random_win32.c.
49 if (!CryptAcquireContext(&hprov,
NULL,
NULL, PROV_RSA_AES, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
55 if (!CryptReleaseContext(hprov, 0)) {
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
References length, and NULL.
Referenced by zip_random_uint32().