|
@@ -245,12 +245,8 @@ class GmService
|
|
{
|
|
{
|
|
//php_SM2Decrypt 接收密文值是c1c3c2格式,若对方给的密文值是DER格式 则通过如下方式转换,然后再传入接口解密
|
|
//php_SM2Decrypt 接收密文值是c1c3c2格式,若对方给的密文值是DER格式 则通过如下方式转换,然后再传入接口解密
|
|
$recode = php_SM2FormatConvert(101, $data, $c1c3c2);
|
|
$recode = php_SM2FormatConvert(101, $data, $c1c3c2);
|
|
- dump($recode);
|
|
|
|
- die;
|
|
|
|
//解密
|
|
//解密
|
|
$recode = php_SM2Decrypt($c1c3c2, $plain, $privkey);
|
|
$recode = php_SM2Decrypt($c1c3c2, $plain, $privkey);
|
|
- dump("<br/>recode:$recode \n");
|
|
|
|
- dump("<br/>解密数据plain: $plain\n");
|
|
|
|
return $plain;
|
|
return $plain;
|
|
}
|
|
}
|
|
|
|
|