Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rust-secp256k1
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
rust-secp256k1
Commits
f78a5e03
Verified
Commit
f78a5e03
authored
5 years ago
by
ordian
Browse files
Options
Downloads
Patches
Plain Diff
s/EcdhHashFunction/EcdhHashFn
parent
642e0af9
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ffi.rs
+8
-8
8 additions, 8 deletions
src/ffi.rs
with
8 additions
and
8 deletions
src/ffi.rs
+
8
−
8
View file @
f78a5e03
...
...
@@ -54,11 +54,11 @@ pub type NonceFn = unsafe extern "C" fn(nonce32: *mut c_uchar,
/// y: pointer to a 32-byte y coordinate
/// data: Arbitrary data pointer that is passed through
///
pub
type
EcdhHashF
unctio
n
=
unsafe
extern
"C"
fn
(
output
:
*
mut
c_uchar
,
x
:
*
const
c_uchar
,
y
:
*
const
c_uchar
,
data
:
*
mut
c_void
)
->
c_int
;
pub
type
EcdhHashFn
=
unsafe
extern
"C"
fn
(
output
:
*
mut
c_uchar
,
x
:
*
const
c_uchar
,
y
:
*
const
c_uchar
,
data
:
*
mut
c_void
)
->
c_int
;
...
...
@@ -132,9 +132,9 @@ extern "C" {
pub
static
secp256k1_nonce_function_default
:
NonceFn
;
pub
static
secp256k1_ecdh_hash_function_sha256
:
EcdhHashF
unctio
n
;
pub
static
secp256k1_ecdh_hash_function_sha256
:
EcdhHashFn
;
pub
static
secp256k1_ecdh_hash_function_default
:
EcdhHashF
unctio
n
;
pub
static
secp256k1_ecdh_hash_function_default
:
EcdhHashFn
;
// Contexts
pub
fn
secp256k1_context_create
(
flags
:
c_uint
)
->
*
mut
Context
;
...
...
@@ -262,7 +262,7 @@ extern "C" {
out
:
*
mut
SharedSecret
,
point
:
*
const
PublicKey
,
scalar
:
*
const
c_uchar
,
hash_fn
:
EcdhHashF
unctio
n
,
hash_fn
:
EcdhHashFn
,
data
:
*
mut
c_void
)
->
c_int
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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