mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
fixed identity creation bug which was allowing first nybl of SID == 0.
This commit is contained in:
parent
e5153db2e2
commit
6f09128d9c
@ -852,7 +852,7 @@ keyring_identity *keyring_create_identity(keyring_file *k,keyring_context *c,
|
||||
/* Filter out public keys that start with 0x0, as they are reserved for address
|
||||
abbreviation. */
|
||||
id->keypairs[0]->public_key[0]=0;
|
||||
while(id->keypairs[0]->public_key[0]==0)
|
||||
while(id->keypairs[0]->public_key[0]<0x10)
|
||||
crypto_box_curve25519xsalsa20poly1305_keypair(id->keypairs[0]->public_key,
|
||||
id->keypairs[0]->private_key);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user