TianoCore EDK2 master
Loading...
Searching...
No Matches
Pkcs12Null.c File Reference
#include <openssl/pkcs12.h>

Go to the source code of this file.

Functions

int PKCS12_PBE_keyivgen_ex (EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de, OSSL_LIB_CTX *libctx, const char *propq)
 
int PKCS12_PBE_keyivgen (EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de)
 
X509_SIG * PKCS8_encrypt (int pbe_nid, const EVP_CIPHER *cipher, const char *pass, int passlen, unsigned char *salt, int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8inf)
 
PKCS8_PRIV_KEY_INFO * PKCS8_decrypt (const X509_SIG *p8, const char *pass, int passlen)
 
unsigned char * PKCS12_pbe_crypt_ex (const X509_ALGOR *algor, const char *pass, int passlen, const unsigned char *in, int inlen, unsigned char **data, int *datalen, int en_de, OSSL_LIB_CTX *libctx, const char *propq)
 
X509_SIG * PKCS8_encrypt_ex (int pbe_nid, const EVP_CIPHER *cipher, const char *pass, int passlen, unsigned char *salt, int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8inf, OSSL_LIB_CTX *libctx, const char *propq)
 
const ASN1_ITEM * PKCS12_it (void)
 
const ASN1_ITEM * PKCS12_MAC_DATA_it (void)
 
const ASN1_ITEM * PKCS12_SAFEBAG_it (void)
 
const ASN1_ITEM * PKCS12_BAGS_it (void)
 
const ASN1_ITEM * PKCS12_AUTHSAFES_it (void)
 
const ASN1_ITEM * PKCS12_SAFEBAGS_it (void)
 

Detailed Description

Null implementation of PKCS12 and PKCS8 functions called by BaseCryptLib.

Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Pkcs12Null.c.

Function Documentation

◆ PKCS12_AUTHSAFES_it()

const ASN1_ITEM * PKCS12_AUTHSAFES_it ( void  )

Definition at line 133 of file Pkcs12Null.c.

◆ PKCS12_BAGS_it()

const ASN1_ITEM * PKCS12_BAGS_it ( void  )

Definition at line 125 of file Pkcs12Null.c.

◆ PKCS12_it()

const ASN1_ITEM * PKCS12_it ( void  )

Definition at line 101 of file Pkcs12Null.c.

◆ PKCS12_MAC_DATA_it()

const ASN1_ITEM * PKCS12_MAC_DATA_it ( void  )

Definition at line 109 of file Pkcs12Null.c.

◆ PKCS12_pbe_crypt_ex()

unsigned char * PKCS12_pbe_crypt_ex ( const X509_ALGOR *  algor,
const char *  pass,
int  passlen,
const unsigned char *  in,
int  inlen,
unsigned char **  data,
int *  datalen,
int  en_de,
OSSL_LIB_CTX *  libctx,
const char *  propq 
)

Definition at line 67 of file Pkcs12Null.c.

◆ PKCS12_PBE_keyivgen()

int PKCS12_PBE_keyivgen ( EVP_CIPHER_CTX *  ctx,
const char *  pass,
int  passlen,
ASN1_TYPE *  param,
const EVP_CIPHER *  cipher,
const EVP_MD *  md,
int  en_de 
)

Definition at line 28 of file Pkcs12Null.c.

◆ PKCS12_PBE_keyivgen_ex()

int PKCS12_PBE_keyivgen_ex ( EVP_CIPHER_CTX *  ctx,
const char *  pass,
int  passlen,
ASN1_TYPE *  param,
const EVP_CIPHER *  cipher,
const EVP_MD *  md,
int  en_de,
OSSL_LIB_CTX *  libctx,
const char *  propq 
)

Definition at line 12 of file Pkcs12Null.c.

◆ PKCS12_SAFEBAG_it()

const ASN1_ITEM * PKCS12_SAFEBAG_it ( void  )

Definition at line 117 of file Pkcs12Null.c.

◆ PKCS12_SAFEBAGS_it()

const ASN1_ITEM * PKCS12_SAFEBAGS_it ( void  )

Definition at line 141 of file Pkcs12Null.c.

◆ PKCS8_decrypt()

PKCS8_PRIV_KEY_INFO * PKCS8_decrypt ( const X509_SIG *  p8,
const char *  pass,
int  passlen 
)

Definition at line 57 of file Pkcs12Null.c.

◆ PKCS8_encrypt()

X509_SIG * PKCS8_encrypt ( int  pbe_nid,
const EVP_CIPHER *  cipher,
const char *  pass,
int  passlen,
unsigned char *  salt,
int  saltlen,
int  iter,
PKCS8_PRIV_KEY_INFO *  p8inf 
)

Definition at line 42 of file Pkcs12Null.c.

◆ PKCS8_encrypt_ex()

X509_SIG * PKCS8_encrypt_ex ( int  pbe_nid,
const EVP_CIPHER *  cipher,
const char *  pass,
int  passlen,
unsigned char *  salt,
int  saltlen,
int  iter,
PKCS8_PRIV_KEY_INFO *  p8inf,
OSSL_LIB_CTX *  libctx,
const char *  propq 
)

Definition at line 84 of file Pkcs12Null.c.