Ben 1 rok pred
rodič
commit
84d7b45130
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      internal/util/rsa.go

+ 1 - 0
internal/util/rsa.go

@@ -44,6 +44,7 @@ func RsaEncrypt(origData []byte) ([]byte, error) {
 	}
 	}
 	pubInterface, err := x509.ParsePKIXPublicKey(block.Bytes)
 	pubInterface, err := x509.ParsePKIXPublicKey(block.Bytes)
 	if err != nil {
 	if err != nil {
+		log.Printf("can not public")
 		return nil, err
 		return nil, err
 	}
 	}
 	pub := pubInterface.(*rsa.PublicKey)
 	pub := pubInterface.(*rsa.PublicKey)