yarn/mappings/net/minecraft/network/packet/c2s/login/LoginKeyC2SPacket.mapping

24 lines
1.1 KiB
Plaintext

CLASS net/minecraft/class_2917 net/minecraft/network/packet/c2s/login/LoginKeyC2SPacket
FIELD field_13274 encryptedSecretKey [B
FIELD field_39089 nonce [B
COMMENT The nonce value.
COMMENT
COMMENT @implNote This value is either encrypted (the left side of {@code Either}) or signed
COMMENT (the right side). If encrypted, then it must be done so using the server's public key
COMMENT and the server verifies it by decrypting and comparing nonces. If signed, then it must
COMMENT be done so using the user's private key provided from Mojang's server, and the server
COMMENT verifies by checking if the reconstructed data can be verified using the public key.
FIELD field_48251 CODEC Lnet/minecraft/class_9139;
METHOD <init> (Ljavax/crypto/SecretKey;Ljava/security/PublicKey;[B)V
ARG 1 secretKey
ARG 2 publicKey
ARG 3 nonce
METHOD <init> (Lnet/minecraft/class_2540;)V
ARG 1 buf
METHOD method_12654 decryptSecretKey (Ljava/security/PrivateKey;)Ljavax/crypto/SecretKey;
ARG 1 privateKey
METHOD method_43643 verifySignedNonce ([BLjava/security/PrivateKey;)Z
ARG 1 nonce
ARG 2 privateKey
METHOD method_56021 write (Lnet/minecraft/class_2540;)V