Skip to content

Commit

Permalink
Add more details comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yourslab committed Aug 31, 2021
1 parent 80c94f6 commit ab683e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/sigv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -2718,6 +2718,14 @@ static SigV4Status_t writeStringToSign( const SigV4Parameters_t * pParams,
ptrdiff_t bufferLen = pCanonicalContext->pBufCur - pBufStart;
/* An overestimate but sufficient memory is checked before proceeding. */
size_t encodedLen = SIGV4_PROCESSING_BUFFER_LENGTH;
/* The string to sign is composed of (+ means string concatenation):
* Algorithm + \n +
* RequestDateTime + \n +
* CredentialScope + \n +
* HashedCanonicalRequest
*
* The processing buffer is verified beforehand that it has enough
* space to hold this string. */
size_t sizeNeededBeforeHash = algorithmLen + 1U + \
SIGV4_ISO_STRING_LEN + 1U;

Expand Down

0 comments on commit ab683e8

Please sign in to comment.