Wireshark
4.5.0
The Wireshark network protocol analyzer
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
Typedefs
a
b
c
d
e
f
g
h
i
m
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
f
h
i
n
o
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
wsutil
curve25519.h
Go to the documentation of this file.
1
13
#ifndef __CURVE25519_H__
14
#define __CURVE25519_H__
15
16
#include <wireshark.h>
17
18
/*
19
* Computes Q = X25519(n, P). In other words, given the secret key n, the public
20
* key P, compute the shared secret Q. Each key is 32 bytes long.
21
* Returns 0 on success or -1 on failure.
22
*/
23
WS_DLL_PUBLIC
24
int
crypto_scalarmult_curve25519(
unsigned
char
*q,
const
unsigned
char
*n,
25
const
unsigned
char
*p);
26
27
/*
28
* Computes the Curve25519 32-byte public key Q from the 32-byte secret key n.
29
* Returns 0 on success or -1 on failure.
30
*/
31
WS_DLL_PUBLIC
32
int
crypto_scalarmult_curve25519_base(
unsigned
char
*q,
const
unsigned
char
*n);
33
34
#endif
/* __CURVE25519_H__ */
Generated by
1.9.8