libnx  v4.6.0
Data Structures | Macros | Functions
sha1.h File Reference

Hardware accelerated SHA1 implementation. More...

#include "../types.h"

Go to the source code of this file.

Data Structures

struct  Sha1Context
 Context for SHA1 operations. More...
 

Macros

#define SHA1_HASH_SIZE   0x14
 
#define SHA1_BLOCK_SIZE   0x40
 

Functions

void sha1ContextCreate (Sha1Context *out)
 Initialize a SHA1 context.
 
void sha1ContextUpdate (Sha1Context *ctx, const void *src, size_t size)
 Updates SHA1 context with data to hash.
 
void sha1ContextGetHash (Sha1Context *ctx, void *dst)
 Gets the context's output hash, finalizes the context.
 
void sha1CalculateHash (void *dst, const void *src, size_t size)
 Simple all-in-one SHA1 calculator.
 

Detailed Description

Hardware accelerated SHA1 implementation.