Prune low-level ASN.1 parse errors from error queue in decoder_process()
[openssl.git] / providers / encoders.inc
1 /*
2  * Copyright 2020 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 #ifndef ENCODER
11 # error Macro ENCODER undefined
12 #endif
13
14     ENCODER("RSA", "yes", "text", rsa_to_text_encoder_functions),
15     ENCODER("RSA", "yes", "der", rsa_to_der_encoder_functions),
16     ENCODER("RSA", "yes", "pem", rsa_to_pem_encoder_functions),
17     ENCODER("RSA-PSS", "yes", "text", rsapss_to_text_encoder_functions),
18     ENCODER("RSA-PSS", "yes", "der", rsapss_to_der_encoder_functions),
19     ENCODER("RSA-PSS", "yes", "pem", rsapss_to_pem_encoder_functions),
20
21 #ifndef OPENSSL_NO_DH
22     ENCODER("DH", "yes", "text", dh_to_text_encoder_functions),
23     ENCODER("DH", "yes", "der", dh_to_der_encoder_functions),
24     ENCODER("DH", "yes", "pem", dh_to_pem_encoder_functions),
25
26     ENCODER("DHX", "yes", "text", dhx_to_text_encoder_functions),
27     ENCODER("DHX", "yes", "der", dhx_to_der_encoder_functions),
28     ENCODER("DHX", "yes", "pem", dhx_to_pem_encoder_functions),
29 #endif
30
31 #ifndef OPENSSL_NO_DSA
32     ENCODER("DSA", "yes", "text", dsa_to_text_encoder_functions),
33     ENCODER("DSA", "yes", "der", dsa_to_der_encoder_functions),
34     ENCODER("DSA", "yes", "pem", dsa_to_pem_encoder_functions),
35 #endif
36
37 #ifndef OPENSSL_NO_EC
38     ENCODER("X25519", "yes", "text", x25519_to_text_encoder_functions),
39     ENCODER("X25519", "yes", "der", x25519_to_der_encoder_functions),
40     ENCODER("X25519", "yes", "pem", x25519_to_pem_encoder_functions),
41
42     ENCODER("X448", "yes", "text", x448_to_text_encoder_functions),
43     ENCODER("X448", "yes", "der", x448_to_der_encoder_functions),
44     ENCODER("X448", "yes", "pem", x448_to_pem_encoder_functions),
45
46     ENCODER("ED25519", "yes", "text", ed25519_to_text_encoder_functions),
47     ENCODER("ED25519", "yes", "der", ed25519_to_der_encoder_functions),
48     ENCODER("ED25519", "yes", "pem", ed25519_to_pem_encoder_functions),
49
50     ENCODER("ED448", "yes", "text", ed448_to_text_encoder_functions),
51     ENCODER("ED448", "yes", "der", ed448_to_der_encoder_functions),
52     ENCODER("ED448", "yes", "pem", ed448_to_pem_encoder_functions),
53
54     ENCODER("EC", "yes", "text", ec_to_text_encoder_functions),
55     ENCODER("EC", "yes", "der", ec_to_der_encoder_functions),
56     ENCODER("EC", "yes", "pem", ec_to_pem_encoder_functions),
57 #endif