mirror of
https://github.com/openssl/openssl.git
synced 2025-02-23 14:42:15 +08:00
To be able to implement this, there was a need for the standard EVP_PKEY_set1_, EVP_PKEY_get0_ and EVP_PKEY_get1_ functions for ED25519, ED448, X25519 and X448, as well as the corresponding EVP_PKEY_assign_ macros. There was also a need to extend the list of hard coded names that EVP_PKEY_is_a() recognise. Along with this, OSSL_FUNC_keymgmt_load() are implemented for all those key types. The deserializers for these key types are all implemented generically, in providers/implementations/serializers/deserializer_der2key.c. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12544)
31 lines
1.1 KiB
SQL
31 lines
1.1 KiB
SQL
/*
|
|
* 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 DESER
|
|
# error Macro DESER undefined
|
|
#endif
|
|
|
|
#ifndef OPENSSL_NO_DH
|
|
DESER("DH", "yes", "der", der_to_dh_deserializer_functions),
|
|
#endif
|
|
#ifndef OPENSSL_NO_DSA
|
|
DESER("DSA", "yes", "der", der_to_dsa_deserializer_functions),
|
|
#endif
|
|
#ifndef OPENSSL_NO_EC
|
|
DESER("EC", "yes", "der", der_to_ec_deserializer_functions),
|
|
DESER("ED25519", "yes", "der", der_to_ed25519_deserializer_functions),
|
|
DESER("ED448", "yes", "der", der_to_ed448_deserializer_functions),
|
|
DESER("X25519", "yes", "der", der_to_x25519_deserializer_functions),
|
|
DESER("X448", "yes", "der", der_to_x448_deserializer_functions),
|
|
#endif
|
|
DESER("RSA", "yes", "der", der_to_rsa_deserializer_functions),
|
|
DESER("RSA-PSS", "yes", "der", der_to_rsapss_deserializer_functions),
|
|
|
|
DESER("DER", "yes", "pem", pem_to_der_deserializer_functions),
|