Struct RsaSignatureEncoding
pub struct RsaSignatureEncoding { /* private fields */ }Available on crate features
aws-lc and crypto and std only.Expand description
Encoding type for an RSA signature
Implementations§
§impl RsaSignatureEncoding
impl RsaSignatureEncoding
pub const fn with_pss_salt_length(
self,
saltlen: RsaPssSaltLength,
) -> RsaSignatureEncoding
pub const fn with_pss_salt_length( self, saltlen: RsaPssSaltLength, ) -> RsaSignatureEncoding
Sets the PSS salt length to the given value.
This is ignored for PKCS#1 v1.5 parameters.
Due to the requirement of 'static references to the current type in
signature APIs, it is not possible to directly give the result of this
method to them, nor simply re-borrow it. Instead either the inline
&const { rsa_param.with_pss_salt_length(...) } expression syntax
should be used, or the following if Rust below 1.79 is used:
use aws_lc_rs::signature::{self, RsaPssSaltLength};
const SIGNING_ALG: signature::RsaSignatureEncoding =
signature::RSA_PSS_SHA256.with_pss_salt_length(RsaPssSaltLength::Custom(123));
// Now use `SIGNING_ALG` instead of `RSA_PSS_SHA256`.Trait Implementations§
§impl Debug for RsaSignatureEncoding
impl Debug for RsaSignatureEncoding
§impl RsaEncoding for RsaSignatureEncoding
impl RsaEncoding for RsaSignatureEncoding
§fn encoding(&'static self) -> &'static RsaSignatureEncoding
fn encoding(&'static self) -> &'static RsaSignatureEncoding
The signature encoding.
Auto Trait Implementations§
impl Forget for RsaSignatureEncoding
impl Freeze for RsaSignatureEncoding
impl Move for RsaSignatureEncoding
impl RefUnwindSafe for RsaSignatureEncoding
impl Send for RsaSignatureEncoding
impl Sync for RsaSignatureEncoding
impl Unpin for RsaSignatureEncoding
impl UnsafeUnpin for RsaSignatureEncoding
impl UnwindSafe for RsaSignatureEncoding
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more