Source code for the SHA512_End function.

Status
Not open for further replies.
Hi!
I was trying all queries and I couldn't find source code.
The source code for the functions SHA.._End, SHA..._Data and SHA.._File are in the __attribute__(_bounded(...)), but where are all that functions?
For example: the source code for the sha512 executable file is in the md5.c.
 
I'm not sure I understand?

Code:
char *SHA256_End(SHA256_CTX *, char *)
__attribute__((__bounded__(__minbytes__,2,SHA256_DIGEST_STRING_LENGTH)));
This says take parameter 2 (char * - the buffer and return the SHA256_DIGEST_STRING_LENGTH (which is 129 according to the manual page):


SHA512_End() is a wrapper for SHA512_Final() which converts the return
value to a 129-character (including the terminating '\0') ASCII string
which represents the 512 bits in hexadecimal.

All the relevant functions are in sha512.c such as SHA512_Update, Sha512_Final, SHA512_Init etc.
An example of it being used:
Code:
return (SHA512_End(&(c->SHA512), buf));

(Then again it's Christmas and I may have had a few beverages...)
 
Hi!
I am trying to find bodies of functions SHA512_End(), SHA512_Data() and SHA512_File().
For instance: bodies of functions SHA512_Init(), SHA512_Update ... are in the sha512.c file, but
this file does not include bodies of functions SHA512_End(), SHA512_Data() and SHA512_File().
 
Status
Not open for further replies.
Back
Top