Class NetworkEncryptionUtils

java.lang.Object
net.minecraft.network.NetworkEncryptionUtils

public class NetworkEncryptionUtils extends Object
Mappings:
Namespace Name
official oc
intermediary net/minecraft/class_826
named net/minecraft/network/NetworkEncryptionUtils
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_11845 Lnet/minecraft/class_826;field_11845:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/network/NetworkEncryptionUtils;LOGGER:Lorg/apache/logging/log4j/Logger;
  • Constructor Details

    • NetworkEncryptionUtils

      public NetworkEncryptionUtils()
  • Method Details

    • generateKey

      @Environment(CLIENT) public static SecretKey generateKey()
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a()Ljavax/crypto/SecretKey;
      intermediary method_2280 Lnet/minecraft/class_826;method_2280()Ljavax/crypto/SecretKey;
      named generateKey Lnet/minecraft/network/NetworkEncryptionUtils;generateKey()Ljavax/crypto/SecretKey;
    • generateServerKeyPair

      public static KeyPair generateServerKeyPair()
      Mappings:
      Namespace Name Mixin selector
      official b Loc;b()Ljava/security/KeyPair;
      intermediary method_2291 Lnet/minecraft/class_826;method_2291()Ljava/security/KeyPair;
      named generateServerKeyPair Lnet/minecraft/network/NetworkEncryptionUtils;generateServerKeyPair()Ljava/security/KeyPair;
    • generateServerId

      public static byte[] generateServerId(String baseServerId, PublicKey publicKey, SecretKey secretKey)
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a(Ljava/lang/String;Ljava/security/PublicKey;Ljavax/crypto/SecretKey;)[B
      intermediary method_2283 Lnet/minecraft/class_826;method_2283(Ljava/lang/String;Ljava/security/PublicKey;Ljavax/crypto/SecretKey;)[B
      named generateServerId Lnet/minecraft/network/NetworkEncryptionUtils;generateServerId(Ljava/lang/String;Ljava/security/PublicKey;Ljavax/crypto/SecretKey;)[B
    • hash

      private static byte[] hash(String algorithm, byte[][] data)
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a(Ljava/lang/String;[[B)[B
      intermediary method_2284 Lnet/minecraft/class_826;method_2284(Ljava/lang/String;[[B)[B
      named hash Lnet/minecraft/network/NetworkEncryptionUtils;hash(Ljava/lang/String;[[B)[B
    • readEncodedPublicKey

      public static PublicKey readEncodedPublicKey(byte[] byte2)
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a([B)Ljava/security/PublicKey;
      intermediary method_2290 Lnet/minecraft/class_826;method_2290([B)Ljava/security/PublicKey;
      named readEncodedPublicKey Lnet/minecraft/network/NetworkEncryptionUtils;readEncodedPublicKey([B)Ljava/security/PublicKey;
    • decryptSecretKey

      public static SecretKey decryptSecretKey(PrivateKey privateKey, byte[] encryptedSecretKey)
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a(Ljava/security/PrivateKey;[B)Ljavax/crypto/SecretKey;
      intermediary method_2286 Lnet/minecraft/class_826;method_2286(Ljava/security/PrivateKey;[B)Ljavax/crypto/SecretKey;
      named decryptSecretKey Lnet/minecraft/network/NetworkEncryptionUtils;decryptSecretKey(Ljava/security/PrivateKey;[B)Ljavax/crypto/SecretKey;
    • encrypt

      @Environment(CLIENT) public static byte[] encrypt(Key key, byte[] data)
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a(Ljava/security/Key;[B)[B
      intermediary method_2285 Lnet/minecraft/class_826;method_2285(Ljava/security/Key;[B)[B
      named encrypt Lnet/minecraft/network/NetworkEncryptionUtils;encrypt(Ljava/security/Key;[B)[B
    • decrypt

      public static byte[] decrypt(Key key, byte[] data)
      Mappings:
      Namespace Name Mixin selector
      official b Loc;b(Ljava/security/Key;[B)[B
      intermediary method_2292 Lnet/minecraft/class_826;method_2292(Ljava/security/Key;[B)[B
      named decrypt Lnet/minecraft/network/NetworkEncryptionUtils;decrypt(Ljava/security/Key;[B)[B
    • crypt

      private static byte[] crypt(int opMode, Key key, byte[] data)
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a(ILjava/security/Key;[B)[B
      intermediary method_2282 Lnet/minecraft/class_826;method_2282(ILjava/security/Key;[B)[B
      named crypt Lnet/minecraft/network/NetworkEncryptionUtils;crypt(ILjava/security/Key;[B)[B
    • crypt

      private static Cipher crypt(int opMode, String algorithm, Key key)
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a(ILjava/lang/String;Ljava/security/Key;)Ljavax/crypto/Cipher;
      intermediary method_2281 Lnet/minecraft/class_826;method_2281(ILjava/lang/String;Ljava/security/Key;)Ljavax/crypto/Cipher;
      named crypt Lnet/minecraft/network/NetworkEncryptionUtils;crypt(ILjava/lang/String;Ljava/security/Key;)Ljavax/crypto/Cipher;
    • cipherFromKey

      public static Cipher cipherFromKey(int opMode, Key key)
      Mappings:
      Namespace Name Mixin selector
      official a Loc;a(ILjava/security/Key;)Ljavax/crypto/Cipher;
      intermediary method_8304 Lnet/minecraft/class_826;method_8304(ILjava/security/Key;)Ljavax/crypto/Cipher;
      named cipherFromKey Lnet/minecraft/network/NetworkEncryptionUtils;cipherFromKey(ILjava/security/Key;)Ljavax/crypto/Cipher;