Linux Kernel
3.7.1
|
#include <linux/err.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/crypto.h>
#include <linux/mm.h>
#include <linux/ppp_defs.h>
#include <linux/ppp-comp.h>
#include <linux/scatterlist.h>
#include <asm/unaligned.h>
#include "ppp_mppe.h"
Go to the source code of this file.
Data Structures | |
struct | sha_pad |
struct | ppp_mppe_state |
Macros | |
#define | SHA1_PAD_SIZE 40 |
#define | MPPE_BIT_A 0x80 /* Encryption table were (re)inititalized */ |
#define | MPPE_BIT_B 0x40 /* MPPC only (not implemented) */ |
#define | MPPE_BIT_C 0x20 /* MPPC only (not implemented) */ |
#define | MPPE_BIT_D 0x10 /* This is an encrypted frame */ |
#define | MPPE_BIT_FLUSHED MPPE_BIT_A |
#define | MPPE_BIT_ENCRYPTED MPPE_BIT_D |
#define | MPPE_BITS(p) ((p)[4] & 0xf0) |
#define | MPPE_CCOUNT(p) ((((p)[4] & 0x0f) << 8) + (p)[5]) |
#define | MPPE_CCOUNT_SPACE 0x1000 /* The size of the ccount space */ |
#define | MPPE_OVHD 2 /* MPPE overhead/packet */ |
#define | SANITY_MAX 1600 /* Max bogon factor we will tolerate */ |
Functions | |
MODULE_AUTHOR ("Frank Cusack <[email protected]>") | |
MODULE_DESCRIPTION ("Point-to-Point Protocol Microsoft Point-to-Point Encryption support") | |
MODULE_LICENSE ("Dual BSD/GPL") | |
MODULE_ALIAS ("ppp-compress-"__stringify(CI_MPPE)) | |
MODULE_VERSION ("1.0.2") | |
module_init (ppp_mppe_init) | |
module_exit (ppp_mppe_cleanup) | |
#define MPPE_BIT_A 0x80 /* Encryption table were (re)inititalized */ |
Definition at line 118 of file ppp_mppe.c.
#define MPPE_BIT_B 0x40 /* MPPC only (not implemented) */ |
Definition at line 119 of file ppp_mppe.c.
#define MPPE_BIT_C 0x20 /* MPPC only (not implemented) */ |
Definition at line 120 of file ppp_mppe.c.
#define MPPE_BIT_D 0x10 /* This is an encrypted frame */ |
Definition at line 121 of file ppp_mppe.c.
#define MPPE_BIT_ENCRYPTED MPPE_BIT_D |
Definition at line 124 of file ppp_mppe.c.
#define MPPE_BIT_FLUSHED MPPE_BIT_A |
Definition at line 123 of file ppp_mppe.c.
Definition at line 126 of file ppp_mppe.c.
Definition at line 127 of file ppp_mppe.c.
#define MPPE_CCOUNT_SPACE 0x1000 /* The size of the ccount space */ |
Definition at line 128 of file ppp_mppe.c.
#define MPPE_OVHD 2 /* MPPE overhead/packet */ |
Definition at line 130 of file ppp_mppe.c.
#define SANITY_MAX 1600 /* Max bogon factor we will tolerate */ |
Definition at line 131 of file ppp_mppe.c.
#define SHA1_PAD_SIZE 40 |
Definition at line 75 of file ppp_mppe.c.
MODULE_ALIAS | ( | "ppp-compress-" | __stringifyCI_MPPE | ) |
MODULE_AUTHOR | ( | "Frank Cusack <[email protected]>" | ) |
module_exit | ( | ppp_mppe_cleanup | ) |
module_init | ( | ppp_mppe_init | ) |
MODULE_LICENSE | ( | "Dual BSD/GPL" | ) |
MODULE_VERSION | ( | "1.0.2" | ) |