trezor-firmware
trezor-firmware copied to clipboard
move crc implementation to crypto lib
We have crc32 implementation in embed/extmod/modtrezorcrypto/crc.c and crc16 comming https://github.com/trezor/trezor-firmware/pull/3228 is inside storage module. We should move it probably to crypto, possibly while making it more flexible with regards to polynomial, init value and xoring.
Consider also using HW acceleration for CRC.
reference: https://github.com/trezor/trezor-firmware/pull/3228#issuecomment-1926848630 https://github.com/trezor/trezor-firmware/pull/3228#discussion_r1478472148