You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug 你的问题的描述
添加假人时报错:
客户端线程发生异常: java.lang.AssertionError: Unable to initialize required encryption
at com.nukkitx.protocol.bedrock.util.EncryptionUtils.createCipher(EncryptionUtils.java:277)
at com.nukkitx.protocol.bedrock.BedrockSession.enableEncryption(BedrockSession.java:236)
at com.ddf.fakeplayer.network.ClientPacketHandler.handle(ClientPacketHandler.java:94)
at com.nukkitx.protocol.bedrock.packet.ServerToClientHandshakePacket.handle(ServerToClientHandshakePacket.java:19)
at com.ddf.fakeplayer.client.Client.update(Client.java:294)
at com.ddf.fakeplayer.client.Client$ClientThread.run(Client.java:561)
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
at javax.crypto.Cipher.implInit(Cipher.java:805)
at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
at javax.crypto.Cipher.init(Cipher.java:1396)
at javax.crypto.Cipher.init(Cipher.java:1327)
at com.nukkitx.protocol.bedrock.util.EncryptionUtils.createCipher(EncryptionUtils.java:274)
... 5 more
To Reproduce(Optional) 复现该问题的方法(可选)
Steps to reproduce the behavior
Version & Environment 软件版本和环境
Describe the bug 你的问题的描述
添加假人时报错:
客户端线程发生异常: java.lang.AssertionError: Unable to initialize required encryption
at com.nukkitx.protocol.bedrock.util.EncryptionUtils.createCipher(EncryptionUtils.java:277)
at com.nukkitx.protocol.bedrock.BedrockSession.enableEncryption(BedrockSession.java:236)
at com.ddf.fakeplayer.network.ClientPacketHandler.handle(ClientPacketHandler.java:94)
at com.nukkitx.protocol.bedrock.packet.ServerToClientHandshakePacket.handle(ServerToClientHandshakePacket.java:19)
at com.ddf.fakeplayer.client.Client.update(Client.java:294)
at com.ddf.fakeplayer.client.Client$ClientThread.run(Client.java:561)
Caused by: java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)
at javax.crypto.Cipher.implInit(Cipher.java:805)
at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
at javax.crypto.Cipher.init(Cipher.java:1396)
at javax.crypto.Cipher.init(Cipher.java:1327)
at com.nukkitx.protocol.bedrock.util.EncryptionUtils.createCipher(EncryptionUtils.java:274)
... 5 more
To Reproduce(Optional) 复现该问题的方法(可选)
Steps to reproduce the behavior
Screenshots or log 截图或日志
Additional content 附加内容
trusted-key已添加到服务器,并重启过服务了
The text was updated successfully, but these errors were encountered: