Skip to content

Commit

Permalink
Reserve enough size for the ML-DSA public key in gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Dec 5, 2024
1 parent 6bed80f commit fae36f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/keytools/keygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fae36f2

Please sign in to comment.