1*66bae5e7Schristos /*
2*66bae5e7Schristos * Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved.
3*66bae5e7Schristos *
4*66bae5e7Schristos * Licensed under the Apache License 2.0 (the "License"). You may not use
5*66bae5e7Schristos * this file except in compliance with the License. You can obtain a copy
6*66bae5e7Schristos * in the file LICENSE in the source distribution or at
7*66bae5e7Schristos * https://www.openssl.org/source/license.html
8*66bae5e7Schristos */
9*66bae5e7Schristos
10*66bae5e7Schristos /*
11*66bae5e7Schristos * MD5 low level APIs are deprecated for public use, but still ok for
12*66bae5e7Schristos * internal use.
13*66bae5e7Schristos */
14*66bae5e7Schristos #include "internal/deprecated.h"
15*66bae5e7Schristos
16*66bae5e7Schristos #include <openssl/md5.h>
17*66bae5e7Schristos #include "crypto/evp.h"
18*66bae5e7Schristos #include "legacy_meth.h"
19*66bae5e7Schristos
20*66bae5e7Schristos IMPLEMENT_LEGACY_EVP_MD_METH(md5, MD5)
21*66bae5e7Schristos
22*66bae5e7Schristos static const EVP_MD md5_md = {
23*66bae5e7Schristos NID_md5,
24*66bae5e7Schristos NID_md5WithRSAEncryption,
25*66bae5e7Schristos MD5_DIGEST_LENGTH,
26*66bae5e7Schristos 0,
27*66bae5e7Schristos EVP_ORIG_GLOBAL,
28*66bae5e7Schristos LEGACY_EVP_MD_METH_TABLE(md5_init, md5_update, md5_final, NULL, MD5_CBLOCK)
29*66bae5e7Schristos };
30*66bae5e7Schristos
EVP_md5(void)31*66bae5e7Schristos const EVP_MD *EVP_md5(void)
32*66bae5e7Schristos {
33*66bae5e7Schristos return &md5_md;
34*66bae5e7Schristos }
35