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
667e415c
Commit
667e415c
authored
9 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Removed SignedKey class
parent
14a0e4c7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/olm/account.hh
+0
-5
0 additions, 5 deletions
include/olm/account.hh
src/account.cpp
+0
-28
0 additions, 28 deletions
src/account.cpp
with
0 additions
and
33 deletions
include/olm/account.hh
+
0
−
5
View file @
667e415c
...
...
@@ -30,11 +30,6 @@ struct LocalKey {
};
struct
SignedKey
:
LocalKey
{
std
::
uint8_t
signature
[
64
];
};
static
std
::
size_t
const
MAX_ONE_TIME_KEYS
=
100
;
struct
Account
{
...
...
This diff is collapsed.
Click to expand it.
src/account.cpp
+
0
−
28
View file @
667e415c
...
...
@@ -102,34 +102,6 @@ static std::uint8_t const * unpickle(
return
pos
;
}
static
std
::
size_t
pickle_length
(
olm
::
SignedKey
const
&
value
)
{
return
olm
::
pickle_length
((
olm
::
LocalKey
const
&
)
value
)
+
64
;
}
static
std
::
uint8_t
*
pickle
(
std
::
uint8_t
*
pos
,
olm
::
SignedKey
const
&
value
)
{
pos
=
olm
::
pickle
(
pos
,
(
olm
::
LocalKey
const
&
)
value
);
pos
=
olm
::
pickle_bytes
(
pos
,
value
.
signature
,
64
);
return
pos
;
}
static
std
::
uint8_t
const
*
unpickle
(
std
::
uint8_t
const
*
pos
,
std
::
uint8_t
const
*
end
,
olm
::
SignedKey
&
value
)
{
pos
=
olm
::
unpickle
(
pos
,
end
,
(
olm
::
LocalKey
&
)
value
);
pos
=
olm
::
unpickle_bytes
(
pos
,
end
,
value
.
signature
,
64
);
return
pos
;
}
}
// namespace olm
...
...
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