Blame src/md5.h

Packit 015a35
/*****************************************************************************
Packit 015a35
 * md5.h: MD5 hash
Packit 015a35
 *****************************************************************************
Packit 015a35
 * Copyright © 2004-2011 VLC authors and VideoLAN
Packit 015a35
 *
Packit 015a35
 * Authors: Rémi Denis-Courmont
Packit 015a35
 *          Rafaël Carré
Packit 015a35
 *
Packit 015a35
 * This program is free software; you can redistribute it and/or modify it
Packit 015a35
 * under the terms of the GNU Lesser General Public License as published by
Packit 015a35
 * the Free Software Foundation; either version 2.1 of the License, or
Packit 015a35
 * (at your option) any later version.
Packit 015a35
 *
Packit 015a35
 * This program is distributed in the hope that it will be useful,
Packit 015a35
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 015a35
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Packit 015a35
 * GNU Lesser General Public License for more details.
Packit 015a35
 *
Packit 015a35
 * You should have received a copy of the GNU Lesser General Public License
Packit 015a35
 * along with this program; if not, write to the Free Software Foundation,
Packit 015a35
 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
Packit 015a35
 *****************************************************************************/
Packit 015a35
Packit 015a35
#ifndef LIBDVDREAD_MD5_H
Packit 015a35
#define LIBDVDREAD_MD5_H
Packit 015a35
Packit 015a35
#include <stdint.h>
Packit 015a35
Packit 015a35
/**
Packit 015a35
 * \file
Packit 015a35
 * This file defines functions and structures to compute MD5 digests
Packit 015a35
 */
Packit 015a35
Packit 015a35
struct md5_s
Packit 015a35
{
Packit 015a35
    uint32_t A, B, C, D;          /* chaining variables */
Packit 015a35
    uint32_t nblocks;
Packit 015a35
    uint8_t buf[64];
Packit 015a35
    int count;
Packit 015a35
};
Packit 015a35
Packit 015a35
void InitMD5( struct md5_s * );
Packit 015a35
void AddMD5( struct md5_s *, const void *, size_t );
Packit 015a35
void EndMD5( struct md5_s * );
Packit 015a35
Packit 015a35
#endif