[BACK]Return to md4.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / rsync

Annotation of src/usr.bin/rsync/md4.h, Revision 1.1

1.1     ! benno       1: /*
        !             2:  * This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.
        !             3:  * MD4 Message-Digest Algorithm (RFC 1320).
        !             4:  *
        !             5:  * Homepage:
        !             6:  * http://openwall.info/wiki/people/solar/software/public-domain-source-code/md4
        !             7:  *
        !             8:  * Author:
        !             9:  * Alexander Peslyak, better known as Solar Designer <solar at openwall.com>
        !            10:  *
        !            11:  * This software was written by Alexander Peslyak in 2001.  No copyright is
        !            12:  * claimed, and the software is hereby placed in the public domain.
        !            13:  * In case this attempt to disclaim copyright and place the software in the
        !            14:  * public domain is deemed null and void, then the software is
        !            15:  * Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
        !            16:  * general public under the following terms:
        !            17:  *
        !            18:  * Redistribution and use in source and binary forms, with or without
        !            19:  * modification, are permitted.
        !            20:  *
        !            21:  * There's ABSOLUTELY NO WARRANTY, express or implied.
        !            22:  *
        !            23:  * See md4.c for more information.
        !            24:  */
        !            25:
        !            26: #ifndef MD4_H
        !            27: #define MD4_H
        !            28:
        !            29: #define        MD4_DIGEST_LENGTH               16
        !            30:
        !            31: /* Any 32-bit or wider unsigned integer data type will do */
        !            32: typedef unsigned int MD4_u32plus;
        !            33:
        !            34: typedef struct {
        !            35:        MD4_u32plus lo, hi;
        !            36:        MD4_u32plus a, b, c, d;
        !            37:        unsigned char buffer[64];
        !            38:        MD4_u32plus block[16];
        !            39: } MD4_CTX;
        !            40:
        !            41: __BEGIN_DECLS
        !            42:
        !            43: extern void MD4_Init(MD4_CTX *ctx);
        !            44: extern void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size);
        !            45: extern void MD4_Final(unsigned char *result, MD4_CTX *ctx);
        !            46:
        !            47: __END_DECLS
        !            48:
        !            49: #endif