]>
git.ipfire.org Git - people/ms/u-boot.git/blob - lib/crc8.c
2 * Copyright (c) 2013 Google, Inc
4 * SPDX-License-Identifier: GPL-2.0+
7 #include "linux/crc8.h"
9 unsigned int crc8(const unsigned char *vptr
, int len
)
11 const unsigned char *data
= vptr
;
15 for (j
= len
; j
; j
--, data
++) {
24 return (crc
>> 8) & 0xff;