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
87048004
Commit
87048004
authored
11 years ago
by
Christian Mehlis
Browse files
Options
Downloads
Patches
Plain Diff
added doxygen doc to sha256
parent
eda3be33
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
sys/include/sha256.h
+24
-3
24 additions, 3 deletions
sys/include/sha256.h
with
24 additions
and
3 deletions
sys/include/sha256.h
+
24
−
3
View file @
87048004
...
@@ -40,8 +40,29 @@ typedef struct SHA256Context {
...
@@ -40,8 +40,29 @@ typedef struct SHA256Context {
unsigned
char
buf
[
64
];
unsigned
char
buf
[
64
];
}
SHA256_CTX
;
}
SHA256_CTX
;
void
SHA256_Init
(
SHA256_CTX
*
);
/**
void
SHA256_Update
(
SHA256_CTX
*
,
const
void
*
,
size_t
);
* @brief SHA-256 initialization. Begins a SHA-256 operation.
void
SHA256_Final
(
unsigned
char
[
32
],
SHA256_CTX
*
);
*
* @param ctx SHA256_CTX handle to init
*/
void
SHA256_Init
(
SHA256_CTX
*
ctx
);
/**
* @brief Add bytes into the hash
*
* @param ctx SHA256_CTX handle to use
* @param in pointer to the input buffer
* @param len length of the buffer
*/
void
SHA256_Update
(
SHA256_CTX
*
ctx
,
const
void
*
in
,
size_t
len
);
/**
* @brief SHA-256 finalization. Pads the input data, exports the hash value,
* and clears the context state.
*
* @param digest resulting digest, this is the hash of all the bytes
* @param ctx SHA256_CTX handle to use
*/
void
SHA256_Final
(
unsigned
char
digest
[
32
],
SHA256_CTX
*
ctx
);
#endif
/* !_SHA256_H_ */
#endif
/* !_SHA256_H_ */
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