diff --git a/app/src/main/jni/vpnproxy-jni/crc32.c b/app/src/main/jni/vpnproxy-jni/crc32.c index 08e7c754..2b81869e 100644 --- a/app/src/main/jni/vpnproxy-jni/crc32.c +++ b/app/src/main/jni/vpnproxy-jni/crc32.c @@ -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 . + * + * 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 #include @@ -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; -} \ No newline at end of file +}