sm2_decryption
[sm2] SM2 私钥解密。 【参数】
sm2_private_key_in_pem:PEM 格式私钥
cipher_data_in_hex:密文 Hex
cipher_format:必须指定 C1C3C2_ASN1 / C1C2C3_ASN1 / C1C3C2 / C1C2C3
sm2_private_key_password:若私钥加密则传入 【输出】plain_data_in_hex、plain_length。 【注意】cipher_format 必须与加密时的格式对应,否则解密失败。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cipher_format | No | SM2 密文编码格式,可选值:C1C3C2_ASN1 / C1C2C3_ASN1 / C1C3C2 / C1C2C3 | |
| cipher_data_in_hex | No | 密文的十六进制字符串 | |
| sm2_private_key_in_pem | No | SM2 加密私钥的 PEM 文本(含 BEGIN/END ENCRYPTED PRIVATE KEY 头尾) | |
| sm2_private_key_password | No | SM2 私钥的加密密码(原始字符串,非编码格式) |