Fix kyber commands bugs

This commit is contained in:
Zhi Guan
2026-01-12 21:53:39 +08:00
parent 3afd4a047b
commit de57d7fce1
5 changed files with 19 additions and 14 deletions

View File

@@ -715,6 +715,7 @@ int kyber_cpa_private_key_to_bytes(const KYBER_CPA_KEY *key, uint8_t **out, size
}
if (out && *out) {
memcpy(*out, key->s, sizeof(key->s));
*out += sizeof(key->s);
}
*outlen += sizeof(key->s);
return 1;