Skip to content
Snippets Groups Projects
Commit 87048004 authored by Christian Mehlis's avatar Christian Mehlis
Browse files

added doxygen doc to sha256

parent eda3be33
No related branches found
No related tags found
No related merge requests found
...@@ -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_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment