0xdcarns 3 tahun lalu
induk
melakukan
3736c152c1
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      mq/util.go

+ 2 - 0
mq/util.go

@@ -19,10 +19,12 @@ func decryptMsg(msg []byte) ([]byte, error) {
 }
 
 func encrypt(node *models.Node, dest string, msg []byte) ([]byte, error) {
+	fmt.Printf("original length: %d \n", len(msg))
 	encrypted := ncutils.BuildMessage(msg, &node.TrafficKeys.Mine)
 	if encrypted == "" {
 		return nil, fmt.Errorf("could not encrypt message")
 	}
+	fmt.Printf("resulting length: %d \n", len(encrypted))
 	return []byte(encrypted), nil
 }