Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
18
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
Show more breadcrumbs
cellframe
cellframe-sdk
Commits
510c2413
Commit
510c2413
authored
4 years ago
by
Constantin P.
💬
Committed by
dmitriy.gerasimov
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Alignments fixed
parent
eea08f6c
No related branches found
Branches containing commit
No related tags found
2 merge requests
!251
Master
,
!250
Master
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap-sdk/crypto/include/dap_sign.h
+4
-4
4 additions, 4 deletions
dap-sdk/crypto/include/dap_sign.h
dap-sdk/crypto/src/dap_cert.c
+1
-2
1 addition, 2 deletions
dap-sdk/crypto/src/dap_cert.c
with
5 additions
and
6 deletions
dap-sdk/crypto/include/dap_sign.h
+
4
−
4
View file @
510c2413
...
...
@@ -43,13 +43,13 @@ typedef enum {
}
dap_sign_type_enum_t
;
typedef
union
dap_sign_type
{
dap_sign_type_enum_t
type
:
16
;
uint
16
_t
raw
;
}
dap_sign_type_t
;
dap_sign_type_enum_t
type
:
32
;
uint
32
_t
raw
;
}
DAP_ALIGN_PACKED
dap_sign_type_t
;
typedef
struct
dap_sign_hdr
{
dap_sign_type_t
type
;
/// Signature type
uint
8
_t
padding
[
2
];
/// Padding for better aligmnent
uint
16
_t
padding
;
uint32_t
sign_size
;
/// Signature size
uint32_t
sign_pkey_size
;
/// Signature serialized public key size
}
DAP_ALIGN_PACKED
dap_sign_hdr_t
;
...
...
This diff is collapsed.
Click to expand it.
dap-sdk/crypto/src/dap_cert.c
+
1
−
2
View file @
510c2413
...
...
@@ -169,8 +169,7 @@ size_t dap_cert_sign_output_size(dap_cert_t * a_cert, size_t a_size_wished)
dap_sign_t
*
dap_cert_sign
(
dap_cert_t
*
a_cert
,
const
void
*
a_data
,
size_t
a_data_size
,
size_t
a_output_size_wished
)
{
dap_enc_key_t
*
l_key
=
a_cert
->
enc_key
;
dap_sign_t
*
l_ret
=
dap_sign_create
(
l_key
,
a_data
,
a_data_size
,
a_output_size_wished
);
dap_sign_t
*
l_ret
=
dap_sign_create
(
a_cert
->
enc_key
,
a_data
,
a_data_size
,
a_output_size_wished
);
return
l_ret
;
}
...
...
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