Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(69273)

Delta Between Two Patch Sets: Modules/_blake2/blake2b2s.py

Issue 26798: add BLAKE2 to hashlib
Left Patch Set: Created 3 years, 2 months ago
Right Patch Set: Created 3 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Makefile.pre.in ('k') | Modules/_blake2/blake2b_impl.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 #!/usr/bin/python3 1 #!/usr/bin/python3
2 2
3 import os 3 import os
4 import re 4 import re
5 5
6 HERE = os.path.dirname(os.path.abspath(__file__)) 6 HERE = os.path.dirname(os.path.abspath(__file__))
7 BLAKE2 = os.path.join(HERE, 'impl') 7 BLAKE2 = os.path.join(HERE, 'impl')
8 8
9 PUBLIC_SEARCH = re.compile(r'\ int (blake2[bs]p?[a-z_]*)\(') 9 PUBLIC_SEARCH = re.compile(r'\ int (blake2[bs]p?[a-z_]*)\(')
10 10
(...skipping 29 matching lines...) Expand all
40 line = line.replace('BLAKE2b', 'BLAKE2s') 40 line = line.replace('BLAKE2b', 'BLAKE2s')
41 line = line.replace('BLAKE2B', 'BLAKE2S') 41 line = line.replace('BLAKE2B', 'BLAKE2S')
42 lines.append(line) 42 lines.append(line)
43 with open(os.path.join(HERE, 'blake2s_impl.c'), 'w') as f: 43 with open(os.path.join(HERE, 'blake2s_impl.c'), 'w') as f:
44 f.write(''.join(lines)) 44 f.write(''.join(lines))
45 # find_public() 45 # find_public()
46 46
47 47
48 if __name__ == '__main__': 48 if __name__ == '__main__':
49 main() 49 main()
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+