Skip to main content

Crate oxidized_crypto

Crate oxidized_crypto 

Source
Expand description

Cryptographic primitives for the Minecraft protocol.

Provides AES-128-CFB8 stream encryption (used after the login handshake), RSA-1024 key pair generation (for the server’s identity during login), and RSA decryption (to unwrap the client’s shared secret).

Structs§

CipherState
Stateful AES-128-CFB8 stream cipher for Minecraft protocol encryption.
DecryptCipher
Decrypt half of a split CipherState.
EncryptCipher
Encrypt half of a split CipherState.
ServerKeyPair
An RSA key pair for the Minecraft login handshake.

Enums§

CryptoError
Errors from cryptographic operations.

Functions§

generate_challenge
Generates a random 4-byte verification challenge.
minecraft_digest
Computes the Minecraft authentication hash (server ID digest).
offline_uuid
Generates an offline-mode UUID v3 from a player name.