Skip to content

Commit

Permalink
Add ALIGN attribute to declaration of coins_with_domain_separator
Browse files Browse the repository at this point in the history
Signed-off-by: Rod Chapman <[email protected]>
  • Loading branch information
rod-chapman committed Nov 12, 2024
1 parent 86e3eac commit e392f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlkem/indcpa.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void indcpa_keypair_derand(uint8_t pk[MLKEM_INDCPA_PUBLICKEYBYTES],
polyvec a[MLKEM_K], e, pkpv, skpv;
polyvec_mulcache skpv_cache;

uint8_t coins_with_domain_separator[MLKEM_SYMBYTES + 1];
uint8_t coins_with_domain_separator[MLKEM_SYMBYTES + 1] ALIGN;
// Concatenate coins with MLKEM_K for domain separation of security levels
memcpy(coins_with_domain_separator, coins, MLKEM_SYMBYTES);
coins_with_domain_separator[MLKEM_SYMBYTES] = MLKEM_K;
Expand Down

0 comments on commit e392f06

Please sign in to comment.