mirror of
https://github.com/MariaDB/server.git
synced 2025-09-06 19:08:06 +03:00
ed25519: support empty password
This commit is contained in:
committed by
Oleksandr Byelkin
parent
583a5a79c9
commit
044d8c50c6
@@ -64,7 +64,7 @@ static int compute_password_digest(const char *pw, size_t pwlen,
|
||||
char *d, size_t *dlen)
|
||||
{
|
||||
unsigned char pk[CRYPTO_PUBLICKEYBYTES];
|
||||
if (*dlen < PASSWORD_LEN || pwlen == 0)
|
||||
if (*dlen < PASSWORD_LEN)
|
||||
return 1;
|
||||
*dlen= PASSWORD_LEN;
|
||||
crypto_sign_keypair(pk, (unsigned char*)pw, pwlen);
|
||||
|
Reference in New Issue
Block a user