trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

move crc implementation to crypto lib

Open TychoVrahe opened this issue 1 year ago • 0 comments

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

TychoVrahe avatar Feb 12 '24 11:02 TychoVrahe