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
fc285cc5
Commit
fc285cc5
authored
19 years ago
by
Niels Möller
Browse files
Options
Downloads
Patches
Plain Diff
(_aes_decrypt_table): Don't declare, it's no
longer globally visible. Rev: src/nettle/aes-internal.h:1.11
parent
cf2caa24
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
aes-internal.h
+15
-11
15 additions, 11 deletions
aes-internal.h
with
15 additions
and
11 deletions
aes-internal.h
+
15
−
11
View file @
fc285cc5
...
@@ -28,6 +28,11 @@
...
@@ -28,6 +28,11 @@
#include
"aes.h"
#include
"aes.h"
/* Name mangling */
#define _aes_encrypt _nettle_aes_encrypt
#define _aes_decrypt _nettle_aes_decrypt
#define _aes_encrypt_table _nettle_aes_encrypt_table
/* Define to use only small tables. */
/* Define to use only small tables. */
#ifndef AES_SMALL
#ifndef AES_SMALL
# define AES_SMALL 0
# define AES_SMALL 0
...
@@ -67,13 +72,13 @@ struct aes_table
...
@@ -67,13 +72,13 @@ struct aes_table
};
};
void
void
_nettle
_aes_crypt
(
const
struct
aes_ctx
*
ctx
,
_aes_
en
crypt
(
const
struct
aes_ctx
*
ctx
,
const
struct
aes_table
*
T
,
const
struct
aes_table
*
T
,
unsigned
length
,
uint8_t
*
dst
,
unsigned
length
,
uint8_t
*
dst
,
const
uint8_t
*
src
);
const
uint8_t
*
src
);
void
void
_nettle
_aes_e
n
crypt
(
const
struct
aes_ctx
*
ctx
,
_aes_
d
ecrypt
(
const
struct
aes_ctx
*
ctx
,
const
struct
aes_table
*
T
,
const
struct
aes_table
*
T
,
unsigned
length
,
uint8_t
*
dst
,
unsigned
length
,
uint8_t
*
dst
,
const
uint8_t
*
src
);
const
uint8_t
*
src
);
...
@@ -104,10 +109,9 @@ _nettle_aes_encrypt(const struct aes_ctx *ctx,
...
@@ -104,10 +109,9 @@ _nettle_aes_encrypt(const struct aes_ctx *ctx,
| ((uint32_t) T->sbox[ B2(w2) ] << 16) \
| ((uint32_t) T->sbox[ B2(w2) ] << 16) \
| ((uint32_t) T->sbox[ B3(w3) ] << 24)) ^ (k))
| ((uint32_t) T->sbox[ B3(w3) ] << 24)) ^ (k))
/* Internal tables */
/* Globally visible so that the same sbox table can be used by aes_set_encrypt_key */
extern
const
struct
aes_table
_aes_encrypt_table
;
extern
const
struct
aes_table
_aes_decrypt_table
;
extern
const
struct
aes_table
_aes_encrypt_table
;
#define aes_sbox (_aes_encrypt_table.sbox)
#define aes_sbox (_aes_encrypt_table.sbox)
#endif
/* NETTLE_AES_INTERNAL_H_INCLUDED */
#endif
/* NETTLE_AES_INTERNAL_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