Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Michael Telatynski
Olm
Commits
e6f8a99b
Commit
e6f8a99b
authored
Apr 29, 2020
by
Hubert Chathi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing declaration for PkDecryption#decrypt and SAS class
parent
f409b69e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
javascript/index.d.ts
javascript/index.d.ts
+11
-0
No files found.
javascript/index.d.ts
View file @
e6f8a99b
...
...
@@ -99,6 +99,7 @@ declare class PkDecryption {
get_private_key
():
Uint8Array
;
pickle
(
key
:
string
):
string
;
unpickle
(
key
:
string
,
pickle
:
string
):
string
;
decrypt
(
ephemeral_key
:
string
,
mac
:
string
,
ciphertext
:
string
):
string
;
}
declare
class
PkSigning
{
...
...
@@ -109,6 +110,16 @@ declare class PkSigning {
sign
(
message
:
string
):
string
;
}
declare
class
SAS
{
constructor
();
free
():
void
;
get_pubkey
():
string
;
set_their_key
(
their_key
:
string
):
void
;
generate_bytes
(
info
:
string
,
length
:
number
):
Uint8Array
;
calculate_mac
(
input
:
string
,
info
:
string
):
string
;
calculate_mac_long_kdf
(
input
:
string
,
info
:
string
):
string
;
}
export
function
init
():
Promise
<
void
>
;
export
function
get_library_version
():
[
number
,
number
,
number
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment