State wipe

This commit is contained in:
Frank Denis
2026-04-09 23:00:05 +02:00
parent 758bb4a4de
commit d022f2d637
@@ -50,6 +50,7 @@ combiner(unsigned char ss[crypto_kem_xwing_SHAREDSECRETBYTES],
crypto_hash_sha3256_update(&state, pk_x25519, crypto_scalarmult_curve25519_BYTES);
crypto_hash_sha3256_update(&state, xwing_label, sizeof xwing_label);
crypto_hash_sha3256_final(&state, ss);
sodium_memzero(&state, sizeof state);
}
size_t