display pki sm2 local-key-pair public (System view)

Function

The display pki sm2 local-key-pair public command displays information about the SM2 key pair and public key.

Format

display pki sm2 local-key-pair [ name key-name ] public

Parameters

Parameter Description Value
name key-name Specifies the name of the SM2 key pair that you want to view. The value must be an existing SM2 key pair name.

Views

System view

Default Level

3: Management level

Usage Guidelines

This command shows information about the SM2 key pairs and public keys, including the creation time, key pair name, whether the key can be exported, and public key information.

If the key-name parameter is not specified, information about all SM2 keys and public keys is displayed. If the key-name parameter is specified, information about only the specified SM2 key and public key is displayed.

Example

# Display information about all SM2 key pairs.

<sysname> display pki sm2 local-key-pair public

=====================================================
Time of Key pair created: 16:59:08  2016/4/15
Key Name: 123
Key Index: 0
Key Modules: -
Key Exportable: No
=====================================================
Public-Key: (256 bit)
pub:
    04:d8:bc:77:f6:cd:6d:65:5f:c2:08:29:a4:ad:de:
    bf:d6:ee:59:5e:ba:a1:e2:38:6f:d5:e4:ff:4c:a3:
    97:b2:3b:1a:1d:12:02:5a:5d:a2:57:21:6a:8e:e5:
    29:3d:5f:84:b6:5a:5f:b9:5f:f4:76:f8:26:34:fb:
    ea:f0:66:b9:eb
Field Type: prime-field
Prime:
    00:ff:ff:ff:fe:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
    ff:ff:ff:ff:ff:ff:00:00:00:00:ff:ff:ff:ff:ff:
    ff:ff:ff
A:
    00:ff:ff:ff:fe:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
    ff:ff:ff:ff:ff:ff:00:00:00:00:ff:ff:ff:ff:ff:
    ff:ff:fc
B:
    28:e9:fa:9e:9d:9f:5e:34:4d:5a:9e:4b:cf:65:09:
    a7:f3:97:89:f5:15:ab:8f:92:dd:bc:bd:41:4d:94:
    0e:93
Generator (uncompressed):
    04:32:c4:ae:2c:1f:19:81:19:5f:99:04:46:6a:39:
    c9:94:8f:e3:0b:bf:f2:66:0b:e1:71:5a:45:89:33:
    4c:74:c7:bc:37:36:a2:f4:f6:77:9c:59:bd:ce:e3:
    6b:69:21:53:d0:a9:87:7c:c6:2a:47:40:02:df:32:
    e5:21:39:f0:a0
Order:
    00:ff:ff:ff:fe:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:
    ff:ff:72:03:df:6b:21:c6:05:2b:53:bb:f4:09:39:
    d5:41:23
Cofactor:  1 (0x1)                                
Table 1 Description of the display pki sm2 local-key-pair public command output

Item

Description

Time of Key pair created

SM2 Key pair creation time.

Key Name

Name of the SM2 key pair.

Key Index

SM2 Key index.

Key Modules

SM2 Key modules.

Key Exportable

Whether the SM2 key can be exported.

Public-Key

SM2 Public key information.

pub

Public key in the SM2 key pair.

A

Prime number a in the SM2 elliptic curve cryptography (ECC).

B

Prime number b in the SM2 ECC.

Generator (uncompressed)

Generator of the SM2 ECC and whether the generator is compressed if it is converted into a large value.

Order

Order of the SM2 ECC generator.

Cofactor

Cofactor of the SM2 ECC, which is the Number of ECC points/Order of generator.


Copyright © Huawei Technologies Co., Ltd.