pub fn verify_signature(&self, pubkey: &P256PublicKey) -> Result<(), Error> {
        let signature = &self.sig.signature;
        let mut signed_data = Vec::new();
        self.write_data_to_sign(&mut signed_data)
            .expect("writing into `Vec` failed");

        let mut raw_signature = [0; 64];
        raw_signature.copy_from_slice(&signature.raw);
        crypto::verify_signature(pubkey, &raw_signature, &signed_data)
    }
/// Attempts to verify the ECDSA signature attached to the GBL.
///
/// If the signature was not created by the private key belonging to
/// `pubkey`, an error will be returned.
///
/// If the GBL is encrypted, the signature is computed over the encrypted
/// data. Consequently, decrypting the GBL disposes of the signature. Check
/// the signature before decrypting!
///
/// # Parameters
///
/// * `pubkey`: The public P-256 key to verify against.
Attempts to verify the ECDSA signature attached to the GBL.
If the signature was not created by the private key belonging to
`pubkey`, an error will be returned.

If the GBL is encrypted, the signature is computed over the encrypted
data. Consequently, decrypting the GBL disposes of the signature. Check
the signature before decrypting!
Attempts to verify the ECDSA signature attached to the GBL . If the signature was not created by the private key belonging to ` pubkey ` an error will be returned . If the GBL is encrypted the signature is computed over the encrypted data . Consequently decrypting the GBL disposes of the signature . Check the signature before decrypting!
pub fn verify_signature(&self, pubkey: &P256PublicKey) -> Result<(), Error> {
        let signature = &self.sig.signature;
        let mut signed_data = Vec::new();
        self.write_data_to_sign(&mut signed_data)
            .expect("writing into `Vec` failed");
        let mut raw_signature = [0; 64];
        raw_signature.copy_from_slice(&signature.raw);
        crypto::verify_signature(pubkey, &raw_signature, &signed_data)
    }
pub fn verify_signature ( & self , pubkey : & P256PublicKey ) -> Result < ( ) , Error > { let signature = & self . sig . signature ; let mut signed_data = Vec :: new ( ) ; self . write_data_to_sign ( & mut signed_data ) . expect ( " " ) ; let mut raw_signature = [ 0 ; 64 ] ; raw_signature . copy_from_slice ( & signature . raw ) ; crypto :: verify_signature ( pubkey , & raw_signature , & signed_data ) }
Attempts to verify the ECDSA signature attached to the GBL.
Attempts to verify the ECDSA signature attached to the GBL .
&self
pubkey
&P256PublicKey