]> git.codecow.com Git - Monocypher.git/commit
Change write orders in crypto_eddsa_key_pair
authorLoup Vaillant <loup@loup-vaillant.fr>
Thu, 12 Jan 2023 14:23:17 +0000 (15:23 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Thu, 12 Jan 2023 14:34:53 +0000 (15:34 +0100)
commit65e8248b46539979d2000dfa10fb552861a46c60
tree7be854814e42a4796b738e9d4ea85b419a55c1db
parent7d38a1ae38bf6904ac768e83fa39463cd3835730
Change write orders in crypto_eddsa_key_pair

It's mostly for clarity.  Before, writes to secret_key and public_key
were interleaved.  Now we use a simpler ordering:

- The seed is wiped first.
- Then we write the entire private key (including the public half)
- Then we write the public key.
src/monocypher.c