forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita8ed6bb
committed
Introduce SHA1 implementations in the cryptohash infrastructure
With this commit, SHA1 goes through the implementation provided byOpenSSL via EVP when building the backend with it, and uses as fallbackimplementation KAME which was located in pgcrypto and already shaped foran integration with a set of init, update and final routines.Structures and routines have been renamed to make things consistent withthe fallback implementations of MD5 and SHA2.uuid-ossp has used for ages a shortcut with pgcrypto to fetch a copy ofSHA1 if needed. This was built depending on the build options within./configure, so this cleans up some code and removes the builddependency between pgcrypto and uuid-ossp.Note that this will help with the refactoring of HMAC, as pgcryptooffers the option to use MD5, SHA1 or SHA2, so only the second optionwas missing to make that possible.Author: Michael PaquierReviewed-by: Heikki LinnakangasDiscussion:https://postgr.es/m/X9HXKTgrvJvYO7Oh@paquier.xyz1 parent3fc81ce commita8ed6bb
File tree
18 files changed
+479
-424
lines changed- contrib
- pgcrypto
- uuid-ossp
- src
- common
- include/common
- tools
- msvc
- pgindent
18 files changed
+479
-424
lines changedLines changed: 7 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
705 | 705 |
| |
706 | 706 |
| |
707 | 707 |
| |
708 |
| - | |
709 | 708 |
| |
710 | 709 |
| |
711 | 710 |
| |
| |||
8303 | 8302 |
| |
8304 | 8303 |
| |
8305 | 8304 |
| |
8306 |
| - | |
| 8305 | + | |
| 8306 | + | |
8307 | 8307 |
| |
8308 | 8308 |
| |
8309 | 8309 |
| |
8310 |
| - | |
8311 |
| - | |
| 8310 | + | |
8312 | 8311 |
| |
8313 | 8312 |
| |
8314 | 8313 |
| |
8315 |
| - | |
8316 |
| - | |
| 8314 | + | |
8317 | 8315 |
| |
8318 | 8316 |
| |
8319 | 8317 |
| |
8320 |
| - | |
8321 |
| - | |
8322 |
| - | |
8323 |
| - | |
8324 |
| - | |
| 8318 | + | |
| 8319 | + | |
| 8320 | + | |
8325 | 8321 |
| |
8326 | 8322 |
| |
8327 | 8323 |
| |
8328 | 8324 |
| |
8329 |
| - | |
8330 | 8325 |
| |
8331 | 8326 |
| |
8332 | 8327 |
| |
|
Lines changed: 10 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
919 | 919 |
| |
920 | 920 |
| |
921 | 921 |
| |
922 |
| - | |
923 |
| - | |
924 |
| - | |
925 |
| - | |
926 |
| - | |
927 |
| - | |
928 |
| - | |
929 |
| - | |
930 |
| - | |
931 |
| - | |
932 |
| - | |
933 |
| - | |
934 |
| - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
935 | 932 |
| |
936 | 933 |
| |
937 |
| - | |
938 | 934 |
| |
939 | 935 |
| |
940 | 936 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 |
| - | |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
|
Lines changed: 14 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
40 | 39 |
| |
41 | 40 |
| |
42 | 41 |
| |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
| 42 | + | |
51 | 43 |
| |
52 | 44 |
| |
53 | 45 |
| |
| |||
144 | 136 |
| |
145 | 137 |
| |
146 | 138 |
| |
147 |
| - | |
| 139 | + | |
148 | 140 |
| |
149 |
| - | |
| 141 | + | |
| 142 | + | |
150 | 143 |
| |
151 | 144 |
| |
152 | 145 |
| |
153 | 146 |
| |
154 | 147 |
| |
155 |
| - | |
| 148 | + | |
156 | 149 |
| |
157 |
| - | |
| 150 | + | |
| 151 | + | |
158 | 152 |
| |
159 | 153 |
| |
160 | 154 |
| |
161 | 155 |
| |
162 | 156 |
| |
163 |
| - | |
| 157 | + | |
164 | 158 |
| |
165 |
| - | |
| 159 | + | |
| 160 | + | |
166 | 161 |
| |
167 | 162 |
| |
168 | 163 |
| |
169 | 164 |
| |
170 | 165 |
| |
171 |
| - | |
| 166 | + | |
172 | 167 |
| |
173 |
| - | |
174 |
| - | |
| 168 | + | |
175 | 169 |
| |
176 | 170 |
| |
177 | 171 |
| |
| |||
199 | 193 |
| |
200 | 194 |
| |
201 | 195 |
| |
202 |
| - | |
| 196 | + | |
203 | 197 |
| |
204 |
| - | |
| 198 | + | |
205 | 199 |
| |
206 | 200 |
| |
207 | 201 |
| |
|
0 commit comments
Comments
(0)