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_DES_H

#define LWIP_INCLUDED_POLARSSL_DES_H


      

Marco DES_ENCRYPT

#define DES_ENCRYPT    1


      

Marco DES_DECRYPT

#define DES_DECRYPT    0

      

Functions

Func des_setkey_enc

void des_setkey_enc( des_context *ctx, unsigned char key[8] );
/**
 * \brief          DES key schedule (56-bit, encryption)
 *
 * \param ctx      DES context to be initialized
 * \param key      8-byte secret key
 */

Func des_setkey_dec

void des_setkey_dec( des_context *ctx, unsigned char key[8] );
/**
 * \brief          DES key schedule (56-bit, decryption)
 *
 * \param ctx      DES context to be initialized
 * \param key      8-byte secret key
 */

Func des_crypt_ecb

void des_crypt_ecb( des_context *ctx,
                   const unsigned char input[8],
                   unsigned char output[8] );
/**
 * \brief          DES-ECB block encryption/decryption
 *
 * \param ctx      DES context
 * \param input    64-bit input block
 * \param output   64-bit output block
 */

Vars

Consts

Types

Typedefs

Typedef des_context;

typedef struct
{
   int mode;                  /*!<  encrypt/decrypt   */
   unsigned long sk[32];      /*!<  DES subkeys       */
}
des_context;
/**
 * \brief          DES context structure
 */