@@ 580-585 (lines=6) @@ | ||
577 | * 在使用本方法前,必须初始化AopClient且传入公钥参数。 |
|
578 | * 公钥是否是读取字符串还是读取文件,是根据初始化传入的值判断的。 |
|
579 | **/ |
|
580 | public function rsaCheckV1($params, $rsaPublicKeyFilePath,$signType='RSA') { |
|
581 | $sign = $params['sign']; |
|
582 | $params['sign_type'] = null; |
|
583 | $params['sign'] = null; |
|
584 | return $this->verify($this->getSignContent($params), $sign, $rsaPublicKeyFilePath,$signType); |
|
585 | } |
|
586 | public function rsaCheckV2($params, $rsaPublicKeyFilePath, $signType='RSA') { |
|
587 | print_r($params); |
|
588 | $sign = $params['sign']; |
|
@@ 586-591 (lines=6) @@ | ||
583 | $params['sign'] = null; |
|
584 | return $this->verify($this->getSignContent($params), $sign, $rsaPublicKeyFilePath,$signType); |
|
585 | } |
|
586 | public function rsaCheckV2($params, $rsaPublicKeyFilePath, $signType='RSA') { |
|
587 | print_r($params); |
|
588 | $sign = $params['sign']; |
|
589 | $params['sign'] = null; |
|
590 | return $this->verify($this->getSignContent($params), $sign, $rsaPublicKeyFilePath, $signType); |
|
591 | } |
|
592 | ||
593 | function verify($data, $sign, $rsaPublicKeyFilePath, $signType = 'RSA') { |
|
594 |