#[non_exhaustive]#[repr(u32)]pub enum DigitalSignatureAlgorithm {
Show 16 variants
MD2WithRSAEncryption_PKCS1_v1_5 = 1,
MD5WithRSAEncryption_PKCS1_v1_5 = 2,
SHA1WithRSAEncryption_PKCS1_v1_5 = 3,
SHA224WithRSAEncryption_PKCS1_v1_5 = 4,
SHA256WithRSAEncryption_PKCS1_v1_5 = 5,
SHA384WithRSAEncryption_PKCS1_v1_5 = 6,
SHA512WithRSAEncryption_PKCS1_v1_5 = 7,
RSASSA_PSS_PKCS1_v1_5 = 8,
DSAWithSHA1 = 9,
DSAWithSHA224 = 10,
DSAWithSHA256 = 11,
ECDSAWithSHA1 = 12,
ECDSAWithSHA224 = 13,
ECDSAWithSHA256 = 14,
ECDSAWithSHA384 = 15,
ECDSAWithSHA512 = 16,
}Expand description
See KMIP 1.2 section 9.1.3.2.7 Digital Signature Algorithm Enumeration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MD2WithRSAEncryption_PKCS1_v1_5 = 1
MD5WithRSAEncryption_PKCS1_v1_5 = 2
SHA1WithRSAEncryption_PKCS1_v1_5 = 3
SHA224WithRSAEncryption_PKCS1_v1_5 = 4
SHA256WithRSAEncryption_PKCS1_v1_5 = 5
SHA384WithRSAEncryption_PKCS1_v1_5 = 6
SHA512WithRSAEncryption_PKCS1_v1_5 = 7
RSASSA_PSS_PKCS1_v1_5 = 8
DSAWithSHA1 = 9
DSAWithSHA224 = 10
DSAWithSHA256 = 11
ECDSAWithSHA1 = 12
ECDSAWithSHA224 = 13
ECDSAWithSHA256 = 14
ECDSAWithSHA384 = 15
ECDSAWithSHA512 = 16
Implementations§
Source§impl DigitalSignatureAlgorithm
impl DigitalSignatureAlgorithm
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for DigitalSignatureAlgorithm
impl Clone for DigitalSignatureAlgorithm
impl Copy for DigitalSignatureAlgorithm
Source§impl Debug for DigitalSignatureAlgorithm
impl Debug for DigitalSignatureAlgorithm
Source§impl Display for DigitalSignatureAlgorithm
impl Display for DigitalSignatureAlgorithm
impl Eq for DigitalSignatureAlgorithm
Source§impl Ordinalize for DigitalSignatureAlgorithm
impl Ordinalize for DigitalSignatureAlgorithm
Source§const VARIANT_COUNT: usize = 16usize
const VARIANT_COUNT: usize = 16usize
The count of variants.
Source§type VariantType = u32
type VariantType = u32
The type of the values of the variants.
Source§unsafe fn from_ordinal_unsafe(number: u32) -> Self
unsafe fn from_ordinal_unsafe(number: u32) -> Self
Obtain a variant based on an integer number. Read more
Source§fn from_ordinal(number: u32) -> Option<Self>
fn from_ordinal(number: u32) -> Option<Self>
Obtain a variant based on an integer number.
impl StructuralPartialEq for DigitalSignatureAlgorithm
Auto Trait Implementations§
impl Forget for DigitalSignatureAlgorithm
impl Freeze for DigitalSignatureAlgorithm
impl Move for DigitalSignatureAlgorithm
impl RefUnwindSafe for DigitalSignatureAlgorithm
impl Send for DigitalSignatureAlgorithm
impl Sync for DigitalSignatureAlgorithm
impl Unpin for DigitalSignatureAlgorithm
impl UnsafeUnpin for DigitalSignatureAlgorithm
impl UnwindSafe for DigitalSignatureAlgorithm
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