pub struct HmacSha256Signer { /* private fields */ }Expand description
HMAC-SHA256 signer for symmetric (pre-shared key) authentication.
Significantly faster than Ed25519 (~10x) since it only computes a keyed hash rather than elliptic curve math.
Implementations§
Trait Implementations§
Source§impl Signer for HmacSha256Signer
impl Signer for HmacSha256Signer
fn sig_type(&self) -> SignatureType
fn key_name(&self) -> &Name
fn sign<'a>( &'a self, region: &'a [u8], ) -> Pin<Box<dyn Future<Output = Result<Bytes, TrustError>> + Send + 'a>>
Source§fn sign_sync(&self, region: &[u8]) -> Result<Bytes, TrustError>
fn sign_sync(&self, region: &[u8]) -> Result<Bytes, TrustError>
Synchronous signing — avoids
Box::pin and async state machine overhead. Read moreSource§fn cert_name(&self) -> Option<&Name>
fn cert_name(&self) -> Option<&Name>
The certificate name to embed as a key locator in SignatureInfo, if any.
Source§fn public_key(&self) -> Option<Bytes>
fn public_key(&self) -> Option<Bytes>
Return the raw public key bytes, if available.
Auto Trait Implementations§
impl !Freeze for HmacSha256Signer
impl RefUnwindSafe for HmacSha256Signer
impl Send for HmacSha256Signer
impl Sync for HmacSha256Signer
impl Unpin for HmacSha256Signer
impl UnwindSafe for HmacSha256Signer
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