[−][src]Trait bundled_crypto::algo::hash::asymmetric::Algo
Associated Types
type SigningError
type VerifyError
Required methods
fn sign_public(
msg: &[u8],
key: &<Self::Key as KeyPair>::Public
) -> Result<Vec<u8>, Self::SigningError>
msg: &[u8],
key: &<Self::Key as KeyPair>::Public
) -> Result<Vec<u8>, Self::SigningError>
fn verify_public(
msg: &[u8],
signature: &[u8],
key: &<Self::Key as KeyPair>::Public
) -> Result<bool, Self::VerifyError>
msg: &[u8],
signature: &[u8],
key: &<Self::Key as KeyPair>::Public
) -> Result<bool, Self::VerifyError>
fn sign_private(
msg: &[u8],
key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<Vec<u8>, Self::SigningError>
msg: &[u8],
key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<Vec<u8>, Self::SigningError>
fn verify_private(
msg: &[u8],
signature: &[u8],
key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<bool, Self::VerifyError>
msg: &[u8],
signature: &[u8],
key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<bool, Self::VerifyError>
Implementors
impl Algo for bundled_crypto::algo::hash::ecc::ed25519::Algo
[src]
type SigningError = AlgoError
type VerifyError = AlgoError
fn sign_public(
_msg: &[u8],
_key: &<Self::Key as KeyPair>::Public
) -> Result<Vec<u8>, Self::SigningError>
[src]
_msg: &[u8],
_key: &<Self::Key as KeyPair>::Public
) -> Result<Vec<u8>, Self::SigningError>
unimplemented
fn verify_public(
msg: &[u8],
signature: &[u8],
key: &<Self::Key as KeyPair>::Public
) -> Result<bool, Self::VerifyError>
[src]
msg: &[u8],
signature: &[u8],
key: &<Self::Key as KeyPair>::Public
) -> Result<bool, Self::VerifyError>
fn sign_private(
msg: &[u8],
key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<Vec<u8>, Self::SigningError>
[src]
msg: &[u8],
key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<Vec<u8>, Self::SigningError>
fn verify_private(
_msg: &[u8],
_signature: &[u8],
_key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<bool, Self::VerifyError>
[src]
_msg: &[u8],
_signature: &[u8],
_key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<bool, Self::VerifyError>
unimplemented
impl Algo for bundled_crypto::algo::hash::rsa::pss_sha384_mgf1_65537::Algo
[src]
type SigningError = AlgoError
type VerifyError = AlgoError
fn sign_public(
_msg: &[u8],
_key: &<Self::Key as KeyPair>::Public
) -> Result<Vec<u8>, Self::SigningError>
[src]
_msg: &[u8],
_key: &<Self::Key as KeyPair>::Public
) -> Result<Vec<u8>, Self::SigningError>
unimplemented
fn verify_public(
msg: &[u8],
signature: &[u8],
key: &<Self::Key as KeyPair>::Public
) -> Result<bool, Self::VerifyError>
[src]
msg: &[u8],
signature: &[u8],
key: &<Self::Key as KeyPair>::Public
) -> Result<bool, Self::VerifyError>
TODO Ensure constant time.
fn sign_private(
msg: &[u8],
key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<Vec<u8>, Self::SigningError>
[src]
msg: &[u8],
key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<Vec<u8>, Self::SigningError>
fn verify_private(
_msg: &[u8],
_signature: &[u8],
_key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<bool, Self::VerifyError>
[src]
_msg: &[u8],
_signature: &[u8],
_key: Option<&<Self::Key as KeyPair>::Private>
) -> Result<bool, Self::VerifyError>
unimplemented