Commit d3fab50
committed
bcrypt: Eliminate heap allocations when computing checksum contextless of a
single data block. Use forbidden alloca() function to create the buffer and
pass it to the initialization function. According to the documentation
[1]#pbHashObject, we should not call BCryptDestroyHash() if non-null buffer
is supplied.
* subversion/libsvn_subr/checksum_bcrypt.c
(bcrypt_checksum): Manually initialize the context and the algorithm.
Remove BCryptDestroyHash() call.
[1] https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptcreatehash
git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1931093 13f79535-47bb-0310-9956-ffa450edef681 parent 366e9c6 commit d3fab50
1 file changed
+19
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
182 | 185 | | |
183 | | - | |
| 186 | + | |
| 187 | + | |
184 | 188 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
191 | 198 | | |
192 | | - | |
| 199 | + | |
| 200 | + | |
193 | 201 | | |
194 | | - | |
195 | | - | |
| 202 | + | |
196 | 203 | | |
197 | 204 | | |
198 | 205 | | |
| |||
0 commit comments