Type Definition opcua_crypto::pkey::PublicKey
source · [−]Expand description
A public key
Implementations
sourceimpl PublicKey
impl PublicKey
pub fn wrap_public_key(pkey: PKey<Public>) -> PublicKey
sourcepub fn verify_sha1(
&self,
data: &[u8],
signature: &[u8]
) -> Result<bool, StatusCode>
pub fn verify_sha1(
&self,
data: &[u8],
signature: &[u8]
) -> Result<bool, StatusCode>
Verifies the data using RSA-SHA1
sourcepub fn verify_sha256(
&self,
data: &[u8],
signature: &[u8]
) -> Result<bool, StatusCode>
pub fn verify_sha256(
&self,
data: &[u8],
signature: &[u8]
) -> Result<bool, StatusCode>
Verifies the data using RSA-SHA256
Trait Implementations
sourceimpl KeySize for PublicKey
impl KeySize for PublicKey
sourcefn bit_length(&self) -> usize
fn bit_length(&self) -> usize
Length in bits