=head1 NAME TPMLIB_DecodeBlob - Decode a base64-encode TPM blob =head1 SYNOPSIS B<#include > B<#include > B *IB<, enum TPMLIB_BlobType> IB<, unsigned char> **IB< size_t> *IB<);> =head1 DESCRIPTION The B function is used to decode a base64-encoded TPM state blob. The caller must pass what type of blob is expected to be decoded and following that the function will look for the start and end markers of the data. The following types of blobs are supported along with their start and end markers: =over 4 =item B '-----BEGIN INITSTATE-----' marks the beginning of the base64-encoded blob. '-----END INITSTATE-----' marks the end of the base64-encoded blob. =back This function is useful when passing state to the TPM inside the callback that is invoked to get the TPM's state blob. See I(3). =head1 ERRORS =over 4 =item B The function completed successfully. =item B The size of a requested buffer exceeds the limit or the system is out of memory. =item B An error occurred while attempting to decode the blob. =back For a complete list of TPM error codes please consult the include file B =head1 SEE ALSO B(3), B(3) =cut