Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cPKCS5 Class Reference

#include <cPKCS.h>

Public Member Functions

 UNITTEST_FRIEND (cPKCS)
 

Static Public Member Functions

static HRESULT ParsePBES2 (const cASNBuf &pbe_params, bool bEncodeMode, const cMemBlock &password, const cMemBlock &data, BYTE *pOutput)
 

Detailed Description

PKCS #5 used for key reading. PKCS stands for "Public Key Cryptography Standards" https://en.wikipedia.org/wiki/PKCS helper used by cKeyWrap reader for OID_PKCS5_PBES2.

Member Function Documentation

◆ ParsePBES2()

HRESULT GrayLib::cPKCS5::ParsePBES2 ( const cASNBuf pbe_params,
bool  bEncodeMode,
const cMemBlock password,
const cMemBlock data,
BYTE *  pOutput 
)
static

PKCS#5 PBES2 function OID_PKCS5_PBES2

  • pbe_params = the ASN.1 algorithm parameters
  • bEncodeMode
  • pPassword = password to use when generating key
  • nPassSize = length of password
  • data = data to process
  • pOutput = output buffer
Returns
0 on success, or <0 = error

◆ UNITTEST_FRIEND()

GrayLib::cPKCS5::UNITTEST_FRIEND ( cPKCS  )

The documentation for this class was generated from the following files: