diff --git a/packages/middleware-flexible-checksums/src/types.ts b/packages/middleware-flexible-checksums/src/types.ts index 0b768a74e57d..f3fe77892318 100644 --- a/packages/middleware-flexible-checksums/src/types.ts +++ b/packages/middleware-flexible-checksums/src/types.ts @@ -12,11 +12,10 @@ export const CLIENT_SUPPORTED_ALGORITHMS = [ /** * Priority order for validating checksum algorithm. A faster algorithm has higher priority. - * ToDo: update the priority order based on profiling of JavaScript implementations. */ export const PRIORITY_ORDER_ALGORITHMS = [ + ChecksumAlgorithm.SHA256, + ChecksumAlgorithm.SHA1, ChecksumAlgorithm.CRC32, ChecksumAlgorithm.CRC32C, - ChecksumAlgorithm.SHA1, - ChecksumAlgorithm.SHA256, ];