Home >

LunaCM Command Reference Guide > LunaCM Commands > hsm > hsm showmechanism

hsm showmechanism

Displays a list of the cryptographic mechanisms supported on the HSM.

Note:  The lunacm hsm commands appear only when the current slot selected in lunacm is for a locally-installed HSM, such as a SafeNet PCIe HSM or SafeNet USB HSM. When lunacm is directed at a slot corresponding to a remote SafeNet Network HSM, the HSM-level commands do not appear, since lunacm has a client-only connection to a remote HSM and therefore cannot log in as SO to a remote HSM. To access HSM commands on the SafeNet Network HSM appliance, you must use the Luna Shell (lunash).

Syntax

hsm showmechanism[-m <number of a mechanism>]

Options Short Description
. . With no arguments/options, lists all available mechanisms
-m -m <number> Show expanded information for the indicated mechanism (optional). Include just the number, without the "Ox" prefix.

Example of List

lunacm:> hsm showmechanism
 
Mechanisms Supported:
 
0x00000000 - CKM_RSA_PKCS_KEY_PAIR_GEN
0x00000001 - CKM_RSA_PKCS
0x00000003 - CKM_RSA_X_509
0x00000006 - CKM_SHA1_RSA_PKCS
0x00000009 - CKM_RSA_PKCS_OAEP
0x0000000a - CKM_RSA_X9_31_KEY_PAIR_GEN
0x0000000c - CKM_SHA1_RSA_X9_31
0x0000000d - CKM_RSA_PKCS_PSS
0x0000000e - CKM_SHA1_RSA_PKCS_PSS
0x00000010 - CKM_DSA_KEY_PAIR_GEN
0x00000011 - CKM_DSA
0x00000012 - CKM_DSA_SHA1
.
.
.
0x80000140 - CKM_DSA_SHA224
0x80000141 - CKM_DSA_SHA256
0x80000a02 - CKM_NIST_PRF_KDF
0x80000a03 - CKM_PRF_KDF
 
Command Result : No Error

Example of Information about One Mechanism

lunacm:> hsm showmechanism -m 8000001b

(0x8000001b - -2147483621) CKM_XOR_BASE_AND_KEY
         Min Key Size 8
         Max Key Size 4096
         Flags 0x80001
Command Result : No Error

lunacm:>