Skip to main content

Module modmath_support

Module modmath_support 

Source
Available on crate feature modmath only.
Expand description

Generic modmath backend adapters for fixed-width RSA public-key paths.

Structs§

ModMathForm
ModMathParams
ModMathValuealloc

Traits§

ModMathInt
ModMathIntCt

Functions§

public_key_ct_from_be_bytes
Construct a CT public key. Use this when the resulting key will feed PKCS#1 v1.5 / OAEP encryption (or any other path where the plaintext is secret). T must be a Ct-typed FixedUInt; the bound is enforced by the CiosMontMulCt requirement inside ModMathIntCt.
public_key_from_be_bytes
Construct an NCT public key from big-endian modulus bytes and a public exponent. Use this for signature verification.
rsa_public_op
Apply the raw RSA public operation to a fixed-width block using the NCT (vartime) Montgomery path. Intended for signature verification.
rsa_public_op_ct