EVP: Make the SIGNATURE implementation leaner
[openssl.git] / crypto / evp / legacy_md2.c
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 #ifndef OPENSSL_NO_MD2
13
14 # include <openssl/md2.h>
15 # include "crypto/evp.h"
16
17 static const EVP_MD md2_md = {
18     NID_md2,
19     NID_md2WithRSAEncryption,
20     MD2_DIGEST_LENGTH,
21     0,
22     NULL,
23     NULL,
24     NULL,
25     NULL,
26     NULL,
27     MD2_BLOCK,
28 };
29
30 const EVP_MD *EVP_md2(void)
31 {
32     return &md2_md;
33 }
34
35 #endif /* OPENSSL_NO_MD2 */