--- title: "AAL2QAGenQABlob" slug: "a3s-cppprg-aal2qagenqablob-4-0" updated: 2026-11-11T09:54:58Z published: 2026-11-11T09:54:58Z canonical: "docs.onespan.com/a3s-cppprg-aal2qagenqablob-4-0" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # AAL2QAGenQABlob ## Function prototype ```cpp aat_int32 AAL2QAGenQABlob (aat_int32      QANb,                            aat_ascii*     aQAList,                            aat_ascii*     aUserID,                            aat_ascii*     aQABlob,                            aat_int32*     QABlobSize); ``` ## Description This function generates a QA BLOB from a list of question indexes with clear answer and a user ID. ## Parameters | Type | Name | Use | Description | | --- | --- | --- | --- | | aat_int32 | QANb | I | Number of items in the QA list. | | aat_ascii * | QAList | I | List of question indexes on two characters and answers separated by a semicolon (;). > 01aNsWeR1;0Fans@er4;2Eanswer22;19answer09;8Fan; | | aat_ascii * | UserID | I | ID of the BLOB owner on max 32 characters. | | aat_ascii * | QABlob | O | BLOB resulting from the formatted answer hash, 358+1 characters, null-terminated containing : - User ID: 32 chars - BLOB version: 02 chars - Hash number: 02 chars - \|Index \|02 chars - \|Hash \|30 chars - Checksum: 02 chars | | aat_int32 * | QABlobSize | I/O | In input, this parameter must indicate the size of the allocated buffer for the QABlob parameter (recommended 359 bytes). In output, this parameter indicates the length of the QABlob string (without the null-terminated character). | ## Return codes | Code | Meaning | Code | Meaning | | --- | --- | --- | --- | | 0 | Success | 535 | Invalid QA number | | 530 | Invalid QA data pointer | 541 | Invalid index list | | 532 | Invalid QA data length | 1025 | Buffer too small | | 533 | Invalid UserId pointer | -1501 | Memory allocation failed | | 534 | Invalid UserId length | | |