瀏覽代碼

removed size

0xdcarns 3 年之前
父節點
當前提交
03b05f7d7c
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      netclient/ncutils/netclientutils.go

+ 0 - 1
netclient/ncutils/netclientutils.go

@@ -555,7 +555,6 @@ func EncryptWithPublicKey(msg []byte, pub *rsa.PublicKey) ([]byte, error) {
 	if pub == nil {
 		return nil, errors.New("invalid public key when decrypting")
 	}
-	log.Printf("pub key size: %d \n", pub.Size())
 	hash := sha512.New()
 	ciphertext, err := rsa.EncryptOAEP(hash, crand.Reader, pub, msg, nil)
 	if err != nil {