Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

portabillity: Make unnecessary VLA into statically sized array#35

Merged
mczraf merged 1 commit intointel:masterfrom
mped-oticon:issue30_vla
Nov 21, 2018
Merged

portabillity: Make unnecessary VLA into statically sized array#35
mczraf merged 1 commit intointel:masterfrom
mped-oticon:issue30_vla

Conversation

@mped-oticon
Copy link
Copy Markdown
Contributor

Fixes Issue #30.

@mped-oticon
Copy link
Copy Markdown
Contributor Author

@mczraf ping

@mczraf
Copy link
Copy Markdown
Contributor

mczraf commented Nov 19, 2018

The intent of this feature is to prevent leakage through side-channel timing attacks. Your patch looks good, except for the fact it declares the variables dummy_key and dummy_state only if (key_size <= TC_SHA256_BLOCK_SIZE). It would be preferable if such declarations are made regardless of the key_size, i.e. before the if-clause. Please let me know if you can update your patch with this modification. Thanks!

@mczraf mczraf force-pushed the master branch 2 times, most recently from 4fb05d5 to 323cd15 Compare November 20, 2018 00:22
@mped-oticon
Copy link
Copy Markdown
Contributor Author

@mczraf done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants