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
20
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
49bf53cc
Commit
49bf53cc
authored
2 years ago
by
Dmitry Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[+] GUUID
parent
759d14c0
No related branches found
No related tags found
1 merge request
!897
hotfix-6925
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dap-sdk/crypto/include/dap_guiid.h
+30
-0
30 additions, 0 deletions
dap-sdk/crypto/include/dap_guiid.h
dap-sdk/crypto/include/dap_uuid.h
+2
-2
2 additions, 2 deletions
dap-sdk/crypto/include/dap_uuid.h
with
32 additions
and
2 deletions
dap-sdk/crypto/include/dap_guiid.h
0 → 100644
+
30
−
0
View file @
49bf53cc
/*
* Authors:
* Dmitriy A. Gearasimov <gerasimov.dmitriy@demlabs.net>
* DeM Labs Ltd. https://demlabs.net
* Copyright (c) 2021
* All rights reserved.
This file is part of DAP SDK the open source project
DAP SDK is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DAP SDK is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with any DAP SDK based project. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include
"dap_uuid.h"
typedef
uint128_t
dap_guuid_t
;
static
inline
dap_guuid_t
dap_guuid_new
()
{
return
(
dap_guuid_t
)
dap_uuid_generate_uint128
();
}
This diff is collapsed.
Click to expand it.
dap-sdk/crypto/include/dap_uuid.h
+
2
−
2
View file @
49bf53cc
...
...
@@ -24,7 +24,7 @@
#pragma once
#include
"dap_math_ops.h"
uint128_t
dap_uuid_generate_uint128
();
// Produce uint128 unique id
uint64_t
dap_uuid_generate_uint64
();
// Produce uint64 unique id
uint128_t
dap_uuid_generate_uint128
();
// Produce uint128
global
unique id
uint64_t
dap_uuid_generate_uint64
();
// Produce uint64
global
unique id
// Produces unique nonce
void
dap_uuid_generate_nonce
(
void
*
a_nonce
,
size_t
a_nonce_size
);
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