ReactOS  0.4.14-dev-77-gd9e7c48
des_crypt.h File Reference
#include <rpc/rpc.h>
Include dependency graph for des_crypt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DES_MAXDATA   8192 /* max bytes encrypted in one call */
 
#define DES_DIRMASK   (1 << 0)
 
#define DES_ENCRYPT   (0*DES_DIRMASK) /* Encrypt */
 
#define DES_DECRYPT   (1*DES_DIRMASK) /* Decrypt */
 
#define DES_DEVMASK   (1 << 1)
 
#define DES_HW   (0*DES_DEVMASK) /* Use hardware device */
 
#define DES_SW   (1*DES_DEVMASK) /* Use software device */
 
#define DESERR_NONE   0 /* succeeded */
 
#define DESERR_NOHWDEVICE   1 /* succeeded, but hw device not available */
 
#define DESERR_HWERROR   2 /* failed, hardware/driver error */
 
#define DESERR_BADPARAM   3 /* failed, bad parameter to call */
 
#define DES_FAILED(err)   ((err) > DESERR_NOHWDEVICE)
 

Functions

__BEGIN_DECLS int cbc_crypt (char *, char *, unsigned int, unsigned int, char *)
 
__END_DECLS __BEGIN_DECLS int ecb_crypt (char *, char *, unsigned int, unsigned int)
 
__END_DECLS __BEGIN_DECLS void des_setparity (char *)
 

Macro Definition Documentation

◆ DES_DECRYPT

#define DES_DECRYPT   (1*DES_DIRMASK) /* Decrypt */

Definition at line 52 of file des_crypt.h.

◆ DES_DEVMASK

#define DES_DEVMASK   (1 << 1)

Definition at line 55 of file des_crypt.h.

◆ DES_DIRMASK

#define DES_DIRMASK   (1 << 0)

Definition at line 50 of file des_crypt.h.

◆ DES_ENCRYPT

#define DES_ENCRYPT   (0*DES_DIRMASK) /* Encrypt */

Definition at line 51 of file des_crypt.h.

◆ DES_FAILED

#define DES_FAILED (   err)    ((err) > DESERR_NOHWDEVICE)

Definition at line 65 of file des_crypt.h.

◆ DES_HW

#define DES_HW   (0*DES_DEVMASK) /* Use hardware device */

Definition at line 56 of file des_crypt.h.

◆ DES_MAXDATA

#define DES_MAXDATA   8192 /* max bytes encrypted in one call */

Definition at line 49 of file des_crypt.h.

◆ DES_SW

#define DES_SW   (1*DES_DEVMASK) /* Use software device */

Definition at line 57 of file des_crypt.h.

◆ DESERR_BADPARAM

#define DESERR_BADPARAM   3 /* failed, bad parameter to call */

Definition at line 63 of file des_crypt.h.

◆ DESERR_HWERROR

#define DESERR_HWERROR   2 /* failed, hardware/driver error */

Definition at line 62 of file des_crypt.h.

◆ DESERR_NOHWDEVICE

#define DESERR_NOHWDEVICE   1 /* succeeded, but hw device not available */

Definition at line 61 of file des_crypt.h.

◆ DESERR_NONE

#define DESERR_NONE   0 /* succeeded */

Definition at line 60 of file des_crypt.h.

Function Documentation

◆ cbc_crypt()

__BEGIN_DECLS int cbc_crypt ( char ,
char ,
unsigned int  ,
unsigned int  ,
char  
)

◆ des_setparity()

__END_DECLS __BEGIN_DECLS void des_setparity ( char )

Definition at line 56 of file des_soft.c.

58 {
59  int i;
60 
61  for (i = 0; i < 8; i++) {
62  *p = partab[*p & 0x7f];
63  p++;
64  }
65 }
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
static char partab[128]
Definition: des_soft.c:33
GLfloat GLfloat p
Definition: glext.h:8902

◆ ecb_crypt()

__END_DECLS __BEGIN_DECLS int ecb_crypt ( char ,
char ,
unsigned int  ,
unsigned int   
)