Macros | Functions
pkcs8.h File Reference
#include <openssl/base.h>
#include <openssl/x509.h>
Include dependency graph for pkcs8.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PKCS12_DEFAULT_ITER   2048
 
#define PKCS8_R_BAD_ITERATION_COUNT   129
 
#define PKCS8_R_BAD_PKCS12_DATA   100
 
#define PKCS8_R_BAD_PKCS12_VERSION   101
 
#define PKCS8_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER   102
 
#define PKCS8_R_CRYPT_ERROR   103
 
#define PKCS8_R_DECODE_ERROR   104
 
#define PKCS8_R_ENCODE_ERROR   105
 
#define PKCS8_R_ENCRYPT_ERROR   106
 
#define PKCS8_R_ERROR_SETTING_CIPHER_PARAMS   107
 
#define PKCS8_R_INCORRECT_PASSWORD   108
 
#define PKCS8_R_INVALID_CHARACTERS   131
 
#define PKCS8_R_KEY_GEN_ERROR   110
 
#define PKCS8_R_KEYGEN_FAILURE   109
 
#define PKCS8_R_METHOD_NOT_SUPPORTED   111
 
#define PKCS8_R_MISSING_MAC   112
 
#define PKCS8_R_MULTIPLE_PRIVATE_KEYS_IN_PKCS12   113
 
#define PKCS8_R_PKCS12_PUBLIC_KEY_INTEGRITY_NOT_SUPPORTED   114
 
#define PKCS8_R_PKCS12_TOO_DEEPLY_NESTED   115
 
#define PKCS8_R_PRIVATE_KEY_DECODE_ERROR   116
 
#define PKCS8_R_PRIVATE_KEY_ENCODE_ERROR   117
 
#define PKCS8_R_TOO_LONG   118
 
#define PKCS8_R_UNKNOWN_ALGORITHM   119
 
#define PKCS8_R_UNKNOWN_CIPHER   120
 
#define PKCS8_R_UNKNOWN_CIPHER_ALGORITHM   121
 
#define PKCS8_R_UNKNOWN_DIGEST   122
 
#define PKCS8_R_UNKNOWN_HASH   123
 
#define PKCS8_R_UNSUPPORTED_CIPHER   127
 
#define PKCS8_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION   128
 
#define PKCS8_R_UNSUPPORTED_KEYLENGTH   125
 
#define PKCS8_R_UNSUPPORTED_OPTIONS   132
 
#define PKCS8_R_UNSUPPORTED_PRF   130
 
#define PKCS8_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM   124
 
#define PKCS8_R_UNSUPPORTED_SALT_TYPE   126
 

Functions

OPENSSL_EXPORT PKCS12d2i_PKCS12 (PKCS12 **out_p12, const uint8_t **ber_bytes, size_t ber_len)
 
OPENSSL_EXPORT PKCS12d2i_PKCS12_bio (BIO *bio, PKCS12 **out_p12)
 
OPENSSL_EXPORT PKCS12d2i_PKCS12_fp (FILE *fp, PKCS12 **out_p12)
 
OPENSSL_EXPORT int i2d_PKCS12 (const PKCS12 *p12, uint8_t **out)
 
OPENSSL_EXPORT int i2d_PKCS12_bio (BIO *bio, const PKCS12 *p12)
 
OPENSSL_EXPORT int i2d_PKCS12_fp (FILE *fp, const PKCS12 *p12)
 
OPENSSL_EXPORT PKCS12PKCS12_create (const char *password, const char *name, const EVP_PKEY *pkey, X509 *cert, const STACK_OF(X509) *chain, int key_nid, int cert_nid, int iterations, int mac_iterations, int key_type)
 
OPENSSL_EXPORT void PKCS12_free (PKCS12 *p12)
 
OPENSSL_EXPORT int PKCS12_get_key_and_certs (EVP_PKEY **out_key, STACK_OF(X509) *out_certs, CBS *in, const char *password)
 
OPENSSL_EXPORT int PKCS12_parse (const PKCS12 *p12, const char *password, EVP_PKEY **out_pkey, X509 **out_cert, STACK_OF(X509) **out_ca_certs)
 
OPENSSL_EXPORT void PKCS12_PBE_add (void)
 
OPENSSL_EXPORT int PKCS12_verify_mac (const PKCS12 *p12, const char *password, int password_len)
 
OPENSSL_EXPORT PKCS8_PRIV_KEY_INFOPKCS8_decrypt (X509_SIG *pkcs8, const char *pass, int pass_len)
 
OPENSSL_EXPORT X509_SIGPKCS8_encrypt (int pbe_nid, const EVP_CIPHER *cipher, const char *pass, int pass_len, const uint8_t *salt, size_t salt_len, int iterations, PKCS8_PRIV_KEY_INFO *p8inf)
 
OPENSSL_EXPORT int PKCS8_marshal_encrypted_private_key (CBB *out, int pbe_nid, const EVP_CIPHER *cipher, const char *pass, size_t pass_len, const uint8_t *salt, size_t salt_len, int iterations, const EVP_PKEY *pkey)
 
OPENSSL_EXPORT EVP_PKEYPKCS8_parse_encrypted_private_key (CBS *cbs, const char *pass, size_t pass_len)
 

Macro Definition Documentation

◆ PKCS12_DEFAULT_ITER

#define PKCS12_DEFAULT_ITER   2048

Definition at line 202 of file pkcs8.h.

◆ PKCS8_R_BAD_ITERATION_COUNT

#define PKCS8_R_BAD_ITERATION_COUNT   129

Definition at line 277 of file pkcs8.h.

◆ PKCS8_R_BAD_PKCS12_DATA

#define PKCS8_R_BAD_PKCS12_DATA   100

Definition at line 248 of file pkcs8.h.

◆ PKCS8_R_BAD_PKCS12_VERSION

#define PKCS8_R_BAD_PKCS12_VERSION   101

Definition at line 249 of file pkcs8.h.

◆ PKCS8_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER

#define PKCS8_R_CIPHER_HAS_NO_OBJECT_IDENTIFIER   102

Definition at line 250 of file pkcs8.h.

◆ PKCS8_R_CRYPT_ERROR

#define PKCS8_R_CRYPT_ERROR   103

Definition at line 251 of file pkcs8.h.

◆ PKCS8_R_DECODE_ERROR

#define PKCS8_R_DECODE_ERROR   104

Definition at line 252 of file pkcs8.h.

◆ PKCS8_R_ENCODE_ERROR

#define PKCS8_R_ENCODE_ERROR   105

Definition at line 253 of file pkcs8.h.

◆ PKCS8_R_ENCRYPT_ERROR

#define PKCS8_R_ENCRYPT_ERROR   106

Definition at line 254 of file pkcs8.h.

◆ PKCS8_R_ERROR_SETTING_CIPHER_PARAMS

#define PKCS8_R_ERROR_SETTING_CIPHER_PARAMS   107

Definition at line 255 of file pkcs8.h.

◆ PKCS8_R_INCORRECT_PASSWORD

#define PKCS8_R_INCORRECT_PASSWORD   108

Definition at line 256 of file pkcs8.h.

◆ PKCS8_R_INVALID_CHARACTERS

#define PKCS8_R_INVALID_CHARACTERS   131

Definition at line 279 of file pkcs8.h.

◆ PKCS8_R_KEY_GEN_ERROR

#define PKCS8_R_KEY_GEN_ERROR   110

Definition at line 258 of file pkcs8.h.

◆ PKCS8_R_KEYGEN_FAILURE

#define PKCS8_R_KEYGEN_FAILURE   109

Definition at line 257 of file pkcs8.h.

◆ PKCS8_R_METHOD_NOT_SUPPORTED

#define PKCS8_R_METHOD_NOT_SUPPORTED   111

Definition at line 259 of file pkcs8.h.

◆ PKCS8_R_MISSING_MAC

#define PKCS8_R_MISSING_MAC   112

Definition at line 260 of file pkcs8.h.

◆ PKCS8_R_MULTIPLE_PRIVATE_KEYS_IN_PKCS12

#define PKCS8_R_MULTIPLE_PRIVATE_KEYS_IN_PKCS12   113

Definition at line 261 of file pkcs8.h.

◆ PKCS8_R_PKCS12_PUBLIC_KEY_INTEGRITY_NOT_SUPPORTED

#define PKCS8_R_PKCS12_PUBLIC_KEY_INTEGRITY_NOT_SUPPORTED   114

Definition at line 262 of file pkcs8.h.

◆ PKCS8_R_PKCS12_TOO_DEEPLY_NESTED

#define PKCS8_R_PKCS12_TOO_DEEPLY_NESTED   115

Definition at line 263 of file pkcs8.h.

◆ PKCS8_R_PRIVATE_KEY_DECODE_ERROR

#define PKCS8_R_PRIVATE_KEY_DECODE_ERROR   116

Definition at line 264 of file pkcs8.h.

◆ PKCS8_R_PRIVATE_KEY_ENCODE_ERROR

#define PKCS8_R_PRIVATE_KEY_ENCODE_ERROR   117

Definition at line 265 of file pkcs8.h.

◆ PKCS8_R_TOO_LONG

#define PKCS8_R_TOO_LONG   118

Definition at line 266 of file pkcs8.h.

◆ PKCS8_R_UNKNOWN_ALGORITHM

#define PKCS8_R_UNKNOWN_ALGORITHM   119

Definition at line 267 of file pkcs8.h.

◆ PKCS8_R_UNKNOWN_CIPHER

#define PKCS8_R_UNKNOWN_CIPHER   120

Definition at line 268 of file pkcs8.h.

◆ PKCS8_R_UNKNOWN_CIPHER_ALGORITHM

#define PKCS8_R_UNKNOWN_CIPHER_ALGORITHM   121

Definition at line 269 of file pkcs8.h.

◆ PKCS8_R_UNKNOWN_DIGEST

#define PKCS8_R_UNKNOWN_DIGEST   122

Definition at line 270 of file pkcs8.h.

◆ PKCS8_R_UNKNOWN_HASH

#define PKCS8_R_UNKNOWN_HASH   123

Definition at line 271 of file pkcs8.h.

◆ PKCS8_R_UNSUPPORTED_CIPHER

#define PKCS8_R_UNSUPPORTED_CIPHER   127

Definition at line 275 of file pkcs8.h.

◆ PKCS8_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION

#define PKCS8_R_UNSUPPORTED_KEY_DERIVATION_FUNCTION   128

Definition at line 276 of file pkcs8.h.

◆ PKCS8_R_UNSUPPORTED_KEYLENGTH

#define PKCS8_R_UNSUPPORTED_KEYLENGTH   125

Definition at line 273 of file pkcs8.h.

◆ PKCS8_R_UNSUPPORTED_OPTIONS

#define PKCS8_R_UNSUPPORTED_OPTIONS   132

Definition at line 280 of file pkcs8.h.

◆ PKCS8_R_UNSUPPORTED_PRF

#define PKCS8_R_UNSUPPORTED_PRF   130

Definition at line 278 of file pkcs8.h.

◆ PKCS8_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM

#define PKCS8_R_UNSUPPORTED_PRIVATE_KEY_ALGORITHM   124

Definition at line 272 of file pkcs8.h.

◆ PKCS8_R_UNSUPPORTED_SALT_TYPE

#define PKCS8_R_UNSUPPORTED_SALT_TYPE   126

Definition at line 274 of file pkcs8.h.

Function Documentation

◆ d2i_PKCS12()

OPENSSL_EXPORT PKCS12* d2i_PKCS12 ( PKCS12 **  out_p12,
const uint8_t **  ber_bytes,
size_t  ber_len 
)

Definition at line 787 of file pkcs8_x509.c.

◆ d2i_PKCS12_bio()

OPENSSL_EXPORT PKCS12* d2i_PKCS12_bio ( BIO bio,
PKCS12 **  out_p12 
)

Definition at line 815 of file pkcs8_x509.c.

◆ d2i_PKCS12_fp()

OPENSSL_EXPORT PKCS12* d2i_PKCS12_fp ( FILE *  fp,
PKCS12 **  out_p12 
)

Definition at line 864 of file pkcs8_x509.c.

◆ i2d_PKCS12()

OPENSSL_EXPORT int i2d_PKCS12 ( const PKCS12 p12,
uint8_t **  out 
)

Definition at line 878 of file pkcs8_x509.c.

◆ i2d_PKCS12_bio()

OPENSSL_EXPORT int i2d_PKCS12_bio ( BIO bio,
const PKCS12 p12 
)

Definition at line 902 of file pkcs8_x509.c.

◆ i2d_PKCS12_fp()

OPENSSL_EXPORT int i2d_PKCS12_fp ( FILE *  fp,
const PKCS12 p12 
)

Definition at line 906 of file pkcs8_x509.c.

◆ PKCS12_create()

OPENSSL_EXPORT PKCS12* PKCS12_create ( const char *  password,
const char *  name,
const EVP_PKEY pkey,
X509 cert,
const STACK_OF(X509) *  chain,
int  key_nid,
int  cert_nid,
int  iterations,
int  mac_iterations,
int  key_type 
)

Definition at line 1153 of file pkcs8_x509.c.

◆ PKCS12_free()

OPENSSL_EXPORT void PKCS12_free ( PKCS12 p12)

Definition at line 1377 of file pkcs8_x509.c.

◆ PKCS12_get_key_and_certs()

OPENSSL_EXPORT int PKCS12_get_key_and_certs ( EVP_PKEY **  out_key,
STACK_OF(X509) *  out_certs,
CBS in,
const char *  password 
)

Definition at line 634 of file pkcs8_x509.c.

◆ PKCS12_parse()

OPENSSL_EXPORT int PKCS12_parse ( const PKCS12 p12,
const char *  password,
EVP_PKEY **  out_pkey,
X509 **  out_cert,
STACK_OF(X509) **  out_ca_certs 
)

Definition at line 917 of file pkcs8_x509.c.

◆ PKCS12_PBE_add()

OPENSSL_EXPORT void PKCS12_PBE_add ( void  )

Definition at line 780 of file pkcs8_x509.c.

◆ PKCS12_verify_mac()

OPENSSL_EXPORT int PKCS12_verify_mac ( const PKCS12 p12,
const char *  password,
int  password_len 
)

Definition at line 969 of file pkcs8_x509.c.

◆ PKCS8_decrypt()

OPENSSL_EXPORT PKCS8_PRIV_KEY_INFO* PKCS8_decrypt ( X509_SIG pkcs8,
const char *  pass,
int  pass_len 
)

◆ PKCS8_encrypt()

OPENSSL_EXPORT X509_SIG* PKCS8_encrypt ( int  pbe_nid,
const EVP_CIPHER cipher,
const char *  pass,
int  pass_len,
const uint8_t salt,
size_t  salt_len,
int  iterations,
PKCS8_PRIV_KEY_INFO p8inf 
)

◆ PKCS8_marshal_encrypted_private_key()

OPENSSL_EXPORT int PKCS8_marshal_encrypted_private_key ( CBB out,
int  pbe_nid,
const EVP_CIPHER cipher,
const char *  pass,
size_t  pass_len,
const uint8_t salt,
size_t  salt_len,
int  iterations,
const EVP_PKEY pkey 
)

Definition at line 445 of file pkcs8.c.

◆ PKCS8_parse_encrypted_private_key()

OPENSSL_EXPORT EVP_PKEY* PKCS8_parse_encrypted_private_key ( CBS cbs,
const char *  pass,
size_t  pass_len 
)

Definition at line 419 of file pkcs8.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:26