libnds
Functions
sha1.h File Reference

DSi SHA1 functions. More...

#include "nds/ndstypes.h"
#include <stddef.h>

Functions

void swiSHA1Calc (void *digest, const void *data, size_t len)
 SHA-1 checksum. More...
 
void swiSHA1Final (void *digest, swiSHA1context_t *ctx)
 SHA-1 final digest. More...
 
void swiSHA1Init (swiSHA1context_t *ctx)
 SHA-1 context setup. More...
 
void swiSHA1Update (swiSHA1context_t *ctx, const void *data, size_t len)
 SHA-1 process buffer. More...
 
void swiSHA1Verify (const void *digest1, const void *digest2)
 SHA-1 verify. More...
 

Detailed Description

DSi SHA1 functions.

Function Documentation

void swiSHA1Calc ( void *  digest,
const void *  data,
size_t  len 
)

SHA-1 checksum.

Parameters
digestbuffer to hold SHA-1 checksum result
databuffer to process
lenlength of data
void swiSHA1Final ( void *  digest,
swiSHA1context_t *  ctx 
)

SHA-1 final digest.

Parameters
digestbuffer to hold SHA-1 checksum result
ctxSHA-1 context
void swiSHA1Init ( swiSHA1context_t *  ctx)

SHA-1 context setup.

Parameters
ctxcontext to be initialized
void swiSHA1Update ( swiSHA1context_t *  ctx,
const void *  data,
size_t  len 
)

SHA-1 process buffer.

Parameters
ctxSHA-1 context
databuffer to process
lenlength of data
void swiSHA1Verify ( const void *  digest1,
const void *  digest2 
)

SHA-1 verify.

Parameters
digest1buffer containing hash to verify
digest2buffer containing hash to verify