pub enum TsigAlgorithm {
HmacMd5,
Gss,
HmacSha1,
HmacSha224,
HmacSha256,
HmacSha256_128,
HmacSha384,
HmacSha384_192,
HmacSha512,
HmacSha512_256,
Unknown(Name),
}Expand description
Algorithm used to authenticate communication
RFC8945 Secret Key Transaction Authentication for DNS
+==========================+================+=================+
| Algorithm Name | Implementation | Use |
+==========================+================+=================+
| HMAC-MD5.SIG-ALG.REG.INT | MAY | MUST NOT |
+--------------------------+----------------+-----------------+
| gss-tsig | MAY | MAY |
+--------------------------+----------------+-----------------+
| hmac-sha1 | MUST | NOT RECOMMENDED |
+--------------------------+----------------+-----------------+
| hmac-sha224 | MAY | MAY |
+--------------------------+----------------+-----------------+
| hmac-sha256 | MUST | RECOMMENDED |
+--------------------------+----------------+-----------------+
| hmac-sha256-128 | MAY | MAY |
+--------------------------+----------------+-----------------+
| hmac-sha384 | MAY | MAY |
+--------------------------+----------------+-----------------+
| hmac-sha384-192 | MAY | MAY |
+--------------------------+----------------+-----------------+
| hmac-sha512 | MAY | MAY |
+--------------------------+----------------+-----------------+
| hmac-sha512-256 | MAY | MAY |
+--------------------------+----------------+-----------------+Variants§
HmacMd5
HMAC-MD5.SIG-ALG.REG.INT (not supported for cryptographic operations)
Gss
gss-tsig (not supported for cryptographic operations)
HmacSha1
hmac-sha1 (not supported for cryptographic operations)
HmacSha224
hmac-sha224 (not supported for cryptographic operations)
HmacSha256
hmac-sha256
HmacSha256_128
hmac-sha256-128 (not supported for cryptographic operations)
HmacSha384
hmac-sha384
HmacSha384_192
hmac-sha384-192 (not supported for cryptographic operations)
HmacSha512
hmac-sha512
HmacSha512_256
hmac-sha512-256 (not supported for cryptographic operations)
Unknown(Name)
Unknown algorithm
Implementations§
Source§impl TsigAlgorithm
impl TsigAlgorithm
Trait Implementations§
Source§impl BinDecodable<'_> for TsigAlgorithm
impl BinDecodable<'_> for TsigAlgorithm
Source§fn read(decoder: &mut BinDecoder<'_>) -> Result<Self, DecodeError>
fn read(decoder: &mut BinDecoder<'_>) -> Result<Self, DecodeError>
Read the type from the stream
Source§fn from_bytes(bytes: &'r [u8]) -> Result<Self, DecodeError>
fn from_bytes(bytes: &'r [u8]) -> Result<Self, DecodeError>
Returns the object in binary form
Source§impl BinEncodable for TsigAlgorithm
impl BinEncodable for TsigAlgorithm
Source§fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
fn emit(&self, encoder: &mut BinEncoder<'_>) -> Result<(), ProtoError>
Write the type to the stream
Source§impl Clone for TsigAlgorithm
impl Clone for TsigAlgorithm
Source§fn clone(&self) -> TsigAlgorithm
fn clone(&self) -> TsigAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TsigAlgorithm
impl Debug for TsigAlgorithm
Source§impl Display for TsigAlgorithm
impl Display for TsigAlgorithm
Source§impl Hash for TsigAlgorithm
impl Hash for TsigAlgorithm
Source§impl PartialEq for TsigAlgorithm
impl PartialEq for TsigAlgorithm
Source§fn eq(&self, other: &TsigAlgorithm) -> bool
fn eq(&self, other: &TsigAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TsigAlgorithm
impl StructuralPartialEq for TsigAlgorithm
Auto Trait Implementations§
impl Freeze for TsigAlgorithm
impl RefUnwindSafe for TsigAlgorithm
impl Send for TsigAlgorithm
impl Sync for TsigAlgorithm
impl Unpin for TsigAlgorithm
impl UnsafeUnpin for TsigAlgorithm
impl UnwindSafe for TsigAlgorithm
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