Drop bits to u32

This commit is contained in:
Steven Fackler 2016-11-12 11:14:05 +00:00
parent 9b5c62b053
commit b14d68f715
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ impl PKeyRef {
/// ///
/// This corresponds to the bit length of the modulus of an RSA key, and the bit length of the /// This corresponds to the bit length of the modulus of an RSA key, and the bit length of the
/// group order for an elliptic curve key, for example. /// group order for an elliptic curve key, for example.
pub fn bits(&self) -> usize { pub fn bits(&self) -> u32 {
unsafe { ffi::EVP_PKEY_bits(self.as_ptr()) as usize } unsafe { ffi::EVP_PKEY_bits(self.as_ptr()) as u32 }
} }
/// Compares the public component of this key with another. /// Compares the public component of this key with another.