File: md5.h

package info (click to toggle)
ghc 8.4.4%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 67,548 kB
  • sloc: haskell: 435,629; ansic: 62,017; sh: 6,706; python: 1,916; makefile: 1,014; perl: 465; asm: 315; xml: 196; yacc: 102; ruby: 84; lisp: 7
file content (18 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* MD5 message digest */
#pragma once

#include "HsFFI.h"

typedef HsWord32 word32;
typedef HsWord8  byte;

struct MD5Context {
        word32 buf[4];
        word32 bytes[2];
        word32 in[16];
};

void MD5Init(struct MD5Context *context);
void MD5Update(struct MD5Context *context, byte const *buf, int len);
void MD5Final(byte digest[16], struct MD5Context *context);
void MD5Transform(word32 buf[4], word32 const in[16]);