Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rust Openssl
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public Repositories
Rust Openssl
Commits
b14d68f7
Commit
b14d68f7
authored
8 years ago
by
Steven Fackler
Browse files
Options
Downloads
Patches
Plain Diff
Drop bits to u32
parent
9b5c62b0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
openssl/src/pkey.rs
+2
-2
2 additions, 2 deletions
openssl/src/pkey.rs
with
2 additions
and
2 deletions
openssl/src/pkey.rs
+
2
−
2
View file @
b14d68f7
...
@@ -96,8 +96,8 @@ impl PKeyRef {
...
@@ -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
)
->
u
size
{
pub
fn
bits
(
&
self
)
->
u
32
{
unsafe
{
ffi
::
EVP_PKEY_bits
(
self
.as_ptr
())
as
u
size
}
unsafe
{
ffi
::
EVP_PKEY_bits
(
self
.as_ptr
())
as
u
32
}
}
}
/// Compares the public component of this key with another.
/// Compares the public component of this key with another.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment