mirror of https://github.com/FabricMC/yarn.git
34 lines
1.5 KiB
Plaintext
34 lines
1.5 KiB
Plaintext
CLASS net/minecraft/class_2917 net/minecraft/network/packet/c2s/login/LoginKeyC2SPacket
|
|
FIELD field_13274 encryptedSecretKey [B
|
|
FIELD field_39089 nonce Lcom/mojang/datafixers/util/Either;
|
|
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.
|
|
METHOD <init> (Ljavax/crypto/SecretKey;Ljava/security/PublicKey;J[B)V
|
|
ARG 1 secretKey
|
|
ARG 2 publicKey
|
|
ARG 3 seed
|
|
ARG 5 signature
|
|
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_43640 (Lnet/minecraft/class_7428;[BLnet/minecraft/class_3515$class_7425;)Ljava/lang/Boolean;
|
|
ARG 2 signature
|
|
METHOD method_43642 ([B)Ljava/lang/Boolean;
|
|
ARG 0 encrypted
|
|
METHOD method_43643 verifySignedNonce ([BLnet/minecraft/class_7428;)Z
|
|
ARG 1 nonce
|
|
ARG 2 publicKeyInfo
|
|
METHOD method_43644 verifyEncryptedNonce ([BLjava/security/PrivateKey;)Z
|
|
ARG 1 nonce
|
|
ARG 2 privateKey
|