Revision 4fac108a
b/pithos/api/util.py | ||
---|---|---|
676 | 676 |
while s < len(hashmap): |
677 | 677 |
s = s * 2 |
678 | 678 |
h = hashmap + ([('\x00' * len(hashmap[0]))] * (s - len(hashmap))) |
679 |
h = [subhash(h[x] + (h[x + 1] if x + 1 < len(h) else '')) for x in range(0, len(h), 2)] |
|
680 | 679 |
while len(h) > 1: |
681 |
h = [subhash(h[x] + (h[x + 1] if x + 1 < len(h) else '')) for x in range(0, len(h), 2)]
|
|
680 |
h = [subhash(h[x] + h[x + 1]) for x in range(0, len(h), 2)]
|
|
682 | 681 |
return hexlify(h[0]) |
683 | 682 |
|
684 | 683 |
def update_response_headers(request, response): |
Also available in: Unified diff