Use explicitly Unicode Win32 APIs.
This commit is contained in:
parent
63a7e26499
commit
4ab3d21529
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user