#include <openssl/pkcs8.h>
#include <limits.h>
#include <string.h>
#include <openssl/bytestring.h>
#include <openssl/cipher.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/nid.h>
#include <openssl/rand.h>
#include "internal.h"
#include "../internal.h"
Go to the source code of this file.
Functions | |
static int | add_cipher_oid (CBB *out, int nid) |
static const EVP_CIPHER * | cbs_to_cipher (const CBS *cbs) |
static int | pkcs5_pbe2_cipher_init (EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const EVP_MD *pbkdf2_md, unsigned iterations, const char *pass, size_t pass_len, const uint8_t *salt, size_t salt_len, const uint8_t *iv, size_t iv_len, int enc) |
int | PKCS5_pbe2_decrypt_init (const struct pbe_suite *suite, EVP_CIPHER_CTX *ctx, const char *pass, size_t pass_len, CBS *param) |
int | PKCS5_pbe2_encrypt_init (CBB *out, EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, unsigned iterations, const char *pass, size_t pass_len, const uint8_t *salt, size_t salt_len) |
Variables | |
struct { | |
const EVP_CIPHER *(* cipher_func )(void) | |
int nid | |
uint8_t oid [9] | |
uint8_t oid_len | |
} | kCipherOIDs [] |
static const uint8_t | kHMACWithSHA1 [] |
static const uint8_t | kHMACWithSHA256 [] |
static const uint8_t | kPBES2 [] |
static const uint8_t | kPBKDF2 [] |
Definition at line 131 of file p5_pbev2.c.
|
static |
Definition at line 121 of file p5_pbev2.c.
|
static |
Definition at line 146 of file p5_pbev2.c.
int PKCS5_pbe2_decrypt_init | ( | const struct pbe_suite * | suite, |
EVP_CIPHER_CTX * | ctx, | ||
const char * | pass, | ||
size_t | pass_len, | ||
CBS * | param | ||
) |
Definition at line 213 of file p5_pbev2.c.
int PKCS5_pbe2_encrypt_init | ( | CBB * | out, |
EVP_CIPHER_CTX * | ctx, | ||
const EVP_CIPHER * | cipher, | ||
unsigned | iterations, | ||
const char * | pass, | ||
size_t | pass_len, | ||
const uint8_t * | salt, | ||
size_t | salt_len | ||
) |
Definition at line 164 of file p5_pbev2.c.
const EVP_CIPHER*(* cipher_func) (void) |
Definition at line 92 of file p5_pbev2.c.
const { ... } kCipherOIDs[] |
Definition at line 81 of file p5_pbev2.c.
Definition at line 85 of file p5_pbev2.c.
Definition at line 77 of file p5_pbev2.c.
Definition at line 73 of file p5_pbev2.c.
int nid |
Definition at line 91 of file p5_pbev2.c.
uint8_t oid[9] |
Definition at line 89 of file p5_pbev2.c.
uint8_t oid_len |
Definition at line 90 of file p5_pbev2.c.