> 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/annotated/class_auth_sec.md).

# AuthSec

[Public Member Functions](#pub-methods) | [Friends](#friends)

Inheritance diagram for AuthSec:

![Inheritance graph](/files/IcdIIMwALeWB6ok8nazj)

\[[legend](/s-adk-5.1-programmers-guide/graph_legend.md)]

Collaboration diagram for AuthSec:

![Collaboration graph](/files/3xGiOV5CwUMo8Ui516tD)

\[[legend](/s-adk-5.1-programmers-guide/graph_legend.md)]

|                                                                                                                                              |                                                                                                                                                                                                                                                                                                                                                                                             |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Public Member Functions                                                                                                                      |                                                                                                                                                                                                                                                                                                                                                                                             |
| bool                                                                                                                                         | [check\_script](#a6c0da48bde8b51d19ecb7fb4c723624a) ()                                                                                                                                                                                                                                                                                                                                      |
| bool                                                                                                                                         | [calculate\_CMAC](#a72ff4516c6078c2f4ceda1515242a19d) ([Inputype](/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/crypt_8h.md#adcc10b90a6f6d8e58954648e01763711) type, const char \*fileToMAC, unsigned char \*dataToMAC, unsigned dataSize, unsigned char \*MAC)                                                       |
| bool                                                                                                                                         | [encrypt](#a10480c2f42d70c4fc3a332d9d2bea3bf) (unsigned char \*data, unsigned long dataSize, unsigned char \*encryptedData, unsigned long \*encryptedDataSize)                                                                                                                                                                                                                              |
| bool                                                                                                                                         | [decrypt](#a1c31978e1efd0a840145ffe3ecc843c3) (unsigned char \*data, unsigned long dataSize, unsigned char \*decryptedData, unsigned long \*decryptedDataSize)                                                                                                                                                                                                                              |
| ![-](/files/V896q5dGMdwwOyPuNC4M) Public Member Functions inherited from [Auth](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md) |                                                                                                                                                                                                                                                                                                                                                                                             |
| bool                                                                                                                                         | [auth](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md#a85e67481b08ac33c3000d56d64dd2922) (enum [AuthStep](/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/crypt_8h.md#ab97c53cf460f4280eb94c660cb5e357d) as, unsigned char \*in, unsigned short in\_size, unsigned char \*out, unsigned short \*out\_size) |

|         |                                            |
| ------- | ------------------------------------------ |
| Friends |                                            |
| class   | [Auth](#abfe5b7d9add6f85e1fcd0b604262ccd3) |

|                                                                                                                                                     |                                                                                                              |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| Additional Inherited Members                                                                                                                        |                                                                                                              |
| ![-](/files/V896q5dGMdwwOyPuNC4M) Static Public Member Functions inherited from [Auth](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md) |                                                                                                              |
| static [Auth](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md) \*                                                                       | [instance](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md#a34a7f34048a76d137e09e234c99a76d5) () |

### MemberFunction Documentation <a href="#member-function-documentation" id="member-function-documentation"></a>

### calculate\_CMAC() <a href="#a72ff4516c6078c2f4ceda1515242a19d" id="a72ff4516c6078c2f4ceda1515242a19d"></a>

bool calculate\_CMAC

inlinevirtual

Implements [Auth](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md#a72515d1cf7bf20870d6979365f3033a9).

### check\_script() <a href="#a6c0da48bde8b51d19ecb7fb4c723624a" id="a6c0da48bde8b51d19ecb7fb4c723624a"></a>

bool check\_script

inlinevirtual

Implements [Auth](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md#a8cbbb48867a5f9cb2469169b1d494c07).

### decrypt() <a href="#a1c31978e1efd0a840145ffe3ecc843c3" id="a1c31978e1efd0a840145ffe3ecc843c3"></a>

bool decrypt

inlinevirtual

Implements [Auth](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md#af520b0e5403987294b00d0128f02d26e).

### encrypt() <a href="#a10480c2f42d70c4fc3a332d9d2bea3bf" id="a10480c2f42d70c4fc3a332d9d2bea3bf"></a>

bool encrypt

inlinevirtual

Implements [Auth](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md#aaea1d16d32c15533a4083c393e6cec2c).

### FriendsAnd Related Function Documentation <a href="#friends-and-related-function-documentation" id="friends-and-related-function-documentation"></a>

### Auth <a href="#abfe5b7d9add6f85e1fcd0b604262ccd3" id="abfe5b7d9add6f85e1fcd0b604262ccd3"></a>

friend class [Auth](/s-adk-5.1-programmers-guide/readme/annotated/class_auth.md)

friend

***

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

* sdi/src/[crypt.cpp](/s-adk-5.1-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/crypt_8cpp.md)


---

# 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/annotated/class_auth_sec.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.
