Realm

oa::crypto::bigint::div_rem_scalar

Compute public-data div_rem_scalar on unsigned device limb rows. Operands are public rank-two U32 rows of little-endian limbs, with 1..=128 words (32..=4096 bits). Records device work without host reads or a host wait. This public-data route does not accept cryptographic secrets and makes no constant-time or performance claim. Returns (quotient, remainder, status). Scalar zero yields status 0 and zero outputs; valid status is 1. Errors Rejects rank, dtype, shape, ownership, address limits, allocation or recording failures.

FnRust public API

Function Documentation

pub fn div_rem_scalar( left: &Matrix, scalar: u32, ) -> Result<( Matrix, Matrix, Matrix )>
Compute public-data div_rem_scalar on unsigned device limb rows. Operands are public rank-two U32 rows of little-endian limbs, with 1..=128 words (32..=4096 bits). Records device work without host reads or a host wait. This public-data route does not accept cryptographic secrets and makes no constant-time or performance claim. Returns (quotient, remainder, status). Scalar zero yields status 0 and zero outputs; valid status is 1. Errors Rejects rank, dtype, shape, ownership, address limits, allocation or recording failures.