SHA384(3) BSD Library Functions Manual SHA384(3)NAME
SHA384_Init, SHA384_Update, SHA384_Final — calculate the FIPS 180-2
``SHA-384'' message digest
LIBRARY
library “libmd”
SYNOPSIS
#include <sys/types.h>
#include <sha512.h>
void
SHA384_Init(SHA384_CTX *context);
void
SHA384_Update(SHA384_CTX *context, const u_int8_t *data, size_t len);
void
SHA384_Final(u_int8_t digest[48], SHA384_CTX *context);
DESCRIPTION
The SHA384_ functions calculate a 384-bit cryptographic checksum (digest)
for any number of input bytes. A cryptographic checksum is a one-way
hash function; that is, it is computationally impractical to find the
input corresponding to a particular output. This net result is a
“fingerprint” of the input-data, which does not disclose the actual
input.
The SHA384_Init(), SHA384_Update(), and SHA384_Final() functions are the
core functions. Allocate an SHA384_CTX, initialize it with
SHA384_Init(), run over the data with SHA384_Update(), and finally
extract the result using SHA384_Final().
SEE ALSOmd2(3), md4(3), md5(3), ripemd(3), sha(3)HISTORY
These functions appeared in DragonFly 2.9.
AUTHORS
The core hash routines were implemented by Colin Percival based on the
published FIPS 180-2 standard.
BUGS
No method is known to exist which finds two files having the same hash
value, nor to find a file with a specific hash value. There is on the
other hand no guarantee that such a method does not exist.
BSD July 4, 2010 BSD