mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Use explicitly Unicode Win32 APIs.
This commit is contained in:
@@ -155,8 +155,8 @@ randombytes_salsa20_random_init(void)
|
||||
stream.nonce = sodium_hrtime();
|
||||
assert(stream.nonce != (uint64_t) 0U);
|
||||
|
||||
if (! CryptAcquireContext(&stream.hcrypt_prov, NULL, NULL,
|
||||
PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
|
||||
if (! CryptAcquireContextW(&stream.hcrypt_prov, NULL, NULL,
|
||||
PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,8 +141,8 @@ randombytes_sysrandom_init(void)
|
||||
static void
|
||||
randombytes_sysrandom_init(void)
|
||||
{
|
||||
if (! CryptAcquireContext(&stream.hcrypt_prov, NULL, NULL,
|
||||
PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
|
||||
if (! CryptAcquireContextW(&stream.hcrypt_prov, NULL, NULL,
|
||||
PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user