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

Remove superfluous memmove #59

Merged
merged 4 commits into from
Aug 31, 2021
Merged

Remove superfluous memmove #59

merged 4 commits into from
Aug 31, 2021

Conversation

yourslab
Copy link
Contributor

The existing SigV4 library has a copy operation in the internal processing buffer while generating the String to Sign. Instead of copying the hex encoded bytes of the Canonical Request data from a mid-location (right after the initial presence of the Canonical Request) to a location where the string-to-sign data can be stored in the beginning of the buffer, the copy operation can be avoided by storing the string-to-sign at the end of the processing buffer which will cause the processing buffer to contain information in of the String-To-Sign and Signing Key in the {<signing-key>, <string-to-sign>} order

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

muneebahmed10
muneebahmed10 previously approved these changes Aug 31, 2021
source/sigv4.c Show resolved Hide resolved
@yourslab yourslab merged commit 0820885 into aws:main Aug 31, 2021
markrtuttle pushed a commit to markrtuttle/SigV4-for-AWS-IoT-embedded-sdk that referenced this pull request Sep 2, 2021
Unit tests for OS Posix Interface
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.

3 participants