Package net.minecraft.network.encryption
Class NetworkEncryptionUtils
java.lang.Object
net.minecraft.network.encryption.NetworkEncryptionUtils
- Mappings:
Namespace Name official agj
intermediary net/minecraft/class_3515
named net/minecraft/network/encryption/NetworkEncryptionUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Cipher
cipherFromKey(int opMode, Key key)
private static Cipher
private static byte[]
static byte[]
static SecretKey
decryptSecretKey(PrivateKey privateKey, byte[] encryptedSecretKey)
static byte[]
static SecretKey
static byte[]
generateServerId(String baseServerId, PublicKey publicKey, SecretKey secretKey)
static KeyPair
private static byte[]
hash(byte[][] byte2)
static PublicKey
readEncodedPublicKey(byte[] byte2)
-
Field Details
-
field_29830
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official a
Lagj;a:Ljava/lang/String;
intermediary field_29830
Lnet/minecraft/class_3515;field_29830:Ljava/lang/String;
named field_29830
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;field_29830:Ljava/lang/String;
-
field_29831
private static final int field_29831- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official b
Lagj;b:I
intermediary field_29831
Lnet/minecraft/class_3515;field_29831:I
named field_29831
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;field_29831:I
-
field_29832
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official c
Lagj;c:Ljava/lang/String;
intermediary field_29832
Lnet/minecraft/class_3515;field_29832:Ljava/lang/String;
named field_29832
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;field_29832:Ljava/lang/String;
-
field_29833
private static final int field_29833- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official d
Lagj;d:I
intermediary field_29833
Lnet/minecraft/class_3515;field_29833:I
named field_29833
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;field_29833:I
-
field_29834
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official e
Lagj;e:Ljava/lang/String;
intermediary field_29834
Lnet/minecraft/class_3515;field_29834:Ljava/lang/String;
named field_29834
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;field_29834:Ljava/lang/String;
-
field_29835
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official f
Lagj;f:Ljava/lang/String;
intermediary field_29835
Lnet/minecraft/class_3515;field_29835:Ljava/lang/String;
named field_29835
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;field_29835:Ljava/lang/String;
-
-
Constructor Details
-
NetworkEncryptionUtils
public NetworkEncryptionUtils()
-
-
Method Details
-
generateKey
- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official a
Lagj;a()Ljavax/crypto/SecretKey;
intermediary method_15239
Lnet/minecraft/class_3515;method_15239()Ljavax/crypto/SecretKey;
named generateKey
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;generateKey()Ljavax/crypto/SecretKey;
-
generateServerKeyPair
- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official b
Lagj;b()Ljava/security/KeyPair;
intermediary method_15237
Lnet/minecraft/class_3515;method_15237()Ljava/security/KeyPair;
named generateServerKeyPair
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;generateServerKeyPair()Ljava/security/KeyPair;
-
generateServerId
public static byte[] generateServerId(String baseServerId, PublicKey publicKey, SecretKey secretKey) throws NetworkEncryptionException- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official a
Lagj;a(Ljava/lang/String;Ljava/security/PublicKey;Ljavax/crypto/SecretKey;)[B
intermediary method_15240
Lnet/minecraft/class_3515;method_15240(Ljava/lang/String;Ljava/security/PublicKey;Ljavax/crypto/SecretKey;)[B
named generateServerId
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;generateServerId(Ljava/lang/String;Ljava/security/PublicKey;Ljavax/crypto/SecretKey;)[B
-
hash
- Throws:
Exception
- Mappings:
Namespace Name Mixin selector official a
Lagj;a([[B)[B
intermediary method_15236
Lnet/minecraft/class_3515;method_15236([[B)[B
named hash
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;hash([[B)[B
-
readEncodedPublicKey
- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official a
Lagj;a([B)Ljava/security/PublicKey;
intermediary method_15242
Lnet/minecraft/class_3515;method_15242([B)Ljava/security/PublicKey;
named readEncodedPublicKey
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;readEncodedPublicKey([B)Ljava/security/PublicKey;
-
decryptSecretKey
public static SecretKey decryptSecretKey(PrivateKey privateKey, byte[] encryptedSecretKey) throws NetworkEncryptionException- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official a
Lagj;a(Ljava/security/PrivateKey;[B)Ljavax/crypto/SecretKey;
intermediary method_15234
Lnet/minecraft/class_3515;method_15234(Ljava/security/PrivateKey;[B)Ljavax/crypto/SecretKey;
named decryptSecretKey
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;decryptSecretKey(Ljava/security/PrivateKey;[B)Ljavax/crypto/SecretKey;
-
encrypt
- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official a
Lagj;a(Ljava/security/Key;[B)[B
intermediary method_15238
Lnet/minecraft/class_3515;method_15238(Ljava/security/Key;[B)[B
named encrypt
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;encrypt(Ljava/security/Key;[B)[B
-
decrypt
- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official b
Lagj;b(Ljava/security/Key;[B)[B
intermediary method_15243
Lnet/minecraft/class_3515;method_15243(Ljava/security/Key;[B)[B
named decrypt
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;decrypt(Ljava/security/Key;[B)[B
-
crypt
- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official a
Lagj;a(ILjava/security/Key;[B)[B
intermediary method_15244
Lnet/minecraft/class_3515;method_15244(ILjava/security/Key;[B)[B
named crypt
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;crypt(ILjava/security/Key;[B)[B
-
crypt
- Throws:
Exception
- Mappings:
Namespace Name Mixin selector official a
Lagj;a(ILjava/lang/String;Ljava/security/Key;)Ljavax/crypto/Cipher;
intermediary method_15241
Lnet/minecraft/class_3515;method_15241(ILjava/lang/String;Ljava/security/Key;)Ljavax/crypto/Cipher;
named crypt
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;crypt(ILjava/lang/String;Ljava/security/Key;)Ljavax/crypto/Cipher;
-
cipherFromKey
- Throws:
NetworkEncryptionException
- Mappings:
Namespace Name Mixin selector official a
Lagj;a(ILjava/security/Key;)Ljavax/crypto/Cipher;
intermediary method_15235
Lnet/minecraft/class_3515;method_15235(ILjava/security/Key;)Ljavax/crypto/Cipher;
named cipherFromKey
Lnet/minecraft/network/encryption/NetworkEncryptionUtils;cipherFromKey(ILjava/security/Key;)Ljavax/crypto/Cipher;
-