0

我想问是否可以在 android 设备上使用 silvertunnel-ng netlib 0.0.4。我尝试使用它,但我在库的加密类中遇到安全计算问题。

警告信息是:

WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): try to fix bug in security calculation with OpenJDK-6 java web start (ticket #59)
04-14 22:01:28.262  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): original decryptedDigest=01:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:00:a0:22:cd:61:ae:b0:44:f7:a2:a6:03:22:90:79:66:b6:51:c4:ec:de
04-14 22:01:28.262  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): dataDigest              =a0:22:cd:61:ae:b0:44:f7:a2:a6:03:22:90:79:66:b6:51:c4:ec:de
04-14 22:01:28.272  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): try to fix bug in security calculation with OpenJDK-6 java web start (ticket #59)
04-14 22:01:28.272  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): original decryptedDigest=01:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:00:3c:46:3d:7e:ac:1b:79:cb:d5:da:ba:1c:1a:0f:17:fa:13:f2:d0:07
04-14 22:01:28.272  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): dataDigest              =3c:46:3d:7e:ac:1b:79:cb:d5:da:ba:1c:1a:0f:17:fa:13:f2:d0:07
04-14 22:01:28.282  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): try to fix bug in security calculation with OpenJDK-6 java web start (ticket #59)
04-14 22:01:28.282  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): original decryptedDigest=01:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:00:03:73:9f:06:08:84:cc:9f:20:87:62:27:c6:84:e6:06:10:3e:80:63
04-14 22:01:28.282  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): dataDigest              =03:73:9f:06:08:84:cc:9f:20:87:62:27:c6:84:e6:06:10:3e:80:63
04-14 22:01:28.292  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): try to fix bug in security calculation with OpenJDK-6 java web start (ticket #59)
04-14 22:01:28.292  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): original decryptedDigest=01:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:00:ac:67:12:d3:81:4c:ea:7c:c9:20:a2:44:93:a4:55:16:bb:43:6b:64
04-14 22:01:28.292  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] WARN org.silvertunnel_ng.netlib.layer.tor.util.Encryption - verifySignature(): dataDigest              =ac:67:12:d3:81:4c:ea:7c:c9:20:a2:44:93:a4:55:16:bb:43:6b:64
04-14 22:01:28.632  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] INFO org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryConsensus - validUntil=Tue Apr 14 22:00:00 EEST 2015 is too old for currentDate=Tue Apr 14 22:01:28 EEST 2015



04-14 22:01:37.632  [org.silvertunnel_ng.netlib.layer.tor.directory.DirectoryManagerThread] INFO org.silvertunnel_ng.netlib.layer.tor.clientimpl.Tor - TorNetLayer new status: Router descriptors (Tor router details) will be loaded (30%)

[ControlNetSocketThread] INFO org.silvertunnel_ng.netlib.layer.control.ControlNetSocketThread - send timeout to ControlNetSocket(LoggingNetSocket(Socket2NetSocket(Socket[address=/82.94.251.203,port=80,localPort=37591]))): overall timeout reached
04-14 22:02:38.517   [ControlNetSocketThread] INFO org.silvertunnel_ng.netlib.layer.control.ControlNetSocketThread - send timeout to ControlNetSocket(LoggingNetSocket(Socket2NetSocket(Socket[address=/86.59.21.38,port=80,localPort=52887]))): overall timeout reached
04-14 22:03:08.799   [ControlNetSocketThread] INFO org.silvertunnel_ng.netlib.layer.control.ControlNetSocketThread - send timeout to ControlNetSocket(LoggingNetSocket(Socket2NetSocket(Socket[address=/128.31.0.39,port=9131,localPort=37239]))): overall timeout reached
04-14 22:03:39.192   [ControlNetSocketThread] INFO org.silvertunnel_ng.netlib.layer.control.ControlNetSocketThread - send timeout to ControlNetSocket(LoggingNetSocket(Socket2NetSocket(Socket[address=/171.25.193.9,port=443,localPort=46458]))): overall timeout reached
04-14 22:04:09.524   [ControlNetSocketThread] INFO org.silvertunnel_ng.netlib.layer.control.ControlNetSocketThread - send timeout to ControlNetSocket(LoggingNetSocket(Socket2NetSocket(Socket[address=/208.83.223.34,port=443,localPort=56812]))): overall timeout reached

总体超时已达到并且从未连接到 TOR 网络!

4

1 回答 1

2

此警告消息与真正的错误无关。这只是为了表明计算签名的正常实现在某些 JVM 上是不同的,因为此消息未提供任何值,我已从库中删除了此消息的日志记录。

真正的错误可以在这里找到。现在解决了这个问题,SilverTunnel-NG 现在能够连接到 Tor 网络。

当前唯一不起作用的是隐藏服务的设置。

可以在此处找到 Android 示例项目。

如果无法从 Tor 网络以足够快的速度加载路由器信息,通常会发生整体超时。

在 Android 上,发生这种情况的主要原因有两个:

  • 网络速度
  • 由于内存使用过多,垃圾收集器正在停止线程

SilverTunnel-NG 目前使用大约 100-200 MB 的 RAM,这对于普通的 Android 应用程序来说太大了。

要克服这个问题,请查看上面提到的 Android 示例项目。

于 2015-05-19T17:52:27.647 回答