Fold in from external repo an impl of the AWS signing algo version 4.