PostgreSQL Source Code
git master
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
f
h
i
n
o
p
r
s
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
md5_int.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
*
3
* md5_int.h
4
* Internal headers for fallback implementation of MD5
5
*
6
* Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7
* Portions Copyright (c) 1994, Regents of the University of California
8
*
9
* IDENTIFICATION
10
* src/common/md5_int.h
11
*
12
*-------------------------------------------------------------------------
13
*/
14
15
/* $KAME: md5.h,v 1.3 2000/02/22 14:01:18 itojun Exp $ */
16
17
/*
18
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
19
* All rights reserved.
20
*
21
* Redistribution and use in source and binary forms, with or without
22
* modification, are permitted provided that the following conditions
23
* are met:
24
* 1. Redistributions of source code must retain the above copyright
25
* notice, this list of conditions and the following disclaimer.
26
* 2. Redistributions in binary form must reproduce the above copyright
27
* notice, this list of conditions and the following disclaimer in the
28
* documentation and/or other materials provided with the distribution.
29
* 3. Neither the name of the project nor the names of its contributors
30
* may be used to endorse or promote products derived from this software
31
* without specific prior written permission.
32
*
33
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
34
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
35
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
36
* ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
37
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
38
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
39
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
42
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43
* SUCH DAMAGE.
44
*/
45
46
#ifndef PG_MD5_INT_H
47
#define PG_MD5_INT_H
48
49
#include "
common/md5.h
"
50
51
#define MD5_BUFLEN 64
52
53
/* Context data for MD5 */
54
typedef
struct
55
{
56
union
57
{
58
uint32
md5_state32[4];
59
uint8
md5_state8[16];
60
} md5_st;
61
62
#define md5_sta md5_st.md5_state32[0]
63
#define md5_stb md5_st.md5_state32[1]
64
#define md5_stc md5_st.md5_state32[2]
65
#define md5_std md5_st.md5_state32[3]
66
#define md5_st8 md5_st.md5_state8
67
68
union
69
{
70
uint64
md5_count64
;
71
uint8
md5_count8[8];
72
} md5_count;
73
#define md5_n md5_count.md5_count64
74
#define md5_n8 md5_count.md5_count8
75
76
unsigned
int
md5_i
;
77
uint8
md5_buf[
MD5_BUFLEN
];
78
}
pg_md5_ctx
;
79
80
/* Interface routines for MD5 */
81
extern
void
pg_md5_init
(
pg_md5_ctx
*ctx);
82
extern
void
pg_md5_update
(
pg_md5_ctx
*ctx,
const
uint8
*
data
,
size_t
len
);
83
extern
void
pg_md5_final
(
pg_md5_ctx
*ctx,
uint8
*
dest
);
84
85
#endif
/* PG_MD5_INT_H */
uint32
unsigned int uint32
Definition:
c.h:492
uint8
unsigned char uint8
Definition:
c.h:490
md5.h
pg_md5_init
void pg_md5_init(pg_md5_ctx *ctx)
Definition:
md5.c:382
pg_md5_update
void pg_md5_update(pg_md5_ctx *ctx, const uint8 *data, size_t len)
Definition:
md5.c:400
MD5_BUFLEN
#define MD5_BUFLEN
Definition:
md5_int.h:51
pg_md5_final
void pg_md5_final(pg_md5_ctx *ctx, uint8 *dest)
Definition:
md5.c:432
generate_unaccent_rules.dest
dest
Definition:
generate_unaccent_rules.py:285
len
const void size_t len
Definition:
pg_crc32c_sse42.c:25
data
const void * data
Definition:
pg_crc32c_sse42.c:24
pg_md5_ctx
Definition:
md5_int.h:55
pg_md5_ctx::md5_i
unsigned int md5_i
Definition:
md5_int.h:76
pg_md5_ctx::md5_count64
uint64 md5_count64
Definition:
md5_int.h:70
src
common
md5_int.h
Generated on Tue Dec 3 2024 00:13:24 for PostgreSQL Source Code by
1.9.1