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

Make no_std work with aes-gcm no default features #20

Merged
merged 3 commits into from
Oct 7, 2023
Merged

Conversation

fadeevab
Copy link
Owner

@fadeevab fadeevab commented Oct 6, 2023

Problem: getrandom with std was linked
Cause: aes-gcm with default features
Measure: aes-gcm default-features = false

Also, concat doesn't work in no_std environment, fixed with manual slice concatting (introduces the max salt length :( ).

Fixing #19

Problem:  `getrandom` with `std` was linked
Cause: `aes-gcm` with default features
Measure: `aes-gcm` default-features = false

Also, `concat` doesn't work in `no_std` environment, fixed with manual
slice concatting (introduces the max salt length :( ).
Copy link
Contributor

@ProjectInitiative ProjectInitiative left a comment

Choose a reason for hiding this comment

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

Still need to test functionality, but I did successfully compiles this PR into a no_std, cortex-m environment.

Copy link
Contributor

Choose a reason for hiding this comment

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

I also came to this conclusion.

@fadeevab fadeevab merged commit 77ef133 into main Oct 7, 2023
@fadeevab fadeevab deleted the fix/nostd branch October 7, 2023 14:26
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