Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap
Commits
9dcaa5ee
Commit
9dcaa5ee
authored
6 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Changed ret code from unsigned int to signed it for BLISS algo
parent
bf491dd3
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
crypto/dap_enc_bliss.c
+3
-3
3 additions, 3 deletions
crypto/dap_enc_bliss.c
crypto/dap_enc_bliss.h
+2
-2
2 additions, 2 deletions
crypto/dap_enc_bliss.h
crypto/dap_enc_key.h
+1
-0
1 addition, 0 deletions
crypto/dap_enc_key.h
with
6 additions
and
5 deletions
crypto/dap_enc_bliss.c
+
3
−
3
View file @
9dcaa5ee
...
...
@@ -106,7 +106,7 @@ void dap_enc_sig_bliss_key_new_generate(struct dap_enc_key * a_key, const void *
}
size_
t
dap_enc_sig_bliss_get_sign
(
struct
dap_enc_key
*
key
,
const
void
*
msg
,
in
t
dap_enc_sig_bliss_get_sign
(
struct
dap_enc_key
*
key
,
const
void
*
msg
,
const
size_t
msg_size
,
void
*
signature
,
const
size_t
signature_size
)
{
if
(
signature_size
<
sizeof
(
bliss_signature_t
))
{
...
...
@@ -125,12 +125,12 @@ size_t dap_enc_sig_bliss_get_sign(struct dap_enc_key * key,const void * msg,
&
entropy
);
}
size_
t
dap_enc_sig_bliss_verify_sign
(
struct
dap_enc_key
*
key
,
const
void
*
msg
,
in
t
dap_enc_sig_bliss_verify_sign
(
struct
dap_enc_key
*
key
,
const
void
*
msg
,
const
size_t
msg_size
,
void
*
signature
,
const
size_t
signature_size
)
{
if
(
signature_size
<
sizeof
(
bliss_signature_t
))
{
log_it
(
L_ERROR
,
"bad signature size"
);
return
0
;
return
-
1
;
}
return
bliss_b_verify
(
signature
,
key
->
pub_key_data
,
msg
,
msg_size
);
}
...
...
This diff is collapsed.
Click to expand it.
crypto/dap_enc_bliss.h
+
2
−
2
View file @
9dcaa5ee
...
...
@@ -16,10 +16,10 @@ void dap_enc_sig_bliss_key_new_generate(struct dap_enc_key * key, const void *ke
size_t
kex_size
,
const
void
*
seed
,
size_t
seed_size
,
size_t
key_size
);
size_
t
dap_enc_sig_bliss_get_sign
(
struct
dap_enc_key
*
key
,
const
void
*
msg
,
in
t
dap_enc_sig_bliss_get_sign
(
struct
dap_enc_key
*
key
,
const
void
*
msg
,
const
size_t
msg_size
,
void
*
signature
,
const
size_t
signature_size
);
size_
t
dap_enc_sig_bliss_verify_sign
(
struct
dap_enc_key
*
key
,
const
void
*
msg
,
in
t
dap_enc_sig_bliss_verify_sign
(
struct
dap_enc_key
*
key
,
const
void
*
msg
,
const
size_t
msg_size
,
void
*
signature
,
const
size_t
signature_size
);
void
dap_enc_sig_bliss_key_delete
(
struct
dap_enc_key
*
key
);
...
...
This diff is collapsed.
Click to expand it.
crypto/dap_enc_key.h
+
1
−
0
View file @
9dcaa5ee
...
...
@@ -220,6 +220,7 @@ dap_enc_key_t* dap_enc_key_deserealize(void *buf, size_t buf_size);
// allocate memory for key struct
dap_enc_key_t
*
dap_enc_key_new
(
dap_enc_key_type_t
a_key_type
);
// default gen key
dap_enc_key_t
*
dap_enc_key_new_generate
(
dap_enc_key_type_t
key_type
,
const
void
*
kex_buf
,
size_t
kex_size
,
const
void
*
seed
,
...
...
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