2 * Copyright 1995-2021 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
10 #ifndef OSSL_PROV_MD5_SHA1_H
11 # define OSSL_PROV_MD5_SHA1_H
13 # include <openssl/opensslconf.h>
15 # ifndef OPENSSL_NO_MD5
16 # include <openssl/e_os2.h>
18 # include <openssl/md5.h>
19 # include <openssl/sha.h>
21 # define MD5_SHA1_DIGEST_LENGTH (MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH)
22 # define MD5_SHA1_CBLOCK MD5_CBLOCK
24 typedef struct md5_sha1_st {
29 int ossl_md5_sha1_init(MD5_SHA1_CTX *mctx);
30 int ossl_md5_sha1_update(MD5_SHA1_CTX *mctx, const void *data, size_t count);
31 int ossl_md5_sha1_final(unsigned char *md, MD5_SHA1_CTX *mctx);
32 int ossl_md5_sha1_ctrl(MD5_SHA1_CTX *mctx, int cmd, int mslen, void *ms);
34 # endif /* OPENSSL_NO_MD5 */
36 #endif /* OSSL_PROV_MD5_SHA1_H */