Minor fix to keysSet atomic_bool
This commit is contained in:
parent
e644cd86b1
commit
e66e6c7b74
1 changed files with 1 additions and 0 deletions
|
@ -2307,6 +2307,7 @@ int UDPC_set_libsodium_keys(UDPC_HContext ctx, unsigned char *sk, unsigned char
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c->keysSet.store(false);
|
||||||
std::memcpy(c->sk, sk, crypto_sign_SECRETKEYBYTES);
|
std::memcpy(c->sk, sk, crypto_sign_SECRETKEYBYTES);
|
||||||
std::memcpy(c->pk, pk, crypto_sign_PUBLICKEYBYTES);
|
std::memcpy(c->pk, pk, crypto_sign_PUBLICKEYBYTES);
|
||||||
c->keysSet.store(true);
|
c->keysSet.store(true);
|
||||||
|
|
Loading…
Reference in a new issue