Available on crate feature
modmath only.Expand description
Generic modmath backend adapters for fixed-width RSA public-key paths.
Structs§
Traits§
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).
Tmust be a Ct-typed FixedUInt; the bound is enforced by theCiosMontMulCtrequirement insideModMathIntCt. - 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