2020-08-17 03:25:08 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef ENCODER
|
|
|
|
# error Macro ENCODER undefined
|
|
|
|
#endif
|
|
|
|
|
2020-09-07 18:25:17 +08:00
|
|
|
ENCODER("RSA", "yes", "text", "private",
|
|
|
|
rsa_priv_to_text_encoder_functions),
|
|
|
|
ENCODER("RSA", "yes", "text", "public",
|
|
|
|
rsa_pub_to_text_encoder_functions),
|
|
|
|
ENCODER("RSA", "yes", "der", "private",
|
|
|
|
rsa_priv_to_der_encoder_functions),
|
|
|
|
ENCODER("RSA", "yes", "der", "public",
|
|
|
|
rsa_pub_to_der_encoder_functions),
|
|
|
|
ENCODER("RSA", "yes", "pem", "private",
|
|
|
|
rsa_priv_to_pem_encoder_functions),
|
|
|
|
ENCODER("RSA", "yes", "pem", "public",
|
|
|
|
rsa_pub_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("RSA-PSS", "yes", "text", "private",
|
2020-09-07 18:25:17 +08:00
|
|
|
rsa_priv_to_text_encoder_functions),
|
|
|
|
ENCODER("RSA-PSS", "yes", "text", "public",
|
|
|
|
rsa_pub_to_text_encoder_functions),
|
|
|
|
ENCODER("RSA-PSS", "yes", "der", "private",
|
|
|
|
rsa_priv_to_der_encoder_functions),
|
|
|
|
ENCODER("RSA-PSS", "yes", "der", "public",
|
|
|
|
rsa_pub_to_der_encoder_functions),
|
|
|
|
ENCODER("RSA-PSS", "yes", "pem", "private",
|
|
|
|
rsa_priv_to_pem_encoder_functions),
|
|
|
|
ENCODER("RSA-PSS", "yes", "pem", "public",
|
|
|
|
rsa_pub_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
|
|
|
|
#ifndef OPENSSL_NO_DH
|
2020-09-07 18:25:17 +08:00
|
|
|
ENCODER("DH", "yes", "text", "private",
|
|
|
|
dh_priv_to_text_encoder_functions),
|
|
|
|
ENCODER("DH", "yes", "text", "public",
|
|
|
|
dh_pub_to_text_encoder_functions),
|
|
|
|
ENCODER("DH", "yes", "text", "parameters",
|
|
|
|
dh_param_to_text_encoder_functions),
|
|
|
|
ENCODER("DH", "yes", "der", "private",
|
|
|
|
dh_priv_to_der_encoder_functions),
|
|
|
|
ENCODER("DH", "yes", "der", "public",
|
|
|
|
dh_pub_to_der_encoder_functions),
|
|
|
|
ENCODER("DH", "yes", "der", "parameters",
|
|
|
|
dh_param_to_der_encoder_functions),
|
|
|
|
ENCODER("DH", "yes", "pem", "private",
|
|
|
|
dh_priv_to_pem_encoder_functions),
|
|
|
|
ENCODER("DH", "yes", "pem", "public",
|
|
|
|
dh_pub_to_pem_encoder_functions),
|
|
|
|
ENCODER("DH", "yes", "pem", "parameters",
|
|
|
|
dh_param_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
|
2020-09-07 18:25:17 +08:00
|
|
|
ENCODER("DHX", "yes", "text", "private",
|
|
|
|
dh_priv_to_text_encoder_functions),
|
|
|
|
ENCODER("DHX", "yes", "text", "public",
|
|
|
|
dh_pub_to_text_encoder_functions),
|
|
|
|
ENCODER("DHX", "yes", "text", "parameters",
|
|
|
|
dh_param_to_text_encoder_functions),
|
|
|
|
ENCODER("DHX", "yes", "der", "private",
|
|
|
|
dh_priv_to_der_encoder_functions),
|
|
|
|
ENCODER("DHX", "yes", "der", "public",
|
|
|
|
dh_pub_to_der_encoder_functions),
|
|
|
|
ENCODER("DHX", "yes", "der", "parameters",
|
|
|
|
dh_param_to_der_encoder_functions),
|
|
|
|
ENCODER("DHX", "yes", "pem", "private",
|
|
|
|
dh_priv_to_pem_encoder_functions),
|
|
|
|
ENCODER("DHX", "yes", "pem", "public",
|
|
|
|
dh_pub_to_pem_encoder_functions),
|
|
|
|
ENCODER("DHX", "yes", "pem", "parameters",
|
|
|
|
dh_param_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OPENSSL_NO_DSA
|
2020-09-07 18:25:17 +08:00
|
|
|
ENCODER("DSA", "yes", "text", "private",
|
|
|
|
dsa_priv_to_text_encoder_functions),
|
|
|
|
ENCODER("DSA", "yes", "text", "public",
|
|
|
|
dsa_pub_to_text_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("DSA", "yes", "text", "parameters",
|
2020-09-07 18:25:17 +08:00
|
|
|
dsa_param_to_text_encoder_functions),
|
|
|
|
ENCODER("DSA", "yes", "der", "private",
|
|
|
|
dsa_priv_to_der_encoder_functions),
|
|
|
|
ENCODER("DSA", "yes", "der", "public",
|
|
|
|
dsa_pub_to_der_encoder_functions),
|
|
|
|
ENCODER("DSA", "yes", "der", "parameters",
|
|
|
|
dsa_param_to_der_encoder_functions),
|
|
|
|
ENCODER("DSA", "yes", "pem", "private",
|
|
|
|
dsa_priv_to_pem_encoder_functions),
|
|
|
|
ENCODER("DSA", "yes", "pem", "public",
|
|
|
|
dsa_pub_to_pem_encoder_functions),
|
|
|
|
ENCODER("DSA", "yes", "pem", "parameters",
|
|
|
|
dsa_param_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef OPENSSL_NO_EC
|
|
|
|
ENCODER("X25519", "yes", "text", "private",
|
2020-09-07 18:25:17 +08:00
|
|
|
x25519_priv_to_text_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("X25519", "yes", "text", "public",
|
2020-09-07 18:25:17 +08:00
|
|
|
x25519_pub_to_text_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("X25519", "yes", "der", "private",
|
2020-09-07 18:25:17 +08:00
|
|
|
x25519_priv_to_der_encoder_functions),
|
|
|
|
ENCODER("X25519", "yes", "der", "public",
|
|
|
|
x25519_pub_to_der_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("X25519", "yes", "pem", "private",
|
2020-09-07 18:25:17 +08:00
|
|
|
x25519_priv_to_pem_encoder_functions),
|
|
|
|
ENCODER("X25519", "yes", "pem", "public",
|
|
|
|
x25519_pub_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
|
2020-09-07 18:25:17 +08:00
|
|
|
ENCODER("X448", "yes", "text", "private",
|
|
|
|
x448_priv_to_text_encoder_functions),
|
|
|
|
ENCODER("X448", "yes", "text", "public",
|
|
|
|
x448_pub_to_text_encoder_functions),
|
|
|
|
ENCODER("X448", "yes", "der", "private",
|
|
|
|
x448_priv_to_der_encoder_functions),
|
|
|
|
ENCODER("X448", "yes", "der", "public",
|
|
|
|
x448_pub_to_der_encoder_functions),
|
|
|
|
ENCODER("X448", "yes", "pem", "private",
|
|
|
|
x448_priv_to_pem_encoder_functions),
|
|
|
|
ENCODER("X448", "yes", "pem", "public",
|
|
|
|
x448_pub_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
|
|
|
|
ENCODER("ED25519", "yes", "text", "private",
|
2020-09-07 18:25:17 +08:00
|
|
|
ed25519_priv_to_text_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("ED25519", "yes", "text", "public",
|
2020-09-07 18:25:17 +08:00
|
|
|
ed25519_pub_to_text_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("ED25519", "yes", "der", "private",
|
2020-09-07 18:25:17 +08:00
|
|
|
ed25519_priv_to_der_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("ED25519", "yes", "der", "public",
|
2020-09-07 18:25:17 +08:00
|
|
|
ed25519_pub_to_der_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("ED25519", "yes", "pem", "private",
|
2020-09-07 18:25:17 +08:00
|
|
|
ed25519_priv_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
ENCODER("ED25519", "yes", "pem", "public",
|
2020-09-07 18:25:17 +08:00
|
|
|
ed25519_pub_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
|
2020-09-07 18:25:17 +08:00
|
|
|
ENCODER("ED448", "yes", "text", "private",
|
|
|
|
ed448_priv_to_text_encoder_functions),
|
|
|
|
ENCODER("ED448", "yes", "text", "public",
|
|
|
|
ed448_pub_to_text_encoder_functions),
|
|
|
|
ENCODER("ED448", "yes", "der", "private",
|
|
|
|
ed448_priv_to_der_encoder_functions),
|
|
|
|
ENCODER("ED448", "yes", "der", "public",
|
|
|
|
ed448_pub_to_der_encoder_functions),
|
|
|
|
ENCODER("ED448", "yes", "pem", "private",
|
|
|
|
ed448_priv_to_pem_encoder_functions),
|
|
|
|
ENCODER("ED448", "yes", "pem", "public",
|
|
|
|
ed448_pub_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
|
2020-09-07 18:25:17 +08:00
|
|
|
ENCODER("EC", "yes", "text", "private",
|
|
|
|
ec_priv_to_text_encoder_functions),
|
|
|
|
ENCODER("EC", "yes", "text", "public",
|
|
|
|
ec_pub_to_text_encoder_functions),
|
|
|
|
ENCODER("EC", "yes", "text", "parameters",
|
|
|
|
ec_param_to_text_encoder_functions),
|
|
|
|
ENCODER("EC", "yes", "der", "private",
|
|
|
|
ec_priv_to_der_encoder_functions),
|
|
|
|
ENCODER("EC", "yes", "der", "public",
|
|
|
|
ec_pub_to_der_encoder_functions),
|
|
|
|
ENCODER("EC", "yes", "der", "parameters",
|
|
|
|
ec_param_to_der_encoder_functions),
|
|
|
|
ENCODER("EC", "yes", "pem", "private",
|
|
|
|
ec_priv_to_pem_encoder_functions),
|
|
|
|
ENCODER("EC", "yes", "pem", "public",
|
|
|
|
ec_pub_to_pem_encoder_functions),
|
|
|
|
ENCODER("EC", "yes", "pem", "parameters",
|
|
|
|
ec_param_to_pem_encoder_functions),
|
2020-08-17 03:25:08 +08:00
|
|
|
#endif
|