commit | 5d8eadd7b1aa19b1b33ce88f2a06ca57f6222c10 | [log] [tgz] |
---|---|---|
author | Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl> | Mon Aug 14 14:24:04 2017 +0200 |
committer | Anas Nashif <nashif@linux.intel.com> | Thu Aug 17 22:19:19 2017 -0400 |
tree | 08c28048505c7b505b253ebd3f9107d59f37ff3d | |
parent | 5d1fcfc24b0b3e81776485fdd51f692eff4149e7 [diff] |
drivers: crc: Add 'pad' parameter to crc16() 'pad' parameter controls whether crc16() should add padding at the end of input bytes or not. This allows to compute CRC16 for data stored in non-contiguous buffers where CRC value is calculated using subsequent calls to crc16() with padding added only for last chunk. Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>