Loading...
Searching...
No Matches

Header definitions for the SHA384 hash function. More...

Detailed Description

Header definitions for the SHA384 hash function.

Author
Mikolai Gütschow mikol.nosp@m.ai.g.nosp@m.uetsc.nosp@m.how@.nosp@m.tu-dr.nosp@m.esde.nosp@m.n.de

Definition in file sha384.h.

#include <inttypes.h>
#include <stddef.h>
#include "hashes/sha512_common.h"
+ Include dependency graph for sha384.h:

Go to the source code of this file.

Macros

#define SHA384_DIGEST_LENGTH   (48)
 Length of SHA384 digests in bytes.
 
#define SHA384_INTERNAL_BLOCK_SIZE   (128)
 1024 Bit (128 Byte) internally used block size for sha384
 

Typedefs

typedef sha512_common_context_t sha384_context_t
 Context for cipher operations based on sha384.
 

Functions

void sha384_init (sha384_context_t *ctx)
 SHA-384 initialization.
 
static void sha384_update (sha384_context_t *ctx, const void *data, size_t len)
 Add bytes into the hash.
 
static void sha384_final (sha384_context_t *ctx, void *digest)
 SHA-384 finalization.
 
void sha384 (const void *data, size_t len, void *digest)
 A wrapper function to simplify the generation of a hash.