Package net.minecraft.network
Class NetworkEncryptionUtils
java.lang.Object
net.minecraft.network.NetworkEncryptionUtils
public class NetworkEncryptionUtils extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NetworkEncryptionUtils() -
Method Summary
Modifier and Type Method Description static CiphercipherFromKey(int opMode, Key key)private static Ciphercrypt(int opMode, String algorithm, Key key)private static byte[]crypt(int opMode, Key key, byte[] data)static byte[]decrypt(Key key, byte[] data)static SecretKeydecryptSecretKey(PrivateKey privateKey, byte[] encryptedSecretKey)static byte[]encrypt(Key key, byte[] data)static SecretKeygenerateKey()static byte[]generateServerId(String baseServerId, PublicKey publicKey, SecretKey secretKey)static KeyPairgenerateServerKeyPair()private static byte[]hash(String algorithm, byte[][] data)static PublicKeyreadEncodedPublicKey(byte[] byte2)
-
Field Details
-
Constructor Details
-
NetworkEncryptionUtils
public NetworkEncryptionUtils()
-
-
Method Details