Struct merino_adm::remote_settings::soft_verifier::SoftVerifier
source · [−]pub struct SoftVerifier {
inner: RingVerifier,
}
Expand description
A custom signature verification helper to use with the remote-settings-client library.
Fields
inner: RingVerifier
The wrapped RingVerifier.
Implementations
sourceimpl SoftVerifier
impl SoftVerifier
Trait Implementations
sourceimpl Verification for SoftVerifier
impl Verification for SoftVerifier
sourcefn verify_nist384p_chain(
&self,
epoch_seconds: u64,
pem_bytes: &[u8],
root_hash: &str,
subject_cn: &str,
message: &[u8],
signature: &[u8]
) -> Result<(), SignatureError>
fn verify_nist384p_chain(
&self,
epoch_seconds: u64,
pem_bytes: &[u8],
root_hash: &str,
subject_cn: &str,
message: &[u8],
signature: &[u8]
) -> Result<(), SignatureError>
Verify chain of trust. Read more
sourcefn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
requester: &'life1 (dyn Requester + 'static),
collection: &'life2 Collection,
root_hash: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<(), SignatureError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
requester: &'life1 (dyn Requester + 'static),
collection: &'life2 Collection,
root_hash: &'life3 str
) -> Pin<Box<dyn Future<Output = Result<(), SignatureError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
Verifies signature for a given Collection
struct. Read more
fn verify_sha256_hash(
&self,
content: &[u8],
expected: &[u8]
) -> Result<(), SignatureError>
fn fetch_certificate_chain<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
requester: &'life1 (dyn Requester + 'static),
collection: &'life2 Collection
) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, SignatureError>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn serialize_data(
&self,
collection: &Collection
) -> Result<Vec<u8, Global>, SignatureError>
Auto Trait Implementations
impl RefUnwindSafe for SoftVerifier
impl Send for SoftVerifier
impl Sync for SoftVerifier
impl Unpin for SoftVerifier
impl UnwindSafe for SoftVerifier
Blanket Implementations
sourceimpl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
sourceimpl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more