Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nettle
nettle
Commits
c1f9522d
Commit
c1f9522d
authored
Mar 12, 1999
by
Ruud de Rooij
Committed by
Niels Möller
Mar 12, 1999
Browse files
* src/symmetric/twofish.c: Buglet fix by Ruud.
Rev: src/symmetric/twofish.c:1.4
parent
02f8d551
Changes
1
Hide whitespace changes
Inline
Side-by-side
twofish.c
View file @
c1f9522d
...
...
@@ -411,9 +411,7 @@ twofish_setup(TWOFISH_context * context, size_t keysize, const UINT8 *key)
keysize
=
32
;
memcpy
(
key_copy
,
key
,
keysize
);
/* FIXME: This truncates the key if it is not a multiple of 4 octets.
* Is this really indended? */
bytes_to_words
(
m
,
key_copy
,
keysize
/
4
);
bytes_to_words
(
m
,
key_copy
,
(
keysize
+
3
)
/
4
);
if
(
keysize
<=
16
)
k
=
2
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment