cmb
This commit is contained in:
parent
8c2aff8d35
commit
5dfd3c39c3
|
|
@ -119,6 +119,10 @@ func (s *CmbMixRepoImpl) GetRequest(_ context.Context, reqBo *bo.CmbRequestBo) (
|
|||
|
||||
func (s *CmbMixRepoImpl) GetMockRequest(_ context.Context, bizContent string) (*v1.CmbRequest, error) {
|
||||
|
||||
if len(s.bc.Cmb.CmbSm2Pik) == 0 {
|
||||
return nil, errors.New("mock cmb sm2 pik is empty")
|
||||
}
|
||||
|
||||
encryptBody, err := cmb.Encrypt(s.bc.Cmb.Sm2Puk, bizContent)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Reference in New Issue