> 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/adk-5.0-programmers-guide/readme/annotated/class_auth.md).

# Auth

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

Inheritance diagram for Auth:

![Inheritance graph](/files/CiKjFt0EXFGQQqUhQd9W)

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

|                         |                                                                                                                                                                                                                                                                                                                                       |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Public Member Functions |                                                                                                                                                                                                                                                                                                                                       |
| bool                    | [auth](#a85e67481b08ac33c3000d56d64dd2922) (enum [AuthStep](/adk-5.0-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)        |
| virtual bool            | [check\_script](#a8cbbb48867a5f9cb2469169b1d494c07) ()=0                                                                                                                                                                                                                                                                              |
| virtual bool            | [calculate\_CMAC](#a72515d1cf7bf20870d6979365f3033a9) ([Inputype](/adk-5.0-programmers-guide/readme/files/dir_44d926a17fc606d3c25449ba60427c63/dir_048f823fee1bfb22502a8732b9a001aa/crypt_8h.md#adcc10b90a6f6d8e58954648e01763711) type, const char \*fileToMAC, unsigned char \*dataToMAC, unsigned dataSize, unsigned char \*MAC)=0 |
| virtual bool            | [encrypt](#aaea1d16d32c15533a4083c393e6cec2c) (unsigned char \*data, unsigned long dataSize, unsigned char \*encryptedData, unsigned long \*encryptedDataSize)=0                                                                                                                                                                      |
| virtual bool            | [decrypt](#af520b0e5403987294b00d0128f02d26e) (unsigned char \*data, unsigned long dataSize, unsigned char \*decryptedData, unsigned long \*decryptedDataSize)=0                                                                                                                                                                      |

|                                                                             |                                                   |
| --------------------------------------------------------------------------- | ------------------------------------------------- |
| Static Public Member Functions                                              |                                                   |
| static [Auth](/adk-5.0-programmers-guide/readme/annotated/class_auth.md) \* | [instance](#a34a7f34048a76d137e09e234c99a76d5) () |

|         |                                               |
| ------- | --------------------------------------------- |
| Friends |                                               |
| class   | [AuthSec](#a927c4ec4747518163a64b72d48c82a18) |

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

### auth() <a href="#a85e67481b08ac33c3000d56d64dd2922" id="a85e67481b08ac33c3000d56d64dd2922"></a>

bool auth

inline

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

virtual bool calculate\_CMAC

pure virtual

Implemented in [AuthSec](/adk-5.0-programmers-guide/readme/annotated/class_auth_sec.md#a72ff4516c6078c2f4ceda1515242a19d).

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

virtual bool check\_script

pure virtual

Implemented in [AuthSec](/adk-5.0-programmers-guide/readme/annotated/class_auth_sec.md#a6c0da48bde8b51d19ecb7fb4c723624a).

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

virtual bool decrypt

pure virtual

Implemented in [AuthSec](/adk-5.0-programmers-guide/readme/annotated/class_auth_sec.md#a1c31978e1efd0a840145ffe3ecc843c3).

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

virtual bool encrypt

pure virtual

Implemented in [AuthSec](/adk-5.0-programmers-guide/readme/annotated/class_auth_sec.md#a10480c2f42d70c4fc3a332d9d2bea3bf).

### instance() <a href="#a34a7f34048a76d137e09e234c99a76d5" id="a34a7f34048a76d137e09e234c99a76d5"></a>

[Auth](/adk-5.0-programmers-guide/readme/annotated/class_auth.md) \\\* instance

static

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

### AuthSec <a href="#a927c4ec4747518163a64b72d48c82a18" id="a927c4ec4747518163a64b72d48c82a18"></a>

friend class [AuthSec](/adk-5.0-programmers-guide/readme/annotated/class_auth_sec.md)

friend

***

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

* sdi/src/[crypt.cpp](/adk-5.0-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/adk-5.0-programmers-guide/readme/annotated/class_auth.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.
