OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
pvkfmt.c File Reference
#include "cryptlib.h"
#include <openssl/pem.h>
#include <openssl/rand.h>
#include <openssl/bn.h>
#include <openssl/dsa.h>
#include <openssl/rsa.h>

Go to the source code of this file.

Macros

#define MS_PUBLICKEYBLOB   0x6
 
#define MS_PRIVATEKEYBLOB   0x7
 
#define MS_RSA1MAGIC   0x31415352L
 
#define MS_RSA2MAGIC   0x32415352L
 
#define MS_DSS1MAGIC   0x31535344L
 
#define MS_DSS2MAGIC   0x32535344L
 
#define MS_KEYALG_RSA_KEYX   0xa400
 
#define MS_KEYALG_DSS_SIGN   0x2200
 
#define MS_KEYTYPE_KEYX   0x1
 
#define MS_KEYTYPE_SIGN   0x2
 
#define MS_PVKMAGIC   0xb0b5f11eL
 
#define PVK_SALTLEN   0x10
 

Functions

EVP_PKEYb2i_PrivateKey (const unsigned char **in, long length)
 
EVP_PKEYb2i_PublicKey (const unsigned char **in, long length)
 
EVP_PKEYb2i_PrivateKey_bio (BIO *in)
 
EVP_PKEYb2i_PublicKey_bio (BIO *in)
 
int i2b_PrivateKey_bio (BIO *out, EVP_PKEY *pk)
 
int i2b_PublicKey_bio (BIO *out, EVP_PKEY *pk)
 
EVP_PKEYb2i_PVK_bio (BIO *in, pem_password_cb *cb, void *u)
 
int i2b_PVK_bio (BIO *out, EVP_PKEY *pk, int enclevel, pem_password_cb *cb, void *u)
 

Macro Definition Documentation

#define MS_DSS1MAGIC   0x31535344L

Definition at line 120 of file pvkfmt.c.

#define MS_DSS2MAGIC   0x32535344L

Definition at line 121 of file pvkfmt.c.

#define MS_KEYALG_DSS_SIGN   0x2200

Definition at line 124 of file pvkfmt.c.

#define MS_KEYALG_RSA_KEYX   0xa400

Definition at line 123 of file pvkfmt.c.

#define MS_KEYTYPE_KEYX   0x1

Definition at line 126 of file pvkfmt.c.

#define MS_KEYTYPE_SIGN   0x2

Definition at line 127 of file pvkfmt.c.

#define MS_PRIVATEKEYBLOB   0x7

Definition at line 117 of file pvkfmt.c.

#define MS_PUBLICKEYBLOB   0x6

Definition at line 116 of file pvkfmt.c.

#define MS_PVKMAGIC   0xb0b5f11eL

Definition at line 130 of file pvkfmt.c.

#define MS_RSA1MAGIC   0x31415352L

Definition at line 118 of file pvkfmt.c.

#define MS_RSA2MAGIC   0x32415352L

Definition at line 119 of file pvkfmt.c.

#define PVK_SALTLEN   0x10

Definition at line 132 of file pvkfmt.c.

Function Documentation

EVP_PKEY* b2i_PrivateKey ( const unsigned char **  in,
long  length 
)

Definition at line 419 of file pvkfmt.c.

EVP_PKEY* b2i_PrivateKey_bio ( BIO in)

Definition at line 430 of file pvkfmt.c.

EVP_PKEY* b2i_PublicKey ( const unsigned char **  in,
long  length 
)

Definition at line 424 of file pvkfmt.c.

EVP_PKEY* b2i_PublicKey_bio ( BIO in)

Definition at line 435 of file pvkfmt.c.

EVP_PKEY* b2i_PVK_bio ( BIO in,
pem_password_cb cb,
void u 
)

Definition at line 805 of file pvkfmt.c.

int i2b_PrivateKey_bio ( BIO out,
EVP_PKEY pk 
)

Definition at line 647 of file pvkfmt.c.

int i2b_PublicKey_bio ( BIO out,
EVP_PKEY pk 
)

Definition at line 652 of file pvkfmt.c.

int i2b_PVK_bio ( BIO out,
EVP_PKEY pk,
int  enclevel,
pem_password_cb cb,
void u 
)

Definition at line 930 of file pvkfmt.c.