pub enum SlhDsaPrivateKey {
Sha2_128s(SigningKey<Sha2_128s>),
Sha2_128f(SigningKey<Sha2_128f>),
Sha2_192s(SigningKey<Sha2_192s>),
Sha2_192f(SigningKey<Sha2_192f>),
Sha2_256s(SigningKey<Sha2_256s>),
Sha2_256f(SigningKey<Sha2_256f>),
Shake128s(SigningKey<Shake128s>),
Shake128f(SigningKey<Shake128f>),
Shake192s(SigningKey<Shake192s>),
Shake192f(SigningKey<Shake192f>),
Shake256s(SigningKey<Shake256s>),
Shake256f(SigningKey<Shake256f>),
}Variants§
Sha2_128s(SigningKey<Sha2_128s>)
Sha2_128f(SigningKey<Sha2_128f>)
Sha2_192s(SigningKey<Sha2_192s>)
Sha2_192f(SigningKey<Sha2_192f>)
Sha2_256s(SigningKey<Sha2_256s>)
Sha2_256f(SigningKey<Sha2_256f>)
Shake128s(SigningKey<Shake128s>)
Shake128f(SigningKey<Shake128f>)
Shake192s(SigningKey<Shake192s>)
Shake192f(SigningKey<Shake192f>)
Shake256s(SigningKey<Shake256s>)
Shake256f(SigningKey<Shake256f>)
Implementations§
Trait Implementations§
Source§impl DecodePrivateKey for SlhDsaPrivateKey
impl DecodePrivateKey for SlhDsaPrivateKey
Source§fn from_pkcs8_der(bytes: &[u8]) -> Result<Self>
fn from_pkcs8_der(bytes: &[u8]) -> Result<Self>
Deserialize PKCS#8 private key from ASN.1 DER-encoded data
(binary format).
§fn from_pkcs8_pem(s: &str) -> Result<Self, Error>
fn from_pkcs8_pem(s: &str) -> Result<Self, Error>
Deserialize PKCS#8-encoded private key from PEM. Read more
§fn read_pkcs8_der_file(path: impl AsRef<Path>) -> Result<Self, Error>
fn read_pkcs8_der_file(path: impl AsRef<Path>) -> Result<Self, Error>
Load PKCS#8 private key from an ASN.1 DER-encoded file on the local
filesystem (binary format).
§fn read_pkcs8_pem_file(path: impl AsRef<Path>) -> Result<Self, Error>
fn read_pkcs8_pem_file(path: impl AsRef<Path>) -> Result<Self, Error>
Load PKCS#8 private key from a PEM-encoded file on the local filesystem.
Source§impl EncodePrivateKey for SlhDsaPrivateKey
impl EncodePrivateKey for SlhDsaPrivateKey
Source§fn to_pkcs8_der(&self) -> Result<SecretDocument>
fn to_pkcs8_der(&self) -> Result<SecretDocument>
Serialize a [
SecretDocument] containing a PKCS#8-encoded private key.§fn to_pkcs8_pem(
&self,
line_ending: LineEnding,
) -> Result<Zeroizing<String>, Error>
fn to_pkcs8_pem( &self, line_ending: LineEnding, ) -> Result<Zeroizing<String>, Error>
Serialize this private key as PEM-encoded PKCS#8 with the given [
LineEnding].Source§impl From<&SlhDsaPrivateKey> for SlhDsaPublicKey
impl From<&SlhDsaPrivateKey> for SlhDsaPublicKey
Source§fn from(sk: &SlhDsaPrivateKey) -> Self
fn from(sk: &SlhDsaPrivateKey) -> Self
Converts to this type from the input type.
Source§impl From<SlhDsaPrivateKey> for AttributeMap
impl From<SlhDsaPrivateKey> for AttributeMap
Source§fn from(sk: SlhDsaPrivateKey) -> Self
fn from(sk: SlhDsaPrivateKey) -> Self
Converts to this type from the input type.
Source§impl TryFrom<&AttributeMap> for SlhDsaPrivateKey
impl TryFrom<&AttributeMap> for SlhDsaPrivateKey
Auto Trait Implementations§
impl Freeze for SlhDsaPrivateKey
impl RefUnwindSafe for SlhDsaPrivateKey
impl Send for SlhDsaPrivateKey
impl Sync for SlhDsaPrivateKey
impl Unpin for SlhDsaPrivateKey
impl UnwindSafe for SlhDsaPrivateKey
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
§impl<T> EncodeEcPrivateKey for Twhere
T: EncodePrivateKey,
impl<T> EncodeEcPrivateKey for Twhere
T: EncodePrivateKey,
§fn to_sec1_der(&self) -> Result<SecretDocument, Error>
fn to_sec1_der(&self) -> Result<SecretDocument, Error>
Serialize a [
SecretDocument] containing a SEC1-encoded private key.§fn to_sec1_pem(
&self,
line_ending: LineEnding,
) -> Result<Zeroizing<String>, Error>
fn to_sec1_pem( &self, line_ending: LineEnding, ) -> Result<Zeroizing<String>, Error>
Serialize this private key as PEM-encoded SEC1 with the given [
LineEnding]. Read more§impl<T> EncodeRsaPrivateKey for Twhere
T: EncodePrivateKey,
impl<T> EncodeRsaPrivateKey for Twhere
T: EncodePrivateKey,
§fn to_pkcs1_der(&self) -> Result<SecretDocument, Error>
fn to_pkcs1_der(&self) -> Result<SecretDocument, Error>
Serialize a [
SecretDocument] containing a PKCS#1-encoded private key.§fn to_pkcs1_pem(
&self,
line_ending: LineEnding,
) -> Result<Zeroizing<String>, Error>
fn to_pkcs1_pem( &self, line_ending: LineEnding, ) -> Result<Zeroizing<String>, Error>
Serialize this private key as PEM-encoded PKCS#1 with the given [
LineEnding].