# digest.c File Reference

`#include <stdio.h>`
`#include <stdlib.h>`
`#include <string.h>`
`#include <time.h>`
`#include "wizard/studio.h"`
`#include "wizard/WizardsToolkit.h"`
`#include "wizard/blob-private.h"`
`#include "content.h"`
`#include "utility.h"`

## Defines

#define | ThrowDigestException(asperity, tag, context)
#define | ThrowFileException(exception, severity, context)

## Functions

static void | DigestUsage (const char *name)
static WizardBooleanType | AuthenticateDigest (int argc, char **argv, ExceptionInfo *exception)
WizardExport WizardBooleanType | DigestCommand (int argc, char **argv, ExceptionInfo *exception)
int | main (int argc, char **argv)

## Define Documentation

#define ThrowDigestException | ( | asperity,
|  | tag,
|  | context |  | ) |

Value:

    { \
      (void) ThrowWizardException(exception,GetWizardModule(),asperity,tag, \
        context); \
      for (i=0; i < (long) argc; i++) \
        argv[i]=DestroyString(argv[i]); \
      return(WizardFalse); \
    }

#define ThrowFileException | ( | exception,
|  | severity,
|  | context |  | ) |

Value:

    { \
      (void) ThrowWizardException(exception,GetWizardModule(),severity, \
        "unable to open file `%s': %s",context,strerror(errno)); \
    }

## Function Documentation

static WizardBooleanType AuthenticateDigest | ( | int | argc,
|  | char ** | argv,
|  | ExceptionInfo * | exception |
| ) |  |  | `[static]`

WizardExport WizardBooleanType DigestCommand | ( | int | argc,
|  | char ** | argv,
|  | ExceptionInfo * | exception |
| ) |  |  |

static void DigestUsage | ( | const char * | name | ) | `[static]`

int main | ( | int | argc,
|  | char ** | argv |
| ) |  |  |