Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-crypto
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
cellframe
libdap-crypto
Commits
481374be
Commit
481374be
authored
5 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Fixed signess warnings
parent
0c0c9cd6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/XKCP/lib/high/Keccak/SP800-185/SP800-185.inc
+3
-3
3 additions, 3 deletions
src/XKCP/lib/high/Keccak/SP800-185/SP800-185.inc
with
3 additions
and
3 deletions
src/XKCP/lib/high/Keccak/SP800-185/SP800-185.inc
+
3
−
3
View file @
481374be
...
@@ -160,7 +160,7 @@ int KMAC_Initialize(KMAC_Instance *km, const BitSequence *key, BitLength keyBitL
...
@@ -160,7 +160,7 @@ int KMAC_Initialize(KMAC_Instance *km, const BitSequence *key, BitLength keyBitL
BitLength
keyByteLen
;
BitLength
keyByteLen
;
BitSequence
buffer
[
rateInBytes
];
BitSequence
buffer
[
rateInBytes
];
if
(
cSHAKE_Initialize
(
&
km
->
csi
,
outputBitLen
,
"KMAC"
,
4
*
8
,
customization
,
customBitLen
)
!=
0
)
if
(
cSHAKE_Initialize
(
&
km
->
csi
,
outputBitLen
,
(
const
BitSequence
*
)
"KMAC"
,
4
*
8
,
customization
,
customBitLen
)
!=
0
)
return
1
;
return
1
;
km
->
outputBitLen
=
outputBitLen
;
km
->
outputBitLen
=
outputBitLen
;
...
@@ -309,7 +309,7 @@ int ParallelHash_Initialize(ParallelHash_Instance *phi, unsigned int blockByteLe
...
@@ -309,7 +309,7 @@ int ParallelHash_Initialize(ParallelHash_Instance *phi, unsigned int blockByteLe
return
1
;
return
1
;
/* Absorb string_encode("ParallelHash") */
/* Absorb string_encode("ParallelHash") */
if
(
KeccakWidth1600_SpongeAbsorb
(
&
phi
->
finalNode
,
"
\x01\x60
"
"ParallelHash"
,
14
)
!=
0
)
if
(
KeccakWidth1600_SpongeAbsorb
(
&
phi
->
finalNode
,
(
const
BitSequence
*
)
"
\x01\x60
"
"ParallelHash"
,
14
)
!=
0
)
return
1
;
return
1
;
/* Absorb string_encode(customization) */
/* Absorb string_encode(customization) */
...
@@ -493,7 +493,7 @@ int ParallelHash( const BitSequence *input, BitLength inputBitLen, unsigned int
...
@@ -493,7 +493,7 @@ int ParallelHash( const BitSequence *input, BitLength inputBitLen, unsigned int
int
TupleHash_Initialize
(
TupleHash_Instance
*
thi
,
BitLength
outputBitLen
,
int
TupleHash_Initialize
(
TupleHash_Instance
*
thi
,
BitLength
outputBitLen
,
const
BitSequence
*
customization
,
BitLength
customBitLen
)
const
BitSequence
*
customization
,
BitLength
customBitLen
)
{
{
if
(
cSHAKE_Initialize
(
&
thi
->
csi
,
outputBitLen
,
"TupleHash"
,
9
*
8
,
customization
,
customBitLen
)
!=
0
)
if
(
cSHAKE_Initialize
(
&
thi
->
csi
,
outputBitLen
,
(
const
BitSequence
*
)
"TupleHash"
,
9
*
8
,
customization
,
customBitLen
)
!=
0
)
return
1
;
return
1
;
thi
->
outputBitLen
=
outputBitLen
;
thi
->
outputBitLen
=
outputBitLen
;
return
0
;
return
0
;
...
...
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