Reserve enough size for the ML-DSA public key in gen.

pull/521/head
David Garske 2024-12-05 14:44:30 -08:00
parent 6bed80fbc2
commit fae36f2adf
1 changed files with 1 additions and 1 deletions

View File

@ -979,7 +979,7 @@ static void keygen_ml_dsa(const char *priv_fname, uint32_t id_mask)
MlDsaKey key;
int ret;
byte * priv = NULL;
byte pub[KEYSTORE_PUBKEY_SIZE_ML_DSA];
byte pub[ML_DSA_L5_PUBKEY_SIZE]; /* max size */
word32 priv_len = 0;
word32 pub_len = 0;
int ml_dsa_priv_len = 0;