Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
nettle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Dmitry Baryshkov
nettle
Commits
3ee29d7d
Commit
3ee29d7d
authored
23 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
(struct nettle_armor): New struct.
Rev: src/nettle/nettle-meta.h:1.3
parent
d6599103
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
nettle-meta.h
+29
-1
29 additions, 1 deletion
nettle-meta.h
with
29 additions
and
1 deletion
nettle-meta.h
+
29
−
1
View file @
3ee29d7d
...
@@ -84,7 +84,7 @@ extern const struct nettle_cipher nettle_twofish192;
...
@@ -84,7 +84,7 @@ extern const struct nettle_cipher nettle_twofish192;
extern
const
struct
nettle_cipher
nettle_twofish256
;
extern
const
struct
nettle_cipher
nettle_twofish256
;
/* Hash algorithm */
/* Hash algorithm
s
*/
typedef
void
(
*
nettle_hash_init_func
)(
void
*
ctx
);
typedef
void
(
*
nettle_hash_init_func
)(
void
*
ctx
);
typedef
void
(
*
nettle_hash_update_func
)(
void
*
ctx
,
typedef
void
(
*
nettle_hash_update_func
)(
void
*
ctx
,
unsigned
length
,
unsigned
length
,
...
@@ -124,4 +124,32 @@ extern const struct nettle_hash nettle_md5;
...
@@ -124,4 +124,32 @@ extern const struct nettle_hash nettle_md5;
extern
const
struct
nettle_hash
nettle_sha1
;
extern
const
struct
nettle_hash
nettle_sha1
;
extern
const
struct
nettle_hash
nettle_sha256
;
extern
const
struct
nettle_hash
nettle_sha256
;
/* ASCII armor codecs */
typedef
unsigned
(
*
nettle_armor_func
)(
uint8_t
*
dst
,
unsigned
src_length
,
const
uint8_t
*
src
);
struct
nettle_armor
{
const
char
*
name
;
unsigned
ascii_block_size
;
unsigned
raw_block_size
;
nettle_armor_func
encode
;
nettle_armor_func
decode
;
};
#define _NETTLE_ARMOR(name, NAME) { \
#name, \
NAME##_ASCII_BLOCK_SIZE, \
NAME##_RAW_BLOCK_SIZE, \
name##_encode, \
name##_decode \
}
extern
const
struct
nettle_armor
nettle_base64
;
extern
const
struct
nettle_armor
nettle_base16
;
#endif
/* NETTLE_META_H_INCLUDED */
#endif
/* NETTLE_META_H_INCLUDED */
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