RetroArch
Functions
pem.c File Reference
#include "mbedtls/config.h"
#include "mbedtls/pem.h"
#include "mbedtls/base64.h"
#include "mbedtls/des.h"
#include "mbedtls/aes.h"
#include "mbedtls/md5.h"
#include "mbedtls/cipher.h"
#include <string.h>
#include "mbedtls/platform.h"
#include "arc4_alt.h"
Include dependency graph for pem.c:

Functions

void mbedtls_pem_init (mbedtls_pem_context *ctx)
 
static int pem_get_iv (const unsigned char *s, unsigned char *iv, size_t iv_len)
 
static void pem_pbkdf1 (unsigned char *key, size_t keylen, unsigned char *iv, const unsigned char *pwd, size_t pwdlen)
 
static void pem_des_decrypt (unsigned char des_iv[8], unsigned char *buf, size_t buflen, const unsigned char *pwd, size_t pwdlen)
 
static void pem_des3_decrypt (unsigned char des3_iv[8], unsigned char *buf, size_t buflen, const unsigned char *pwd, size_t pwdlen)
 
static void pem_aes_decrypt (unsigned char aes_iv[16], unsigned int keylen, unsigned char *buf, size_t buflen, const unsigned char *pwd, size_t pwdlen)
 
int mbedtls_pem_read_buffer (mbedtls_pem_context *ctx, const char *header, const char *footer, const unsigned char *data, const unsigned char *pwd, size_t pwdlen, size_t *use_len)
 
void mbedtls_pem_free (mbedtls_pem_context *ctx)
 
int mbedtls_pem_write_buffer (const char *header, const char *footer, const unsigned char *der_data, size_t der_len, unsigned char *buf, size_t buf_len, size_t *olen)
 

Function Documentation

◆ mbedtls_pem_free()

void mbedtls_pem_free ( mbedtls_pem_context *  ctx)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mbedtls_pem_init()

void mbedtls_pem_init ( mbedtls_pem_context *  ctx)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mbedtls_pem_read_buffer()

int mbedtls_pem_read_buffer ( mbedtls_pem_context *  ctx,
const char *  header,
const char *  footer,
const unsigned char *  data,
const unsigned char *  pwd,
size_t  pwdlen,
size_t *  use_len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mbedtls_pem_write_buffer()

int mbedtls_pem_write_buffer ( const char *  header,
const char *  footer,
const unsigned char *  der_data,
size_t  der_len,
unsigned char *  buf,
size_t  buf_len,
size_t *  olen 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pem_aes_decrypt()

static void pem_aes_decrypt ( unsigned char  aes_iv[16],
unsigned int  keylen,
unsigned char *  buf,
size_t  buflen,
const unsigned char *  pwd,
size_t  pwdlen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pem_des3_decrypt()

static void pem_des3_decrypt ( unsigned char  des3_iv[8],
unsigned char *  buf,
size_t  buflen,
const unsigned char *  pwd,
size_t  pwdlen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pem_des_decrypt()

static void pem_des_decrypt ( unsigned char  des_iv[8],
unsigned char *  buf,
size_t  buflen,
const unsigned char *  pwd,
size_t  pwdlen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pem_get_iv()

static int pem_get_iv ( const unsigned char *  s,
unsigned char *  iv,
size_t  iv_len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ pem_pbkdf1()

static void pem_pbkdf1 ( unsigned char *  key,
size_t  keylen,
unsigned char *  iv,
const unsigned char *  pwd,
size_t  pwdlen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: