#include <string.h>
#include <windef.h>
Go to the source code of this file.
◆ HMACMD5Final()
Definition at line 63 of file hmac_md5.c.
64{
66 unsigned char inner_digest[16];
67
70
75
77}
void WINAPI MD5Update(struct md5_ctx *, const unsigned char *, unsigned int)
void WINAPI MD5Init(struct md5_ctx *)
void WINAPI MD5Final(struct md5_ctx *)
#define memcpy(s1, s2, n)
Referenced by ntlm_CreateSignature().
◆ HMACMD5Init()
Definition at line 24 of file hmac_md5.c.
25{
27 unsigned char inner_padding[64];
28 unsigned char temp_key[16];
29
30 if(key_len > 64)
31 {
33
38
40 key_len = 16;
41 }
42
43 memset(inner_padding, 0, 64);
47
48 for(
i = 0;
i < 64; ++
i)
49 {
50 inner_padding[
i] ^= 0x36;
51 ctx->outer_padding[
i] ^= 0x5c;
52 }
53
56}
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
Referenced by ntlm_CreateSignature().
◆ HMACMD5Update()
◆ MD5Final()
Definition at line 113 of file md5.c.
114{
117
118
120
121
122
125
126
128
129
131 {
132
136
137
139 }
140 else
141 {
142
144 }
145
147
148
149 ((
unsigned int *)
ctx->in)[14] =
ctx->i[0];
150 ((
unsigned int *)
ctx->in)[15] =
ctx->i[1];
151
156}
GLuint GLuint GLsizei count
static void MD5Transform(unsigned int buf[4], const unsigned int in[16])
#define byteReverse(buf, long)
◆ MD5Init()
Definition at line 45 of file md5.c.
46{
47 ctx->buf[0] = 0x67452301;
48 ctx->buf[1] = 0xefcdab89;
49 ctx->buf[2] = 0x98badcfe;
50 ctx->buf[3] = 0x10325476;
51
53}
◆ MD5Update()
Definition at line 59 of file md5.c.
60{
61 register unsigned int t;
62
63
65
66 if ((
ctx->i[0] =
t + (
len << 3)) <
t)
68
71
72
74 {
75 unsigned char *
p = (
unsigned char *)
ctx->in +
t;
77
79 {
81 return;
82 }
83
86
88
91 }
92
93
95 {
98
100
103 }
104
105
107}
GLenum GLuint GLenum GLsizei const GLchar * buf