Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Olm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Nheko Reborn
Olm
Commits
fac1d52d
Commit
fac1d52d
authored
6 years ago
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
Add aliases for deprecated functions
parent
e73ebcea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/olm/pk.h
+12
-0
12 additions, 0 deletions
include/olm/pk.h
src/pk.cpp
+12
-0
12 additions, 0 deletions
src/pk.cpp
with
24 additions
and
0 deletions
include/olm/pk.h
+
12
−
0
View file @
fac1d52d
...
...
@@ -116,6 +116,10 @@ size_t olm_clear_pk_decryption(
*/
size_t
olm_pk_private_key_length
();
/** DEPRECATED: Use olm_pk_private_key_length()
*/
size_t
olm_pk_generate_key_random_length
(
void
);
/** Initialise the key from the private part of a key as returned by
* olm_pk_get_private_key(). The associated public key will be written to the
* pubkey buffer. Returns olm_error() on failure. If the pubkey buffer is too
...
...
@@ -132,6 +136,14 @@ size_t olm_pk_key_from_private(
void
*
privkey
,
size_t
privkey_length
);
/** DEPRECATED: Use olm_pk_key_from_private
*/
size_t
olm_pk_generate_key
(
OlmPkDecryption
*
decryption
,
void
*
pubkey
,
size_t
pubkey_length
,
void
*
privkey
,
size_t
privkey_length
);
/** Returns the number of bytes needed to store a decryption object. */
size_t
olm_pickle_pk_decryption_length
(
OlmPkDecryption
*
decryption
...
...
This diff is collapsed.
Click to expand it.
src/pk.cpp
+
12
−
0
View file @
fac1d52d
...
...
@@ -191,6 +191,10 @@ size_t olm_pk_private_key_length(void) {
return
CURVE25519_KEY_LENGTH
;
}
size_t
olm_pk_generate_key_random_length
(
void
)
{
return
olm_pk_private_key_length
();
}
size_t
olm_pk_key_length
(
void
)
{
return
olm
::
encode_base64_length
(
CURVE25519_KEY_LENGTH
);
}
...
...
@@ -220,6 +224,14 @@ size_t olm_pk_key_from_private(
return
0
;
}
size_t
olm_pk_generate_key
(
OlmPkDecryption
*
decryption
,
void
*
pubkey
,
size_t
pubkey_length
,
void
*
privkey
,
size_t
privkey_length
)
{
return
olm_pk_key_from_private
(
decryption
,
pubkey
,
pubkey_length
,
privkey
,
privkey_length
);
}
namespace
{
static
const
std
::
uint32_t
PK_DECRYPTION_PICKLE_VERSION
=
1
;
...
...
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