Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
f32fda99
Commit
f32fda99
authored
Nov 21, 2005
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(CTR_CTX, CTR_CRYPT): Fixed bugs, spotted by Goran K.
Rev: src/nettle/ctr.h:1.2
parent
d36beb1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ctr.h
ctr.h
+5
-5
No files found.
ctr.h
View file @
f32fda99
...
...
@@ -39,16 +39,16 @@ ctr_crypt(void *ctx, nettle_crypt_func f,
const
uint8_t
*
src
);
#define CTR_CTX(type, size) \
{ type ctx; uint8_t ctr[size] }
{ type ctx; uint8_t ctr[size]
;
}
#define CTR_SET_COUNTER(ctx, data) \
memcpy((ctx)->ctr, (data), sizeof((ctx)->ctr))
#define CTR_CRYPT(self, f, length, dst, src) \
(0 ? ((f)(&(self)->ctx, 0, NULL, NULL)) \
: ctr_
en
crypt((void *) &(self)->ctx, \
(nettle_crypt_func) (f), \
sizeof((self)->ctr), (self)->ctr, \
(length), (dst), (src)))
: ctr_crypt((void *) &(self)->ctx, \
(nettle_crypt_func) (f),
\
sizeof((self)->ctr), (self)->ctr, \
(length), (dst), (src)))
#endif
/* NETTLE_CTR_H_INCLUDED */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment