---
name: "cpa_sample_code"
section: "7"
platform: "linux"
package: "qatlib-examples"
version: "24.02.0-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cpa_sample_code"
---

# cpa\_sample\_code(7)

showcase of Intel QuickAssist device functionality and performance

## NAME

cpa\_sample\_code - showcase of Intel QuickAssist device functionality and performance

## SYNOPSIS

cpa\_sample\_code \[ signOfLife=1 \| getOffloadCost=1 \| getLatency=1 \] \[ runTests=mask \]

## DESCRIPTION

This example tool showcases the functionality and performance of Intel QuickAssist devices.

## OPTIONS

mask for runTests:

| | |
| --- | --- |
| runTests=1 | Run symmetric crypto tests. |
| runTests=2 | Run RSA test. |
| runTests=4 | Run DSA test. |
| runTests=8 | Run ECDSA test. |
| runTests=16 | Run DH test |
| runTests=32 | Run Stateless Compression test. |
| runTests=63 | Run all above tests. (default) |
| runTests=1024 | Run SM2 test. |
| runTests=2048 | Run SM3&4 test. |

## EXAMPLES

run the full suite of symmetric cryptography, asymmetric cryptography and data compression operations:

-

  `cpa_sample_code`

run a small number of each operation type:

-

  `cpa_sample_code signOfLife=1`

run only RSA operations:

-

  `cpa_sample_code runTests=2`\

## FURTHER INFORMATION

https://intel.github.io/quickassist/qatlib/sample\_code.html\
 https://github.com/intel/qatlib/blob/main/quickassist/lookaside/access\_layer/src/sample\_code/README.txt
