/*1* copyright (c) 2006 Mans Rullgard2*3* This file is part of FFmpeg.4*5* FFmpeg is free software; you can redistribute it and/or6* modify it under the terms of the GNU Lesser General Public7* License as published by the Free Software Foundation; either8* version 2.1 of the License, or (at your option) any later version.9*10* FFmpeg is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU13* Lesser General Public License for more details.14*15* You should have received a copy of the GNU Lesser General Public16* License along with FFmpeg; if not, write to the Free Software17* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA18*/1920#ifndef AVUTIL_ADLER32_H21#define AVUTIL_ADLER32_H2223#include <stdint.h>24#include "attributes.h"2526/**27* @file28* Public header for libavutil Adler32 hasher29*30* @defgroup lavu_adler32 Adler3231* @ingroup lavu_crypto32* @{33*/3435/**36* Calculate the Adler32 checksum of a buffer.37*38* Passing the return value to a subsequent av_adler32_update() call39* allows the checksum of multiple buffers to be calculated as though40* they were concatenated.41*42* @param adler initial checksum value43* @param buf pointer to input buffer44* @param len size of input buffer45* @return updated checksum46*/47unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf,48unsigned int len) av_pure;4950/**51* @}52*/5354#endif /* AVUTIL_ADLER32_H */555657