microsoft / sarif-pattern-matcher

Quality domain agnostic regular expression pattern matcher that persists results to SARIF
MIT License
39 stars 18 forks source link

Expand the Crc32 class by adding support for Castagnoli's polynomial #755

Closed LingZhou-gh closed 1 year ago

LingZhou-gh commented 1 year ago

Changes

The static validator of Yandex Cloud Iam Access Secret needs to use Castagnoli's polynomial in Crc32 checksum computation. This change expands the Crc32 class by adding support for Castagnoli's polynomial without affecting the existing public methods and their reference. The default crc32 polynomial will be IEEE polynomial.