Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[aes] Connect EDN interface #700

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vogelpi
Copy link

@vogelpi vogelpi commented Jan 20, 2025

This PR connects the entropy distribution network (EDN) interface of AES to a Trivium stream cipher primitive which can be reseeded by firmware. The stream cipher primitive is required to decouple AES from firmware as AES can repeatedly request fresh entropy via the EDN interface while doing encryptions/decryptions. This entropy is required for the internal masking SCA countermeasure.

Signed-off-by: Pirmin Vogel <[email protected]>
Copy link

CLA Not Signed

default swmod = true;

field {desc = "Entropy Interface Seed field";} ENTROPY_IF_SEED[32];
} ENTROPY_IF_SEED @0x00000110;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"firmware has to perform 9 subsequent writes to the register."
To address this requirement, could you increase this register to 9 dwords? and then firmware will write 9*32 bits seed to this address?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mojtaba-bisheh , thanks for the feedback!

Yes, that is possible at the cost of additional area (Instead of 320 FFs, we will need 576 FFs).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np, that makes the seed interface like other blocks from a firmware perspective.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, sounds good. I'll change the implementation accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants