qcrypto

QNX SDP8.0Utilities ReferenceUtilities

QNX Cryptography Library utility

Syntax:

qcrypto [cmd] [-h] [-v]

qcrypto speed [-C cipher | -D digest] [-P plugin]

Runs on:

QNX OS

Options:

-h
Print help.
speed [-C cipher | -D digest] [-P plugin]
Benchmark cryptographic algorithms.
-C cipher
Specify the name of the cipher algorithm (e.g., chacha20).
-D digest
Specify the name of the digest algorithm (e.g., sha256).
-P plugin
Specify the plugin name from which to test the algorithm (e.g., openssl) . You can use this option up to 10 times to compare many plugins at once. If not specified, qcrypto uses the first available plugin. Plugins can either be from those provided in the qcrypto library or created through qcrypto_*_request(). Go to "Adding cyptographic primitives" in the "QNX Cryptography Library" in the System Security Guide for more information.
-v
Increase verbosity.

Description:

The qcrypto utility provide features related to the qcrypto library, such as benchmarking.

Examples:

Creating speed benchmarks for the Certicom, Openssl, and TomCrypt plugins using the sha256 digest algorithm with increased verbosity:

 qcrypto speed -v -D sha256 -P certicom -P openssl-3 -P tomcrypt

produces the following output:

Benchmarking 'sha256' digest on the following plugin(s): certicom, openssl-3, tomcrypt

plugin: certicom
executed 2097152 digests of size 16 bytes in 0.64 secs
executed 524288 digests of size 64 bytes in 0.29 secs
executed 131072 digests of size 256 bytes in 0.16 secs
executed 32768 digests of size 1024 bytes in 0.13 secs
executed 8192 digests of size 4096 bytes in 0.12 secs
executed 4096 digests of size 8192 bytes in 0.12 secs
executed 1024 digests of size 32768 bytes in 0.11 secs
plugin: openssl-3
executed 2097152 digests of size 16 bytes in 0.59 secs
executed 524288 digests of size 64 bytes in 0.21 secs
executed 131072 digests of size 256 bytes in 0.09 secs
executed 32768 digests of size 1024 bytes in 0.07 secs
executed 8192 digests of size 4096 bytes in 0.06 secs
executed 4096 digests of size 8192 bytes in 0.06 secs
executed 1024 digests of size 32768 bytes in 0.06 secs
plugin: tomcrypt
executed 2097152 digests of size 16 bytes in 0.50 secs
executed 524288 digests of size 64 bytes in 0.24 secs
executed 131072 digests of size 256 bytes in 0.14 secs
executed 32768 digests of size 1024 bytes in 0.12 secs
executed 8192 digests of size 4096 bytes in 0.11 secs
executed 4096 digests of size 8192 bytes in 0.11 secs
executed 1024 digests of size 32768 bytes in 0.11 secs

Benchmark results for 'sha256' digest (KiB/s):
plugin              16         64        256       1024       4096       8192      32768
certicom      51111.94  114905.67  204454.08  254959.48  273627.82  280337.46  286114.91
openssl-3     55381.58  154240.87  347462.37  500356.97  556028.92  569552.88  579293.17
tomcrypt      65628.61  138790.80  228993.82  273523.04  288297.46  292169.56  294202.58
Page updated: