> For the complete documentation index, see [llms.txt](https://developer.magtek.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/data-types-and-shared-tlv-data-objects/security-operation-type.md).

# Security Operation Type

This non-TLV data structure consists of four or five bytes that describes a security operation, including the algorithms and methods to be used in that operation.

## **Table SOT-1 - Security Operation Type**

<table><thead><tr><th width="89">Offset</th><th>Description</th><th width="75.33331298828125">Typ</th><th width="74.84857177734375">Req</th><th width="97.7574462890625">Default</th></tr></thead><tbody><tr><td>0</td><td><p></p><p>Operation Type</p><ul><li>0x01 = Key Agreement</li><li>0x02 = Command Authorization Using Signature</li><li>0x03 = Command Authorization Using MAC</li><li>0x05 = Data Authentication Using MAC</li><li>0x07 = Data Encryption</li><li>0x10 = Data Signature</li></ul></td><td>B</td><td>R</td><td></td></tr><tr><td>1</td><td><p></p><p>Operation Algorithm If <strong>Operation Type</strong> is Key Agreement type:</p><ul><li>0x01 = ECDHE</li></ul><p>If <strong>Operation Type</strong> is a Signature type:</p><ul><li>0x01 = ECDSA (indeterministic)</li></ul><p>If <strong>Operation Type</strong> is a MAC type:</p><ul><li>0x01 = HMAC</li><li>0x02 = CBC-MAC</li><li>0x03 = CMAC</li></ul><p>If <strong>Operation Type</strong> is an Encryption type:</p><ul><li>0x01 = DEA</li><li>0x02 = 2TDEA</li><li>0x03 = 3TDEA</li><li>0x04 = AES-128</li><li>0x05 = AES-192</li><li>0x06 = AES-256</li></ul></td><td>B</td><td>R</td><td></td></tr><tr><td>2</td><td><p>Operation Curve/Mode/Hash/Cipher If <strong>Operation Type</strong> is a Key Agreement type, this specifies the Curve:</p><ul><li>0x01 = P192</li><li>0x02 = P224</li><li>0x03 = P256</li><li>0x04 = P384</li><li>0x05 = P521</li></ul><p>If <strong>Operation Type</strong> is a Signature type, this specifies the Hash:</p><ul><li>0x01 = MD5</li><li>0x02 = SHA-1</li><li>0x03 = SHA-224</li><li>0x04 = SHA-256</li><li>0x05 = SHA-384</li><li>0x06 = SHA-512</li><li>0x07 = SHA-512/224</li><li>0x08 = SHA-512/256</li><li>0x09 = SHA3-224</li><li>0x0A = SHA3-256</li><li>0x0B = SHA3-384</li><li>0x0C = SHA3-512</li></ul><p>If <strong>Operation Type</strong> is a MAC type, this specifies the Encryption Algorithm:</p><ul><li>0x01 = DEA</li><li>0x02 = 2TDEA</li><li>0x03 = 3TDEA</li><li>0x04 = AES-128</li><li>0x05 = AES-192</li><li>0x06 = AES-256</li></ul><p>If <strong>Operation Type</strong> is an Encryption type, this specifies the Mode:</p><ul><li>0x01 = ECB (Block)</li><li>0x02 = CBC (Block)</li><li>0x03 = CFB (Stream)</li><li>0x04 = OFB (Stream)</li><li>0x05 = CTR (Stream)</li></ul></td><td>B</td><td>R</td><td></td></tr><tr><td>3</td><td><p></p><p>KDF/Curve/Padding If <strong>Operation Type</strong> is a Key Agreement type, this specifies the KDF:</p><ul><li>0x01 = SP800-56A / X9.63</li></ul><p>If <strong>Operation Type</strong> is a Signature type, this specifies the Curve:</p><ul><li>0x01 = P192</li><li>0x02 = P224</li><li>0x03 = P256</li><li>0x04 = P384</li><li>0x05 = P521</li></ul><p>If <strong>Operation Type</strong> is a MAC type, this specifies the Padding:</p><ul><li>0x00 = None (for streaming modes)</li><li>0x01 = Zeros (ISO 9797 Padding Method 1)</li><li>0x02 = One and zeros (ISO 9797 Method 2)</li><li>0x03 = Length + zeros (ISO 9797 Method 3)</li><li>0x10 = PKCS7 (pad # = pad length)</li><li>0x11 = X9.23 (random + pad length)</li><li>0x20 = Random (when length is known)</li></ul><p>If <strong>Operation Type</strong> is an Encryption type, this specifies the Padding:</p><ul><li>0x00 = None (for streaming modes)</li><li>0x01 = Zeros (ISO 9797 Padding Method 1)</li><li>0x02 = One and zeros (ISO 9797 Method 2)</li><li>0x03 = Length + zeros (ISO 9797 Method 3)</li><li>0x10 = PKCS7 (pad # = pad length)</li><li>0x11 = X9.23 (random + pad length)</li><li>0x20 = Random (when length is known)</li></ul></td><td>B</td><td>R</td><td></td></tr><tr><td>4</td><td>MAC Block Size If <strong>Operation Type</strong> is a MAC type, this specifies the data to be MACed must be padded to a multiple of this many bytes. For all other Operation Types, do not include this byte.</td><td>B</td><td>O</td><td></td></tr></tbody></table>


---

# 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://developer.magtek.com/api-and-command-reference/scra-dynafamily-programmers-manual/data-types-and-shared-tlv-data-objects/security-operation-type.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.
