blob: c26318c01d9326ebb928a048ed095edcd7410c87 [file] [log] [blame]
Diego Biurrun04d7f602006-09-10 14:02:421/*
2 * copyright (c) 2006 Michael Niedermayer <[email protected]>
3 *
Mans Rullgard2912e872011-03-18 17:35:104 * This file is part of Libav.
Diego Biurrunb78e7192006-10-07 15:30:465 *
Mans Rullgard2912e872011-03-18 17:35:106 * Libav is free software; you can redistribute it and/or
Diego Biurrun04d7f602006-09-10 14:02:427 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
Diego Biurrunb78e7192006-10-07 15:30:469 * version 2.1 of the License, or (at your option) any later version.
Diego Biurrun04d7f602006-09-10 14:02:4210 *
Mans Rullgard2912e872011-03-18 17:35:1011 * Libav is distributed in the hope that it will be useful,
Diego Biurrun04d7f602006-09-10 14:02:4212 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
Mans Rullgard2912e872011-03-18 17:35:1017 * License along with Libav; if not, write to the Free Software
Diego Biurrun04d7f602006-09-10 14:02:4218 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
Stefano Sabatini98790382008-08-31 07:39:4721#ifndef AVUTIL_MD5_H
22#define AVUTIL_MD5_H
Michael Niedermayer94d85ea2006-07-01 10:02:0823
Måns Rullgård99545452007-06-16 22:59:1324#include <stdint.h>
25
Martin Storsjö9a92aea2012-10-11 12:08:0426#include "attributes.h"
27#include "version.h"
28
Luca Barbato757cd8d2011-11-20 19:38:2429/**
30 * @defgroup lavu_md5 MD5
31 * @ingroup lavu_crypto
32 * @{
33 */
34
Michael Niedermayer94d85ea2006-07-01 10:02:0835struct AVMD5;
36
Martin Storsjö9a92aea2012-10-11 12:08:0437struct AVMD5 *av_md5_alloc(void);
Michael Niedermayer94d85ea2006-07-01 10:02:0838void av_md5_init(struct AVMD5 *ctx);
39void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, const int len);
40void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
Ivo van Poorten93d6aeb2006-07-02 19:01:0941void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len);
Michael Niedermayer94d85ea2006-07-01 10:02:0842
Luca Barbato757cd8d2011-11-20 19:38:2443/**
44 * @}
45 */
46
Stefano Sabatini98790382008-08-31 07:39:4747#endif /* AVUTIL_MD5_H */