( secretAccessKey: string, dateStamp: string, region: string, service: string, )
| 64 | // Exported for tests against AWS's published signing-key vector. |
| 65 | // Not part of the package's public surface. |
| 66 | export function signingKey( |
| 67 | secretAccessKey: string, |
| 68 | dateStamp: string, |
| 69 | region: string, |
| 70 | service: string, |
| 71 | ): Uint8Array { |
| 72 | const kDate = hmac(`AWS4${secretAccessKey}`, dateStamp); |
| 73 | const kRegion = hmac(kDate, region); |
| 74 | const kService = hmac(kRegion, service); |
| 75 | return hmac(kService, "aws4_request"); |
| 76 | } |
| 77 | |
| 78 | export interface PresignOptions { |
| 79 | // Bucket endpoint origin, e.g. |
no test coverage detected