1 | /* |
2 | * Copyright 2015-2019 The OpenSSL Project Authors. All Rights Reserved. |
3 | * |
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 |
8 | */ |
9 | |
10 | #include <openssl/opensslconf.h> |
11 | |
12 | #include "prov/md5_sha1.h" /* diverse MD5_SHA1 macros */ |
13 | |
14 | #ifndef OPENSSL_NO_MD5 |
15 | |
16 | # include <openssl/obj_mac.h> |
17 | # include "crypto/evp.h" |
18 | |
19 | static const EVP_MD md5_sha1_md = { |
20 | NID_md5_sha1, |
21 | NID_md5_sha1, |
22 | MD5_SHA1_DIGEST_LENGTH, |
23 | 0, |
24 | NULL, |
25 | NULL, |
26 | NULL, |
27 | NULL, |
28 | NULL, |
29 | MD5_SHA1_CBLOCK, |
30 | }; |
31 | |
32 | const EVP_MD *EVP_md5_sha1(void) |
33 | { |
34 | return &md5_sha1_md; |
35 | } |
36 | |
37 | #endif /* OPENSSL_NO_MD5 */ |
38 | |