pub struct RsaPublicKeyValidator {
verifying_key: VerifyingKey<Sha256>,
}Expand description
Creates a signature validator from an RSA public key using SHA256withRSA.
Equivalent to SignatureValidator.from(PublicKey, “SHA256withRSA”) in Minecraft.
Fields§
§verifying_key: VerifyingKey<Sha256>Implementations§
Trait Implementations§
Source§impl SignatureValidator for RsaPublicKeyValidator
impl SignatureValidator for RsaPublicKeyValidator
Source§fn validate(
&self,
updater: &dyn SignatureUpdater,
signature_bytes: &[u8],
) -> Result<bool, CryptError>
fn validate( &self, updater: &dyn SignatureUpdater, signature_bytes: &[u8], ) -> Result<bool, CryptError>
Validates that the signature is valid for the data provided by the updater.
Auto Trait Implementations§
impl Freeze for RsaPublicKeyValidator
impl RefUnwindSafe for RsaPublicKeyValidator
impl Send for RsaPublicKeyValidator
impl Sync for RsaPublicKeyValidator
impl Unpin for RsaPublicKeyValidator
impl UnsafeUnpin for RsaPublicKeyValidator
impl UnwindSafe for RsaPublicKeyValidator
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