KMSAgentPKIimpl.h revision 4f14b0f29aa144cc03efdde5508ae126ae197acf
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* \file KMSAgentPKIimpl.h
#ifndef K_KMSAgentPKIimpl_h
#define K_KMSAgentPKIimpl_h
void * InitializeCertImpl();
bool SaveX509CertTofile(
void* const i_pImplResource,
const char * const i_pcFileName );
bool SaveX509CertToBuffer(
void* const i_pImplResource,
unsigned char * const i_pcBuffer,
int i_iBufferLength,
int * const o_pActualLength );
bool LoadX509CertFromFile(
void* const i_pImplResource,
const char * const i_pcFileName );
bool LoadX509CertFromBuffer(
void* const i_pImplResource,
void* const i_pX509Cert,
int i_iLength);
void FinalizeCertImpl(
void* i_pImplResource);
void * InitializePKeyImpl();
#ifdef KMSUSERPKCS12
bool SavePrivateKeyToBuffer(
void * const i_pPKeyImpl,
unsigned char * const i_pcBuffer,
int i_iBufferLength,
int * const o_pActualLength,
const char * const i_pPassphrase,
int i_iFormat);
bool LoadPrivateKeyFromBuffer(
void * const i_pPKeyImpl,
unsigned char * i_pcBuffer,
int i_iLength,
const char * const i_pPassphrase,
int i_iFormat);
bool SavePublicKeyToBuffer(
void * const i_pPKeyImpl,
unsigned char * const i_pcBuffer,
int i_iBufferLength,
int * const o_pActualLength,
int i_iFormat);
bool LoadPublicKeyFromBuffer(
void * const i_pPKeyImpl,
unsigned char * i_pcBuffer,
int i_iLength,
int i_iFormat);
const unsigned char * const i_pcPlainText,
unsigned char * const o_pcCypherText,
int * const o_pActualLength,
void * i_pRSAPublicKey);