#include "Include_i.h"
Macros | |
#define | LOG_CLASS "AwsV4Signer" |
Functions | |
STATUS | generateAwsSigV4Signature (PRequestInfo pRequestInfo, PCHAR dateTimeStr, BOOL authHeaders, PCHAR *ppSigningInfo, PUINT32 pSigningInfoLen) |
STATUS | signAwsRequestInfo (PRequestInfo pRequestInfo) |
Signs a request by appending SigV4 headers. More... | |
STATUS | signAwsRequestInfoQueryParam (PRequestInfo pRequestInfo) |
Signs a request by appending SigV4 query param. More... | |
STATUS | getCanonicalQueryParams (PCHAR pUrl, UINT32 urlLen, BOOL uriEncode, PCHAR *ppQuery, PUINT32 pQueryLen) |
STATUS | generateCanonicalRequestString (PRequestInfo pRequestInfo, PCHAR pRequestStr, PUINT32 pRequestLen) |
STATUS | generateCanonicalHeaders (PRequestInfo pRequestInfo, PCHAR pCanonicalHeaders, PUINT32 pCanonicalHeadersLen) |
STATUS | generateSignedHeaders (PRequestInfo pRequestInfo, PCHAR pSignedHeaders, PUINT32 pSignedHeadersLen) |
STATUS | generateSignatureDateTime (UINT64 currentTime, PCHAR pDateTimeStr) |
STATUS | generateCredentialScope (PRequestInfo pRequestInfo, PCHAR dateTimeStr, PCHAR pScope, PUINT32 pScopeLen) |
STATUS | generateEncodedCredentials (PRequestInfo pRequestInfo, PCHAR dateTimeStr, PCHAR pCreds, PUINT32 pCredsLen) |
STATUS | getRequestHost (PCHAR pUrl, PCHAR *ppStart, PCHAR *ppEnd) |
Gets a request host string. More... | |
STATUS | getCanonicalUri (PCHAR pUrl, UINT32 len, PCHAR *ppStart, PCHAR *ppEnd, PBOOL pDefault) |
STATUS | uriEncodeString (PCHAR pSrc, UINT32 srcLen, PCHAR pDst, PUINT32 pDstLen) |
STATUS | uriDecodeString (PCHAR pSrc, UINT32 srcLen, PCHAR pDst, PUINT32 pDstLen) |
PCHAR | getRequestVerbString (HTTP_REQUEST_VERB verb) |
STATUS | generateRequestHmac (PBYTE key, UINT32 keyLen, PBYTE message, UINT32 messageLen, PBYTE outBuffer, PUINT32 pHmacLen) |
STATUS | hexEncodedSha256 (PBYTE pMessage, UINT32 size, PCHAR pEncodedHash) |
#define LOG_CLASS "AwsV4Signer" |
Kinesis Video Producer AWS V4 Signer functionality
STATUS generateAwsSigV4Signature | ( | PRequestInfo | pRequestInfo, |
PCHAR | dateTimeStr, | ||
BOOL | authHeaders, | ||
PCHAR * | ppSigningInfo, | ||
PUINT32 | pSigningInfoLen | ||
) |
Generates the AWS signature.
IMPORTANT: The length of the buffer passed in is not enforced - it's assumed to have been allocated with enough storage from the previous call with NULL param.
STATUS generateCanonicalHeaders | ( | PRequestInfo | pRequestInfo, |
PCHAR | pCanonicalHeaders, | ||
PUINT32 | pCanonicalHeadersLen | ||
) |
STATUS generateCanonicalRequestString | ( | PRequestInfo | pRequestInfo, |
PCHAR | pRequestStr, | ||
PUINT32 | pRequestLen | ||
) |
Create a canonical request string for signing
Info: http://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html
pRequestInfo |
STATUS generateCredentialScope | ( | PRequestInfo | pRequestInfo, |
PCHAR | dateTimeStr, | ||
PCHAR | pScope, | ||
PUINT32 | pScopeLen | ||
) |
STATUS generateEncodedCredentials | ( | PRequestInfo | pRequestInfo, |
PCHAR | dateTimeStr, | ||
PCHAR | pCreds, | ||
PUINT32 | pCredsLen | ||
) |
STATUS generateRequestHmac | ( | PBYTE | key, |
UINT32 | keyLen, | ||
PBYTE | message, | ||
UINT32 | messageLen, | ||
PBYTE | outBuffer, | ||
PUINT32 | pHmacLen | ||
) |
STATUS generateSignatureDateTime | ( | UINT64 | currentTime, |
PCHAR | pDateTimeStr | ||
) |
STATUS generateSignedHeaders | ( | PRequestInfo | pRequestInfo, |
PCHAR | pSignedHeaders, | ||
PUINT32 | pSignedHeadersLen | ||
) |
STATUS getCanonicalQueryParams | ( | PCHAR | pUrl, |
UINT32 | urlLen, | ||
BOOL | uriEncode, | ||
PCHAR * | ppQuery, | ||
PUINT32 | pQueryLen | ||
) |
STATUS getCanonicalUri | ( | PCHAR | pUrl, |
UINT32 | len, | ||
PCHAR * | ppStart, | ||
PCHAR * | ppEnd, | ||
PBOOL | pDefault | ||
) |
PCHAR getRequestVerbString | ( | HTTP_REQUEST_VERB | verb | ) |
STATUS hexEncodedSha256 | ( | PBYTE | pMessage, |
UINT32 | size, | ||
PCHAR | pEncodedHash | ||
) |
STATUS uriDecodeString | ( | PCHAR | pSrc, |
UINT32 | srcLen, | ||
PCHAR | pDst, | ||
PUINT32 | pDstLen | ||
) |
STATUS uriEncodeString | ( | PCHAR | pSrc, |
UINT32 | srcLen, | ||
PCHAR | pDst, | ||
PUINT32 | pDstLen | ||
) |