Improve copyright notice

This commit is contained in:
emanuele-f 2021-07-11 15:37:21 +02:00
parent 892599ce22
commit 0fe951396d

View File

@ -1,12 +1,25 @@
// //////////////////////////////////////////////////////////
// Crc32.cpp
// Copyright (c) 2011-2019 Stephan Brumme. All rights reserved.
// Slicing-by-16 contributed by Bulat Ziganshin
// Tableless bytewise CRC contributed by Hagai Gold
// see http://create.stephan-brumme.com/disclaimer.html
//
// Adapted from https://github.com/stbrumme/crc32/blob/master/Crc32.cpp - Emanuele Faranda
//
/*
* This file is part of PCAPdroid.
*
* PCAPdroid is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PCAPdroid is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PCAPdroid. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2021 - Emanuele Faranda
*
* Adapted from the slicing-by-4 implementation provided in
* https://github.com/stbrumme/crc32/blob/master/Crc32.cpp .
* Original Copyright (c) 2011-2019 Stephan Brumme.
*/
#include <endian.h>
#include <stdlib.h>
@ -190,4 +203,4 @@ uint32_t crc32(const void* data, size_t length, uint32_t crc) {
crc = (crc >> 8) ^ Crc32Lookup[0][(crc & 0xFF) ^ *currentChar++];
return ~crc;
}
}