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
16
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
23a4433b
Commit
23a4433b
authored
6 years ago
by
Maxim Krasylnikov
Browse files
Options
Downloads
Patches
Plain Diff
first fork commit
parent
45c886f6
No related branches found
No related tags found
1 merge request
!24
Support 3689
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+0
-52
0 additions, 52 deletions
.gitignore
crypto/dap_enc_key.h
+2
-1
2 additions, 1 deletion
crypto/dap_enc_key.h
http/dap_http_client_simple.c
+1
-1
1 addition, 1 deletion
http/dap_http_client_simple.c
with
3 additions
and
54 deletions
.gitignore
deleted
100644 → 0
+
0
−
52
View file @
45c886f6
# Prerequisites
*.d
*.autosave
# Object files
*.o
*.ko
*.obj
*.elf
# Linker output
*.ilk
*.map
*.exp
# Precompiled Headers
*.gch
*.pch
# Libraries
*.lib
*.a
*.la
*.lo
# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
# Debug files
*.dSYM/
*.su
*.idb
*.pdb
# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
This diff is collapsed.
Click to expand it.
crypto/dap_enc_key.h
+
2
−
1
View file @
23a4433b
...
@@ -74,12 +74,13 @@ typedef enum dap_enc_key_type{ DAP_ENC_KEY_TYPE_AES, // Symmetric AES
...
@@ -74,12 +74,13 @@ typedef enum dap_enc_key_type{ DAP_ENC_KEY_TYPE_AES, // Symmetric AES
// (Bos, Ducas, Kiltz, Lepoint, Lyubashevsky, Schwabe, Shanck, Stehlé)
// (Bos, Ducas, Kiltz, Lepoint, Lyubashevsky, Schwabe, Shanck, Stehlé)
// Real World Crypto 2017, https://eprint.iacr.org/2017/634)
// Real World Crypto 2017, https://eprint.iacr.org/2017/634)
// using the reference C implementation of Kyber from pq-crystals/kyber
// using the reference C implementation of Kyber from pq-crystals/kyber
DAP_ENC_KEY_TYPE_SIG_PICNIC
// signature based on zero-knowledge proof as specified in
DAP_ENC_KEY_TYPE_SIG_PICNIC
,
// signature based on zero-knowledge proof as specified in
// Post-Quantum Zero-Knowledge and Signatures from Symmetric-Key Primitives
// Post-Quantum Zero-Knowledge and Signatures from Symmetric-Key Primitives
// (Melissa Chase and David Derler and Steven Goldfeder and Claudio Orlandi
// (Melissa Chase and David Derler and Steven Goldfeder and Claudio Orlandi
// and Sebastian Ramacher and Christian Rechberger and Daniel Slamanig and Greg Zaverucha
// and Sebastian Ramacher and Christian Rechberger and Daniel Slamanig and Greg Zaverucha
// https://eprint.iacr.org/2017/279.pdf), using the optimized implemenation
// https://eprint.iacr.org/2017/279.pdf), using the optimized implemenation
// from https://github.com/IAIK/Picnic
// from https://github.com/IAIK/Picnic
DAP_ENC_KEY_TYPE_FNAM2
//ХЗ ЧТО, ДОБАВИЛ ЧТОБЫ БЫЛО И НА МЕНЯ КОМПИЛЯТОР НЕ РУГАЛСЯ:(
}
dap_enc_key_type_t
;
}
dap_enc_key_type_t
;
struct
dap_enc_key
;
struct
dap_enc_key
;
...
...
This diff is collapsed.
Click to expand it.
http/dap_http_client_simple.c
+
1
−
1
View file @
23a4433b
...
@@ -287,7 +287,7 @@ static void* dap_http_client_thread(void * arg)
...
@@ -287,7 +287,7 @@ static void* dap_http_client_thread(void * arg)
case
CURLE_COULDNT_RESOLVE_HOST
:
l_err_code
=
3
;
log_it
(
L_ERROR
,
"Couldn't resolve destination address"
);
break
;
case
CURLE_COULDNT_RESOLVE_HOST
:
l_err_code
=
3
;
log_it
(
L_ERROR
,
"Couldn't resolve destination address"
);
break
;
case
CURLE_OPERATION_TIMEDOUT
:
l_err_code
=
4
;
log_it
(
L_ERROR
,
"HTTP request timeout"
);
break
;
case
CURLE_OPERATION_TIMEDOUT
:
l_err_code
=
4
;
log_it
(
L_ERROR
,
"HTTP request timeout"
);
break
;
case
CURLE_URL_MALFORMAT
:
l_err_code
=
5
;
log_it
(
L_ERROR
,
"Wrong URL format in the outgoing request"
);
break
;
case
CURLE_URL_MALFORMAT
:
l_err_code
=
5
;
log_it
(
L_ERROR
,
"Wrong URL format in the outgoing request"
);
break
;
case
CURLE_WEIRD_SERVER_REPLY
:
l_err_code
=
6
;
log_it
(
L_WARNING
,
"Weird server reply"
);
break
;
//
case CURLE_WEIRD_SERVER_REPLY: l_err_code = 6 ; log_it(L_WARNING, "Weird server reply"); break;
case
CURLE_OK
:{
case
CURLE_OK
:{
l_is_ok
=
true
;
l_is_ok
=
true
;
log_it
(
L_DEBUG
,
"Response size %u"
,
l_client_internal
->
response_size
);
log_it
(
L_DEBUG
,
"Response size %u"
,
l_client_internal
->
response_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