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
a23fa5b0
Commit
a23fa5b0
authored
26 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
Reorganized lsh.h and lsh_Types.h.
Rev: src/symmetric/include/crypto_types.h:1.6
parent
3f7c7bf2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/crypto_types.h
+1
-39
1 addition, 39 deletions
include/crypto_types.h
with
1 addition
and
39 deletions
include/crypto_types.h
+
1
−
39
View file @
a23fa5b0
...
...
@@ -13,36 +13,8 @@
# define UINT8 unsigned INT8
#else
/* !PIKE */
/* FIXME: Reorganize the header files for definitions. This stuff
* should probably live in lsh_types.h, and object definitions should
* move into a separate header file.
*
* FIXME: some of the crypto implementations could well use the
* READ_UINT32 and WRITE_UINT32 macros. */
# ifdef LSH
# ifdef HAVE_CONFIG_H
# include "config.h"
# endif
# if SIZEOF_SHORT >= 4
# define UINT32 unsigned short
# elif SIZEOF_INT >= 4
# define UINT32 unsigned int
# elif SIZEOF_LONG >= 4
# define UINT32 unsigned long
# else
# error No suitable type found to use for UINT32
# endif
/* UINT32 */
# if SIZEOF_SHORT >= 2
# define UINT16 unsigned short
# elif SIZEOF_INT >= 2
# define UINT16 unsigned int
# else
# error No suitable type found to use for UINT16
# endif
/* UINT16 */
# define UINT8 unsigned char
# include "lsh_types.h"
# else
/* !LSH */
# define UINT32 unsigned long
...
...
@@ -51,14 +23,4 @@
# endif
/* !PIKE */
#endif
#ifdef __GNUC__
#define NORETURN __attribute__ ((noreturn))
#define PRINTF_STYLE(f, a) __attribute__ ((format(printf, f, a)))
#define UNUSED __attribute__ ((unused))
#else
#define NORETURN
#define PRINTF_STYLE(f, a)
#define UNUSED
#endif
#endif
/* CRYPTO_TYPES_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