5 evp_keymgmt_export_to_provider,
6 evp_keymgmt_clear_pkey_cache
7 - key material provider export for EVP
11 #include "internal/evp_int.h"
13 void *evp_keymgmt_export_to_provider(EVP_PKEY *pk, EVP_KEYMGMT *keymgmt);
14 void evp_keymgmt_clear_pkey_cache(EVP_PKEY *pk);
18 evp_keymgmt_export_to_provider() exports the key material from the
19 given key I<pk> to a provider via a B<EVP_KEYMGMT> interface, if this
20 hasn't already been done.
21 It maintains a cache of provider key references in I<pk> to keep track
24 If I<pk> has an assigned legacy key, a check is done to see if any of
25 its key material has changed since last export, i.e. the legacy key's
26 is_dirty() method returns 1.
27 If it has, the cache of already exported keys is cleared, and a new
28 export is made with the new key material.
30 evp_keymgmt_clear_pkey_cache() can be used to explicitly clear the
31 cache of provider key references.
35 evp_keymgmt_export_to_provider() returns a pointer to the appropriate
36 provider side key (created or found again), or NULL on error.
40 "Legacy key" is the term used for any key that has been assigned to an
41 B<EVP_PKEY> with EVP_PKEY_assign_RSA() and similar functions.
45 L<EVP_PKEY_ASN1_METHOD(3)>, L<EVP_PKEY_assign_RSA(3)>
49 Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
51 Licensed under the Apache License 2.0 (the "License"). You may not use
52 this file except in compliance with the License. You can obtain a copy
53 in the file LICENSE in the source distribution or at
54 L<https://www.openssl.org/source/license.html>.