]>
git.ipfire.org Git - thirdparty/openssl.git/blob - include/openssl/md2.h
2 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
11 # define OPENSSL_MD2_H
14 # include <openssl/macros.h>
15 # ifndef OPENSSL_NO_DEPRECATED_3_0
19 # include <openssl/opensslconf.h>
21 # ifndef OPENSSL_NO_MD2
27 typedef unsigned char MD2_INT
;
29 # define MD2_DIGEST_LENGTH 16
32 typedef struct MD2state_st
{
34 unsigned char data
[MD2_BLOCK
];
35 MD2_INT cksm
[MD2_BLOCK
];
36 MD2_INT state
[MD2_BLOCK
];
39 const char *MD2_options(void);
40 int MD2_Init(MD2_CTX
*c
);
41 int MD2_Update(MD2_CTX
*c
, const unsigned char *data
, size_t len
);
42 int MD2_Final(unsigned char *md
, MD2_CTX
*c
);
43 unsigned char *MD2(const unsigned char *d
, size_t n
, unsigned char *md
);