Documentation

Documentation

Includes

netif/ppp/ppp_opts.h

#include "netif/ppp/ppp_opts.h"
#include "netif/ppp/ppp_opts.h"

Macros

Marco LWIP_INCLUDED_POLARSSL_SHA1_H

#define LWIP_INCLUDED_POLARSSL_SHA1_H

      

Functions

Func sha1_starts

void sha1_starts( sha1_context *ctx );
/**
 * \brief          SHA-1 context setup
 *
 * \param ctx      context to be initialized
 */

Func sha1_update

void sha1_update( sha1_context *ctx, const unsigned char *input, int ilen );
/**
 * \brief          SHA-1 process buffer
 *
 * \param ctx      SHA-1 context
 * \param input    buffer holding the  data
 * \param ilen     length of the input data
 */

Func sha1_finish

void sha1_finish( sha1_context *ctx, unsigned char output[20] );
/**
 * \brief          SHA-1 final digest
 *
 * \param ctx      SHA-1 context
 * \param output   SHA-1 checksum result
 */

Func sha1

void sha1( unsigned char *input, int ilen, unsigned char output[20] );
/**
 * \brief          Output = SHA-1( input buffer )
 *
 * \param input    buffer holding the  data
 * \param ilen     length of the input data
 * \param output   SHA-1 checksum result
 */

Vars

Consts

Types

Typedefs

Typedef sha1_context;

typedef struct
{
   unsigned long total[2];    /*!< number of bytes processed  */
   unsigned long state[5];    /*!< intermediate digest state  */
   unsigned char buffer[64];  /*!< data block being processed */
}
sha1_context;
/**
 * \brief          SHA-1 context structure
 */