|
@@ -121,10 +121,10 @@ def decrypt_sph_video(video_path: str, key: int, save_path: str) -> None:
|
|
|
"""
|
|
|
print("key is {}".format(key))
|
|
|
ffi = cffi.FFI()
|
|
|
- ffi.cdef('void decrypt(unsigned char *data, const size_t data_length, const uint32_t key);')
|
|
|
|
|
|
try:
|
|
|
lib = ffi.dlopen(decrypt_key_path)
|
|
|
+ ffi.cdef('void decrypt(unsigned char *data, const size_t data_length, const uint32_t key);')
|
|
|
|
|
|
with open(video_path, 'rb') as f:
|
|
|
encrypted_data = f.read()
|