Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Wim Lewis
nettle
Commits
c1f9522d
Commit
c1f9522d
authored
Mar 12, 1999
by
Ruud de Rooij
Committed by
Niels Möller
Mar 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* 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
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
twofish.c
twofish.c
+1
-3
No files found.
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
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