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
17
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
0f25b085
Commit
0f25b085
authored
5 years ago
by
dmitriy.gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Stylistic fix
parent
72bf9702
No related branches found
No related tags found
1 merge request
!24
Support 3689
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap_hash.c
+1
-0
1 addition, 0 deletions
dap_hash.c
dap_hash.h
+2
-1
2 additions, 1 deletion
dap_hash.h
with
3 additions
and
1 deletion
dap_hash.c
+
1
−
0
View file @
0f25b085
...
@@ -35,6 +35,7 @@ int dap_hash_fast(const void *a_data_in, size_t a_data_in_size, dap_chain_hash_f
...
@@ -35,6 +35,7 @@ int dap_hash_fast(const void *a_data_in, size_t a_data_in_size, dap_chain_hash_f
DAP_HASH_TYPE_KECCAK
);
DAP_HASH_TYPE_KECCAK
);
return
1
;
return
1
;
}
}
bool
dap_hash_fast_is_blank
(
dap_chain_hash_fast_t
*
a_hash
)
bool
dap_hash_fast_is_blank
(
dap_chain_hash_fast_t
*
a_hash
)
{
{
uint8_t
*
l_hast_bytes
=
(
uint8_t
*
)
a_hash
;
uint8_t
*
l_hast_bytes
=
(
uint8_t
*
)
a_hash
;
...
...
This diff is collapsed.
Click to expand it.
dap_hash.h
+
2
−
1
View file @
0f25b085
...
@@ -35,7 +35,8 @@ typedef enum dap_hash_type {
...
@@ -35,7 +35,8 @@ typedef enum dap_hash_type {
DAP_HASH_TYPE_SLOW_0
=
1
,
DAP_HASH_TYPE_SLOW_0
=
1
,
}
dap_hash_type_t
;
}
dap_hash_type_t
;
inline
static
void
dap_hash
(
const
void
*
a_data_in
,
size_t
a_data_in_size
,
static
inline
void
dap_hash
(
const
void
*
a_data_in
,
size_t
a_data_in_size
,
void
*
a_data_out
,
size_t
a_data_out_size
,
void
*
a_data_out
,
size_t
a_data_out_size
,
dap_hash_type_t
a_type
){
dap_hash_type_t
a_type
){
switch
(
a_type
){
switch
(
a_type
){
...
...
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