Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-crypto
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
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-crypto
Merge requests
!24
Rct2
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Rct2
rct2
into
master
Overview
0
Commits
12
Pipelines
0
Changes
42
Merged
dmitriy.gerasimov
requested to merge
rct2
into
master
4 years ago
Overview
0
Commits
12
Pipelines
0
Changes
42
Expand
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
26120da2
12 commits,
4 years ago
42 files
+
5061
−
15
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
42
Search (e.g. *.vue) (Ctrl+P)
include/dap_enc_bf_cbc.h
0 → 100644
+
34
−
0
Options
#ifndef _DAP_ENC_BF_CBC_H_
#define _DAP_ENC_BF_CBC_H_
#include
<stddef.h>
#include
"dap_enc_key.h"
#include
"blowfish/blowfish.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
dap_enc_bf_cbc_key_new
(
struct
dap_enc_key
*
a_key
);
void
dap_enc_bf_cbc_key_delete
(
struct
dap_enc_key
*
a_key
);
void
dap_enc_bf_cbc_key_generate
(
struct
dap_enc_key
*
a_key
,
const
void
*
kex_buf
,
size_t
kex_size
,
const
void
*
seed
,
size_t
seed_size
,
size_t
key_size
);
size_t
dap_enc_bf_cbc_calc_decode_size
(
const
size_t
size_in
);
size_t
dap_enc_bf_cbc_calc_encode_size
(
const
size_t
size_in
);
size_t
dap_enc_bf_cbc_decrypt
(
struct
dap_enc_key
*
a_key
,
const
void
*
a_in
,
size_t
a_in_size
,
void
**
a_out
);
size_t
dap_enc_bf_cbc_encrypt
(
struct
dap_enc_key
*
a_key
,
const
void
*
a_in
,
size_t
a_in_size
,
void
**
a_out
);
// Writes result ( out ) in already allocated buffer
size_t
dap_enc_bf_cbc_decrypt_fast
(
struct
dap_enc_key
*
a_key
,
const
void
*
a_in
,
size_t
a_in_size
,
void
*
buf_out
,
size_t
buf_out_size
);
// Writes result ( out ) in already allocated buffer
size_t
dap_enc_bf_cbc_encrypt_fast
(
struct
dap_enc_key
*
a_key
,
const
void
*
a_in
,
size_t
a_in_size
,
void
*
buf_out
,
size_t
buf_out_size
);
#ifdef __cplusplus
}
#endif
#endif
Loading