aws_sig_verify crate provides AWS SigV4 verification routines.
This is not the library you want if you just want to call AWS services
or other services that use AWS SigV4 signatures.
Rusoto already has a library,
rusoto_signature, that provides this
If you are attempting to perform AWS SigV4 verification using AWS-vended credentials, this library also will not work for you. You need the caller's secret key (or a derivative), and AWS does not allow this for obvious reasons. Instead, you should be using API Gateway with IAM authentication.
On the other hand, if you have your own ecosystem of AWS-like credentials and are developing mock-AWS services or just really like AWS SigV4 but can't run within AWS, this library might be for you.
The implementation of the standard AWS SigV4 algorithm.
Principal for a given access key
A data structure containing the elements of the request (some client-supplied, some service-supplied) involved in the SigV4 verification process.
Error returned when an attempt at validating an AWS SigV4 signature fails.
The possible reasons for an AWS SigV4 signature validation to fail; returned as part of SignatureError.
The types of signing key available.
Trait for calculating various attributes of a SigV4 signature according to variants of the SigV4 algorithm.
Normalizes the specified URI path, removing redundant slashes and relative path components.
Normalize the query parameters by normalizing the keys and values of each
parameter and return a
Normalize the path component according to RFC 3986. This performs the following operations:
The function that returns a signing key of a given type.