#include <openssl/pkcs8.h>
#include <assert.h>
#include <limits.h>
#include <string.h>
#include <openssl/bytestring.h>
#include <openssl/cipher.h>
#include <openssl/digest.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/nid.h>
#include <openssl/rand.h>
#include "internal.h"
#include "../bytestring/internal.h"
#include "../internal.h"
Go to the source code of this file.
|
static const struct pbe_suite * | get_pkcs12_pbe_suite (int pbe_nid) |
|
static int | pkcs12_encode_password (const char *in, size_t in_len, uint8_t **out, size_t *out_len) |
|
int | pkcs12_key_gen (const char *pass, size_t pass_len, const uint8_t *salt, size_t salt_len, uint8_t id, unsigned iterations, size_t out_len, uint8_t *out, const EVP_MD *md) |
|
static int | pkcs12_pbe_cipher_init (const struct pbe_suite *suite, EVP_CIPHER_CTX *ctx, unsigned iterations, const char *pass, size_t pass_len, const uint8_t *salt, size_t salt_len, int is_encrypt) |
|
static int | pkcs12_pbe_decrypt_init (const struct pbe_suite *suite, EVP_CIPHER_CTX *ctx, const char *pass, size_t pass_len, CBS *param) |
|
int | pkcs12_pbe_encrypt_init (CBB *out, EVP_CIPHER_CTX *ctx, int alg, unsigned iterations, const char *pass, size_t pass_len, const uint8_t *salt, size_t salt_len) |
|
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) |
|
EVP_PKEY * | PKCS8_parse_encrypted_private_key (CBS *cbs, const char *pass, size_t pass_len) |
|
int | pkcs8_pbe_decrypt (uint8_t **out, size_t *out_len, CBS *algorithm, const char *pass, size_t pass_len, const uint8_t *in, size_t in_len) |
|
◆ get_pkcs12_pbe_suite()
◆ pkcs12_encode_password()
static int pkcs12_encode_password |
( |
const char * |
in, |
|
|
size_t |
in_len, |
|
|
uint8_t ** |
out, |
|
|
size_t * |
out_len |
|
) |
| |
|
static |
◆ pkcs12_key_gen()
◆ pkcs12_pbe_cipher_init()
◆ pkcs12_pbe_decrypt_init()
◆ pkcs12_pbe_encrypt_init()
◆ PKCS8_marshal_encrypted_private_key()
◆ PKCS8_parse_encrypted_private_key()
EVP_PKEY* PKCS8_parse_encrypted_private_key |
( |
CBS * |
cbs, |
|
|
const char * |
pass, |
|
|
size_t |
pass_len |
|
) |
| |
◆ pkcs8_pbe_decrypt()
◆ kBuiltinPBE