Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
eac8a56a
Commit
eac8a56a
authored
Jun 23, 2002
by
peter@linux.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge pzaitsev@work.mysql.com:/home/bk/mysql-4.0
into linux.local:/data/mysql-4.0-root
parents
eb4ac4a1
1d074b3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
mysys/sha1.c
mysys/sha1.c
+10
-10
No files found.
mysys/sha1.c
View file @
eac8a56a
...
...
@@ -155,8 +155,8 @@ int sha1_result(SHA1_CONTEXT *context,
}
for
(
i
=
0
;
i
<
SHA1_HASH_SIZE
;
i
++
)
Message_Digest
[
i
]
=
(
context
->
Intermediate_Hash
[
i
>>
2
]
>>
8
*
(
3
-
(
i
&
0x03
)
));
Message_Digest
[
i
]
=
(
int8
)((
context
->
Intermediate_Hash
[
i
>>
2
]
>>
8
*
(
3
-
(
i
&
0x03
)
))
)
;
return
SHA_SUCCESS
;
}
...
...
@@ -379,14 +379,14 @@ void SHA1PadMessage(SHA1_CONTEXT *context)
Store the message length as the last 8 octets
*/
context
->
Message_Block
[
56
]
=
context
->
Length
>>
56
;
context
->
Message_Block
[
57
]
=
context
->
Length
>>
48
;
context
->
Message_Block
[
58
]
=
context
->
Length
>>
40
;
context
->
Message_Block
[
59
]
=
context
->
Length
>>
32
;
context
->
Message_Block
[
60
]
=
context
->
Length
>>
24
;
context
->
Message_Block
[
61
]
=
context
->
Length
>>
16
;
context
->
Message_Block
[
62
]
=
context
->
Length
>>
8
;
context
->
Message_Block
[
63
]
=
context
->
Length
;
context
->
Message_Block
[
56
]
=
(
int8
)
(
context
->
Length
>>
56
)
;
context
->
Message_Block
[
57
]
=
(
int8
)
(
context
->
Length
>>
48
)
;
context
->
Message_Block
[
58
]
=
(
int8
)
(
context
->
Length
>>
40
)
;
context
->
Message_Block
[
59
]
=
(
int8
)
(
context
->
Length
>>
32
)
;
context
->
Message_Block
[
60
]
=
(
int8
)
(
context
->
Length
>>
24
)
;
context
->
Message_Block
[
61
]
=
(
int8
)
(
context
->
Length
>>
16
)
;
context
->
Message_Block
[
62
]
=
(
int8
)
(
context
->
Length
>>
8
)
;
context
->
Message_Block
[
63
]
=
(
int8
)
(
context
->
Length
)
;
SHA1ProcessMessageBlock
(
context
);
}
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