DSi SHA1 functions.
More...
#include "nds/ndstypes.h"
#include <stddef.h>
void swiSHA1Calc |
( |
void * |
digest, |
|
|
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
SHA-1 checksum.
- Parameters
-
digest | buffer to hold SHA-1 checksum result |
data | buffer to process |
len | length of data |
void swiSHA1Final |
( |
void * |
digest, |
|
|
swiSHA1context_t * |
ctx |
|
) |
| |
SHA-1 final digest.
- Parameters
-
digest | buffer to hold SHA-1 checksum result |
ctx | SHA-1 context |
void swiSHA1Init |
( |
swiSHA1context_t * |
ctx | ) |
|
SHA-1 context setup.
- Parameters
-
ctx | context to be initialized |
void swiSHA1Update |
( |
swiSHA1context_t * |
ctx, |
|
|
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
SHA-1 process buffer.
- Parameters
-
ctx | SHA-1 context |
data | buffer to process |
len | length of data |
void swiSHA1Verify |
( |
const void * |
digest1, |
|
|
const void * |
digest2 |
|
) |
| |
SHA-1 verify.
- Parameters
-
digest1 | buffer containing hash to verify |
digest2 | buffer containing hash to verify |