Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Show more breadcrumbs
cm-projects
RIOT
Commits
ce099c65
Commit
ce099c65
authored
7 years ago
by
Mathias Tausig
Browse files
Options
Downloads
Patches
Plain Diff
hashes:sha3: Remove unused functions from Keccak code
Remove unused SHAKE functions Removed unused SHA3-224
parent
91a473a8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sys/hashes/sha3.c
+0
-25
0 additions, 25 deletions
sys/hashes/sha3.c
with
0 additions
and
25 deletions
sys/hashes/sha3.c
+
0
−
25
View file @
ce099c65
...
...
@@ -88,31 +88,6 @@ static void Keccak(unsigned int rate, unsigned int capacity, const unsigned char
unsigned
long
long
int
inputByteLen
,
unsigned
char
delimitedSuffix
,
unsigned
char
*
output
,
unsigned
long
long
int
outputByteLen
);
/**
* Function to compute SHAKE128 on the input message with any output length.
*/
void
FIPS202_SHAKE128
(
const
unsigned
char
*
input
,
unsigned
int
inputByteLen
,
unsigned
char
*
output
,
int
outputByteLen
)
{
Keccak
(
1344
,
256
,
input
,
inputByteLen
,
0x1F
,
output
,
outputByteLen
);
}
/**
* Function to compute SHAKE256 on the input message with any output length.
*/
void
FIPS202_SHAKE256
(
const
unsigned
char
*
input
,
unsigned
int
inputByteLen
,
unsigned
char
*
output
,
int
outputByteLen
)
{
Keccak
(
1088
,
512
,
input
,
inputByteLen
,
0x1F
,
output
,
outputByteLen
);
}
/**
* Function to compute SHA3-224 on the input message. The output length is fixed to 28 bytes.
*/
void
FIPS202_SHA3_224
(
const
unsigned
char
*
input
,
unsigned
int
inputByteLen
,
unsigned
char
*
output
)
{
Keccak
(
1152
,
448
,
input
,
inputByteLen
,
0x06
,
output
,
28
);
}
/**
* Function to compute SHA3-256 on the input message. The output length is fixed to 32 bytes.
*/
...
...
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