Skip to main content

Module signature

Module signature 

Source
Expand description

RSA signature creation and verification utilities.

Ported from net/minecraft/util/Signer.java and SignatureValidator.java

Structs§

ByteCollector 🔒
Helper struct to collect bytes during signature operations.
MultiKeyValidator
A multi-key validator that tries each public key until one validates.
NoValidation
A no-validation validator that always returns true.
RsaPrivateKeySigner
Creates a signer from an RSA private key using SHA256withRSA.
RsaPublicKeyValidator
Creates a signature validator from an RSA public key using SHA256withRSA.

Traits§

SignatureOutput
Output receiver for signature data.
SignatureUpdater
A function that updates signature data by writing bytes.
SignatureValidator
A trait for validating RSA signatures.
Signer
A trait for signing data with an RSA private key.