Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5      1.1  christos EVP_PKEY2PKCS8, EVP_PKCS82PKEY_ex, EVP_PKCS82PKEY
      6      1.1  christos - Convert a private key to/from PKCS8
      7      1.1  christos 
      8      1.1  christos =head1 SYNOPSIS
      9      1.1  christos 
     10      1.1  christos  #include <openssl/x509.h>
     11      1.1  christos 
     12      1.1  christos  PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(const EVP_PKEY *pkey);
     13      1.1  christos  EVP_PKEY *EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *p8);
     14      1.1  christos  EVP_PKEY *EVP_PKCS82PKEY_ex(const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx,
     15      1.1  christos                              const char *propq);
     16      1.1  christos 
     17      1.1  christos =head1 DESCRIPTION
     18      1.1  christos 
     19      1.1  christos EVP_PKEY2PKCS8() converts a private key I<pkey> into a returned PKCS8 object.
     20      1.1  christos 
     21      1.1  christos EVP_PKCS82PKEY_ex() converts a PKCS8 object I<p8> into a returned private key.
     22      1.1  christos It uses I<libctx> and I<propq> when fetching algorithms.
     23      1.1  christos 
     24  1.1.1.2  christos EVP_PKCS82PKEY() is similar to EVP_PKCS82PKEY_ex() but uses default values of
     25      1.1  christos NULL for the I<libctx> and I<propq>.
     26      1.1  christos 
     27      1.1  christos =head1 RETURN VALUES
     28      1.1  christos 
     29      1.1  christos EVP_PKEY2PKCS8() returns a PKCS8 object on success.
     30      1.1  christos EVP_PKCS82PKEY() and EVP_PKCS82PKEY_ex() return a private key on success.
     31      1.1  christos 
     32      1.1  christos All functions return NULL if the operation fails.
     33      1.1  christos 
     34      1.1  christos =head1 SEE ALSO
     35      1.1  christos 
     36      1.1  christos L<PKCS8_pkey_add1_attr(3)>,
     37      1.1  christos 
     38      1.1  christos =head1 COPYRIGHT
     39      1.1  christos 
     40  1.1.1.2  christos Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved.
     41      1.1  christos 
     42      1.1  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     43      1.1  christos this file except in compliance with the License.  You can obtain a copy
     44      1.1  christos in the file LICENSE in the source distribution or at
     45      1.1  christos L<https://www.openssl.org/source/license.html>.
     46      1.1  christos 
     47      1.1  christos =cut
     48