> For the complete documentation index, see [llms.txt](https://sandbox-docs.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/namespaces/namespacecom__adksec__cmd.md).

# com\_adksec\_cmd

[Data Structures](#nested-classes) | [Typedefs](#typedef-members) | [Enumerations](#enum-members) | [Functions](#func-members)

|                 |                                                                                                                                                |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| Data Structures |                                                                                                                                                |
| class           | [CTransactionData](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classcom__adksec__cmd_1_1_c_transaction_data.md)   |
| class           | [CTransactionValue](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classcom__adksec__cmd_1_1_c_transaction_value.md) |

|                                                                                                                                                        |                                                             |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------- |
| Typedefs                                                                                                                                               |                                                             |
| typedef uint32\_t                                                                                                                                      | [secHandle\_t](#acc01edab4b0f73c92142d9d43dc7a7f7)          |
| typedef uint8\_t                                                                                                                                       | [bitMask\_t](#af79ae13c5f9ec8424f44764288144041)            |
| typedef std::string                                                                                                                                    | [secIndex\_t](#ad15b3c697f22fd80a8a42e5547c5b8e4)           |
| typedef unsigned char                                                                                                                                  | [eSecCommandtype](#a74b8a37bc3557f7d5fc9a2d70737ab33)       |
| typedef [CTransactionValue](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classcom__adksec__cmd_1_1_c_transaction_value.md) | [SecTransactionValue](#abddf3fd58f8658a7475911ed80e0fe20)   |
| typedef [CTransactionData](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classcom__adksec__cmd_1_1_c_transaction_data.md)   | [SecTransactionData\_t](#a8963c1dd7c626a621a8033209294fcbd) |
| typedef uint32\_t                                                                                                                                      | [secError\_t](#ae9f0bf534a30b1423c9e00302d53b7b8)           |

|              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Enumerations |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| enum         | <p><a href="#afe1062c1bfd2726a8d1ab38e7811bfb1">secErrorGroup</a> {<br>  <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a54e1471760a67dae8d22721a00ede39a">EsecGroupCommon</a> = 0x00000000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a167ffff4c0820ffb92f955cb7a8d29ee">EsecGroupApi</a> = 0x00010000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a7b2a912e9a3211090f9892b058f0a6ca">EsecGroupEncGov</a> = 0x00020000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a8d1038dad4c0f15215f4788a08f9584e">EsecGroupIPC</a> = 0x00030000,<br>  <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a960eca2e08f9da84f901ce8e933aa07a">EsecGroupEncConfig</a> = 0x00040000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1afd58b9d738baecee7f34327b36d93e3a">EsecGroupEncTA</a> = 0x00050000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a0eddf41a8245133990b360f9e6ac6f1c">EsecGroupEncVSS</a> = 0x00110000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1ae118f32b45b0853d48da2c67b47b4055">EsecGroupEncIPP</a> = 0x00120000,<br>  <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a212740110be098540fa62ca02ded6c37">EsecGroupEncSRED</a> = 0x00130000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1afab318675e1a1fad08fc0e153a9b1557">EsecGroupEncADE</a> = 0x00140000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a4ee53414e3e303fe1fcd0683f49da4d4">EsecGroupEncBendigo</a> = 0x00150000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a537062d96ccd76dc0de27bff61b91175">EsecGroupEncVOL</a> = 0x00160000,<br>  <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a4d935076f45fc9d8c21907e8277af7c3">EsecGroupEncVDSP</a> = 0x00170000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1abef4c4b4626d100bda0d1d9113c70051">EsecGroupEncRSA</a> = 0x00180000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a019138033a54e4e59615ea7581370327">EsecGroupEncAES</a> = 0x00190000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1ad31dfaf8b9e1e4e25219430e8f9a1acf">EsecGroupEncCryptRW</a> = 0x001A0000,<br>  <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a7efded02437b12a6fa601841bdaa04dc">EsecGroupEncMSK</a> = 0x001B0000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a96a3fb4ac144556336f923b4bd04ac40">EsecGroupEncCustRKL</a> = 0x001C0000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a0607e193fbd3d2cfd51eb49385c95dc5">EsecGroupDUKPT</a> = 0x001D0000, <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1a400628f4e2dca15e56606f2095c77091">EsecGroupMASK</a> = 0x00FF0000<br>}</p> |
| enum         | [secError](#af511ddd4237541a758df48299546d49a)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |

|             |                                                                                                                     |
| ----------- | ------------------------------------------------------------------------------------------------------------------- |
| Functions   |                                                                                                                     |
| std::string | [getErrorString](#aad94ea47fc0f24cdb4d5079c910d11b5) ([secError\_t](#ae9f0bf534a30b1423c9e00302d53b7b8) error)      |
| std::string | [getErrorDescription](#a3121d76c18d310000977ac9d2ddc3c07) ([secError\_t](#ae9f0bf534a30b1423c9e00302d53b7b8) error) |

### TypedefDocumentation <a href="#typedef-documentation" id="typedef-documentation"></a>

### bitMask\_t <a href="#af79ae13c5f9ec8424f44764288144041" id="af79ae13c5f9ec8424f44764288144041"></a>

typedef uint8\_t \[bitMask\_t]\(#af79ae13c5f9ec8424f44764288144041)

### eSecCommandtype <a href="#a74b8a37bc3557f7d5fc9a2d70737ab33" id="a74b8a37bc3557f7d5fc9a2d70737ab33"></a>

typedef unsigned char \[eSecCommandtype]\(#a74b8a37bc3557f7d5fc9a2d70737ab33)

### secError\_t <a href="#ae9f0bf534a30b1423c9e00302d53b7b8" id="ae9f0bf534a30b1423c9e00302d53b7b8"></a>

typedef uint32\_t \[secError\_t]\(#ae9f0bf534a30b1423c9e00302d53b7b8)

type which is used to transport secError in TLV-Packets, etc

### secHandle\_t <a href="#acc01edab4b0f73c92142d9d43dc7a7f7" id="acc01edab4b0f73c92142d9d43dc7a7f7"></a>

typedef uint32\_t \[secHandle\_t]\(#acc01edab4b0f73c92142d9d43dc7a7f7)

### secIndex\_t <a href="#ad15b3c697f22fd80a8a42e5547c5b8e4" id="ad15b3c697f22fd80a8a42e5547c5b8e4"></a>

typedef std::string \[secIndex\_t]\(#ad15b3c697f22fd80a8a42e5547c5b8e4)

### SecTransactionData\_t <a href="#a8963c1dd7c626a621a8033209294fcbd" id="a8963c1dd7c626a621a8033209294fcbd"></a>

typedef [CTransactionData](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classcom__adksec__cmd_1_1_c_transaction_data.md) \[SecTransactionData\_t]\(#a8963c1dd7c626a621a8033209294fcbd)

### SecTransactionValue <a href="#abddf3fd58f8658a7475911ed80e0fe20" id="abddf3fd58f8658a7475911ed80e0fe20"></a>

typedef [CTransactionValue](https://github.com/verifoneone/verifone-git-book-adk/tree/ADK5.1_staging/classcom__adksec__cmd_1_1_c_transaction_value.md) \[SecTransactionValue]\(#abddf3fd58f8658a7475911ed80e0fe20)

### EnumerationType Documentation <a href="#enumeration-type-documentation" id="enumeration-type-documentation"></a>

### secError <a href="#af511ddd4237541a758df48299546d49a" id="af511ddd4237541a758df48299546d49a"></a>

enum \[secError]\(#af511ddd4237541a758df48299546d49a)

Error-codes

### secErrorGroup <a href="#afe1062c1bfd2726a8d1ab38e7811bfb1" id="afe1062c1bfd2726a8d1ab38e7811bfb1"></a>

enum \[secErrorGroup]\(#afe1062c1bfd2726a8d1ab38e7811bfb1)

This is for Grouping the Error-Codes of secError in Groups using an offset

|                     |                                    |
| ------------------- | ---------------------------------- |
| Enumerator          |                                    |
| EsecGroupCommon     | Common, compatible with errno.h.   |
| EsecGroupApi        | Api-lib.                           |
| EsecGroupEncGov     | EncryptionGovernor main.           |
| EsecGroupIPC        | IPC related.                       |
| EsecGroupEncConfig  | Configuration related.             |
| EsecGroupEncTA      | TransactionData related.           |
| EsecGroupEncVSS     | VSS specific.                      |
| EsecGroupEncIPP     | IPP specific.                      |
| EsecGroupEncSRED    | SRED specific.                     |
| EsecGroupEncADE     | ADE specific.                      |
| EsecGroupEncBendigo | Bendigo specific.                  |
| EsecGroupEncVOL     | Voltage specific.                  |
| EsecGroupEncVDSP    | Visa DSP specific.                 |
| EsecGroupEncRSA     | RSA specific.                      |
| EsecGroupEncAES     | AES specific.                      |
| EsecGroupEncCryptRW | Crypto Read/Write module specific. |
| EsecGroupEncMSK     | MSK module specific.               |
| EsecGroupEncCustRKL | Custom RKL module specific.        |
| EsecGroupDUKPT      | DUKPT modules group.               |
| EsecGroupMASK       |                                    |

### FunctionDocumentation <a href="#function-documentation" id="function-documentation"></a>

### getErrorDescription() <a href="#a3121d76c18d310000977ac9d2ddc3c07" id="a3121d76c18d310000977ac9d2ddc3c07"></a>

std::string com\_adksec\_cmd::getErrorDescription

Get description of error-code

**Parameters**

**error** value of secError e.g. EsecINVAL

#### Returns

descriptive text, e.g "Invalid argument"

### getErrorString() <a href="#aad94ea47fc0f24cdb4d5079c910d11b5" id="aad94ea47fc0f24cdb4d5079c910d11b5"></a>

std::string com\_adksec\_cmd::getErrorString

Get name of error-code

**Parameters**

**error** value of secError e.g. EsecINVAL

#### Returns

descriptive text, e.g "EsecINVAL"


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://sandbox-docs.verifone.com/s-adk-5.1-programmers-guide/readme/namespaces/namespacecom__adksec__cmd.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
