pub struct RsaIntermediates { /* private fields */ }Expand description
Wires associated with intermediate RSA computations
Implementations§
Source§impl RsaIntermediates
impl RsaIntermediates
Sourcepub fn populate_witness(
&self,
w: &mut WitnessFiller<'_>,
signature: &[u8],
modulus: &[u8],
)
pub fn populate_witness( &self, w: &mut WitnessFiller<'_>, signature: &[u8], modulus: &[u8], )
Populate RSA intermediate values for RS256 verification
This function populates the quotients and remainders needed for verifying RSA signatures with public exponent 65537 (2^16 + 1).
§Arguments
signature- The bytes of a RSA signaturemodulus_limbs- The bytes of a RSA modulus
Auto Trait Implementations§
impl Freeze for RsaIntermediates
impl RefUnwindSafe for RsaIntermediates
impl Send for RsaIntermediates
impl Sync for RsaIntermediates
impl Unpin for RsaIntermediates
impl UnsafeUnpin for RsaIntermediates
impl UnwindSafe for RsaIntermediates
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more