Go to the source code of this file.
◆ rc4_add_entropy()
Definition at line 41 of file rc4.c.
42{
43
44 if (prng->
rc4.x +
len > 256) {
45 if (prng->
rc4.x == 256) {
46
48 } else {
49
51 }
52 }
53
56 }
57
59}
GLenum GLuint GLenum GLsizei const GLchar * buf
Referenced by setup_key_impl().
◆ rc4_read()
Definition at line 89 of file rc4.c.
90{
91 unsigned char x,
y, *
s, tmp;
93
100 y = (
y +
s[
x]) & 255;
101 tmp =
s[
x];
s[
x] =
s[
y];
s[
y] = tmp;
102 tmp = (
s[
x] +
s[
y]) & 255;
104 }
108}
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
Referenced by encrypt_stream_impl().
◆ rc4_ready()
Definition at line 61 of file rc4.c.
62{
63 unsigned char key[256], tmp, *
s;
65
66
70
71
72 for (
x = 0;
x < 256;
x++) {
74 }
75
76 for (
j =
x =
y = 0;
x < 256;
x++) {
80 }
82 }
85
87}
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 GLint GLint j
#define memcpy(s1, s2, n)
Referenced by setup_key_impl().
◆ rc4_start()