CT_Structure_From_Armor

Synopsis

CK_RV CT_Structure_From_Armor ( 
    
    Char * pLabel,/* IN Armor label (string) */
    CK_BYTE_PTR pArmor,/* IN Armored structure */
    CK_ULONG ulArmorLen /* IN pArmor buffer length */
    
    CK_VOID_PTR *pData, /* OUT extracted structure */
    CK_ULONG_PTR pulDataLen /* OUT *pData buffer length */
);

Description

Armoring is the term used in PGP and MIME to describe the formatting of binary data such that it can be unambiguously embedded in a printable document such as an email.

The function extracts a data structure from an Armored (printable format) buffer.

The result is returned as a buffer that the caller must free after use.