.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * CRC32C |
---|
3 | 4 | *@Article{castagnoli-crc, |
---|
.. | .. |
---|
11 | 12 | * pages = {}, |
---|
12 | 13 | * month = {June}, |
---|
13 | 14 | *} |
---|
14 | | - * Used by the iSCSI driver, possibly others, and derived from the |
---|
| 15 | + * Used by the iSCSI driver, possibly others, and derived from |
---|
15 | 16 | * the iscsi-crc.c module of the linux-iscsi driver at |
---|
16 | 17 | * http://linux-iscsi.sourceforge.net. |
---|
17 | 18 | * |
---|
.. | .. |
---|
23 | 24 | * <endoflist> |
---|
24 | 25 | * |
---|
25 | 26 | * Copyright (c) 2004 Cisco Systems, Inc. |
---|
26 | | - * |
---|
27 | | - * This program is free software; you can redistribute it and/or modify it |
---|
28 | | - * under the terms of the GNU General Public License as published by the Free |
---|
29 | | - * Software Foundation; either version 2 of the License, or (at your option) |
---|
30 | | - * any later version. |
---|
31 | | - * |
---|
32 | 27 | */ |
---|
33 | 28 | |
---|
34 | 29 | #include <crypto/hash.h> |
---|
.. | .. |
---|
47 | 42 | int err; |
---|
48 | 43 | |
---|
49 | 44 | shash->tfm = tfm; |
---|
50 | | - shash->flags = 0; |
---|
51 | 45 | *ctx = crc; |
---|
52 | 46 | |
---|
53 | 47 | err = crypto_shash_update(shash, address, length); |
---|