Trait aws_lc_rs::signature::VerificationAlgorithm
source · pub trait VerificationAlgorithm: Debug + Sync + Sealed {
// Required methods
fn verify(
&self,
public_key: Input<'_>,
msg: Input<'_>,
signature: Input<'_>
) -> Result<(), Unspecified>;
fn verify_sig(
&self,
public_key: &[u8],
msg: &[u8],
signature: &[u8]
) -> Result<(), Unspecified>;
}
Expand description
A signature verification algorithm.
Required Methods§
sourcefn verify(
&self,
public_key: Input<'_>,
msg: Input<'_>,
signature: Input<'_>
) -> Result<(), Unspecified>
fn verify( &self, public_key: Input<'_>, msg: Input<'_>, signature: Input<'_> ) -> Result<(), Unspecified>
👎Deprecated: please use
VerificationAlgorithm::verify_sig
insteadVerify the signature signature
of message msg
with the public key
public_key
.
Errors
error::Unspecified
if inputs not verified.
sourcefn verify_sig(
&self,
public_key: &[u8],
msg: &[u8],
signature: &[u8]
) -> Result<(), Unspecified>
fn verify_sig( &self, public_key: &[u8], msg: &[u8], signature: &[u8] ) -> Result<(), Unspecified>
Verify the signature signature
of message msg
with the public key
public_key
.
Errors
error::Unspecified
if inputs not verified.