otdf-python 0.0.13__py3-none-any.whl → 0.1.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- otdf_python/{_gotdf_python.cpython-311-darwin.so → _gotdf_python.cpython-312-darwin.so} +0 -0
- otdf_python/build.py +3 -3
- otdf_python/gotdf_python.py +15 -15
- {otdf_python-0.0.13.dist-info → otdf_python-0.1.8.dist-info}/METADATA +1 -1
- otdf_python-0.1.8.dist-info/RECORD +10 -0
- {otdf_python-0.0.13.dist-info → otdf_python-0.1.8.dist-info}/WHEEL +1 -1
- otdf_python-0.0.13.dist-info/RECORD +0 -10
- {otdf_python-0.0.13.dist-info → otdf_python-0.1.8.dist-info}/LICENSE +0 -0
- {otdf_python-0.0.13.dist-info → otdf_python-0.1.8.dist-info}/top_level.txt +0 -0
|
Binary file
|
otdf_python/build.py
CHANGED
|
@@ -178,13 +178,13 @@ mod.add_function('gotdf_python_TokenAuth_AccessToken_Get', retval('char*'), [par
|
|
|
178
178
|
mod.add_function('gotdf_python_TokenAuth_AccessToken_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
179
179
|
mod.add_function('gotdf_python_TokenAuth_NpeClientId_Get', retval('char*'), [param('int64_t', 'handle')])
|
|
180
180
|
mod.add_function('gotdf_python_TokenAuth_NpeClientId_Set', None, [param('int64_t', 'handle'), param('char*', 'val')])
|
|
181
|
+
add_checked_string_function(mod, 'gotdf_python_EncryptString', retval('char*'), [param('char*', 'inputText'), param('int64_t', 'config')])
|
|
182
|
+
add_checked_string_function(mod, 'gotdf_python_Hello', retval('char*'), [])
|
|
183
|
+
add_checked_string_function(mod, 'gotdf_python_DecryptFile', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config')])
|
|
181
184
|
add_checked_string_function(mod, 'gotdf_python_DecryptFilePE', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config'), param('int64_t', 'token')])
|
|
182
185
|
add_checked_string_function(mod, 'gotdf_python_DecryptStringPE', retval('char*'), [param('char*', 'inputText'), param('int64_t', 'config'), param('int64_t', 'token')])
|
|
183
186
|
add_checked_string_function(mod, 'gotdf_python_EncryptFile', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config')])
|
|
184
187
|
add_checked_string_function(mod, 'gotdf_python_EncryptFilePE', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config'), param('int64_t', 'token')])
|
|
185
|
-
add_checked_string_function(mod, 'gotdf_python_EncryptString', retval('char*'), [param('char*', 'inputText'), param('int64_t', 'config')])
|
|
186
|
-
add_checked_string_function(mod, 'gotdf_python_Hello', retval('char*'), [])
|
|
187
|
-
add_checked_string_function(mod, 'gotdf_python_DecryptFile', retval('char*'), [param('char*', 'inputFilePath'), param('char*', 'outputFilePath'), param('int64_t', 'config')])
|
|
188
188
|
|
|
189
189
|
mod.generate(open('gotdf_python.c', 'w'))
|
|
190
190
|
|
otdf_python/gotdf_python.py
CHANGED
|
@@ -347,21 +347,6 @@ class TokenAuth(go.GoClass):
|
|
|
347
347
|
|
|
348
348
|
|
|
349
349
|
# ---- Functions ---
|
|
350
|
-
def DecryptFilePE(inputFilePath, outputFilePath, config, token):
|
|
351
|
-
"""DecryptFilePE(str inputFilePath, str outputFilePath, object config, object token) str, str"""
|
|
352
|
-
return _gotdf_python.gotdf_python_DecryptFilePE(inputFilePath, outputFilePath, config.handle, token.handle)
|
|
353
|
-
def DecryptStringPE(inputText, config, token):
|
|
354
|
-
"""DecryptStringPE(str inputText, object config, object token) str, str"""
|
|
355
|
-
return _gotdf_python.gotdf_python_DecryptStringPE(inputText, config.handle, token.handle)
|
|
356
|
-
def EncryptFile(inputFilePath, outputFilePath, config):
|
|
357
|
-
"""EncryptFile(str inputFilePath, str outputFilePath, object config) str, str"""
|
|
358
|
-
return _gotdf_python.gotdf_python_EncryptFile(inputFilePath, outputFilePath, config.handle)
|
|
359
|
-
def EncryptFilePE(inputFilePath, outputFilePath, config, token):
|
|
360
|
-
"""EncryptFilePE(str inputFilePath, str outputFilePath, object config, object token) str, str
|
|
361
|
-
|
|
362
|
-
Encrypts a file as a PE (Person Entity), returning a TDF manifest and the cipher text.
|
|
363
|
-
"""
|
|
364
|
-
return _gotdf_python.gotdf_python_EncryptFilePE(inputFilePath, outputFilePath, config.handle, token.handle)
|
|
365
350
|
def EncryptString(inputText, config):
|
|
366
351
|
"""EncryptString(str inputText, object config) str, str"""
|
|
367
352
|
return _gotdf_python.gotdf_python_EncryptString(inputText, config.handle)
|
|
@@ -379,5 +364,20 @@ def Hello():
|
|
|
379
364
|
def DecryptFile(inputFilePath, outputFilePath, config):
|
|
380
365
|
"""DecryptFile(str inputFilePath, str outputFilePath, object config) str, str"""
|
|
381
366
|
return _gotdf_python.gotdf_python_DecryptFile(inputFilePath, outputFilePath, config.handle)
|
|
367
|
+
def DecryptFilePE(inputFilePath, outputFilePath, config, token):
|
|
368
|
+
"""DecryptFilePE(str inputFilePath, str outputFilePath, object config, object token) str, str"""
|
|
369
|
+
return _gotdf_python.gotdf_python_DecryptFilePE(inputFilePath, outputFilePath, config.handle, token.handle)
|
|
370
|
+
def DecryptStringPE(inputText, config, token):
|
|
371
|
+
"""DecryptStringPE(str inputText, object config, object token) str, str"""
|
|
372
|
+
return _gotdf_python.gotdf_python_DecryptStringPE(inputText, config.handle, token.handle)
|
|
373
|
+
def EncryptFile(inputFilePath, outputFilePath, config):
|
|
374
|
+
"""EncryptFile(str inputFilePath, str outputFilePath, object config) str, str"""
|
|
375
|
+
return _gotdf_python.gotdf_python_EncryptFile(inputFilePath, outputFilePath, config.handle)
|
|
376
|
+
def EncryptFilePE(inputFilePath, outputFilePath, config, token):
|
|
377
|
+
"""EncryptFilePE(str inputFilePath, str outputFilePath, object config, object token) str, str
|
|
378
|
+
|
|
379
|
+
Encrypts a file as a PE (Person Entity), returning a TDF manifest and the cipher text.
|
|
380
|
+
"""
|
|
381
|
+
return _gotdf_python.gotdf_python_EncryptFilePE(inputFilePath, outputFilePath, config.handle, token.handle)
|
|
382
382
|
|
|
383
383
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
otdf_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
otdf_python/_gotdf_python.cpython-312-darwin.so,sha256=PrEJwRzu5G-_kGWokpzpDcLVFByfirj0LS6uBjLmklA,15789992
|
|
3
|
+
otdf_python/build.py,sha256=o3wOgQdBPigNSbmf8lvH8G1EJECOFAcvwZugQKfFk7U,16756
|
|
4
|
+
otdf_python/go.py,sha256=7kz0kwEbEJZp9ZJIvdcUryZmhahLRb5RrkhGBN2BDBY,49317
|
|
5
|
+
otdf_python/gotdf_python.py,sha256=CwGzQImPxYuQoBWBIivR7AtSSIt1omE44mQY0AWXwEo,13880
|
|
6
|
+
otdf_python-0.1.8.dist-info/LICENSE,sha256=51wzGxR-Rns8XaiGmDLq2OqPN3qWMpoQKV-fERpVzyM,1063
|
|
7
|
+
otdf_python-0.1.8.dist-info/METADATA,sha256=bKW0IVB8-nJaP6hAxjVZLCujjbjgcyh57juGoCsG-xs,4933
|
|
8
|
+
otdf_python-0.1.8.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
9
|
+
otdf_python-0.1.8.dist-info/top_level.txt,sha256=A2vK95iTIxdu4pm8kDZlvHorBKCvSN5dvlMdFbIVXrA,12
|
|
10
|
+
otdf_python-0.1.8.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
otdf_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
otdf_python/_gotdf_python.cpython-311-darwin.so,sha256=kfXHmkRdxKJjy96_DvpJGttjUWz_WW4DQtXYG19pj7o,15710712
|
|
3
|
-
otdf_python/build.py,sha256=WwdUm0ey-MV1OuYjVcp12cKprHkHzGiupk4GphbhP9U,16756
|
|
4
|
-
otdf_python/go.py,sha256=7kz0kwEbEJZp9ZJIvdcUryZmhahLRb5RrkhGBN2BDBY,49317
|
|
5
|
-
otdf_python/gotdf_python.py,sha256=UtT6rqs7pEM7KiXEVApKBAP_Xx1s1_6mifL6_TVqN_g,13880
|
|
6
|
-
otdf_python-0.0.13.dist-info/LICENSE,sha256=51wzGxR-Rns8XaiGmDLq2OqPN3qWMpoQKV-fERpVzyM,1063
|
|
7
|
-
otdf_python-0.0.13.dist-info/METADATA,sha256=bxByPukjuI1ikWmEykxSZoaYTrcSYbJbKGDIABaiB1A,4934
|
|
8
|
-
otdf_python-0.0.13.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
9
|
-
otdf_python-0.0.13.dist-info/top_level.txt,sha256=A2vK95iTIxdu4pm8kDZlvHorBKCvSN5dvlMdFbIVXrA,12
|
|
10
|
-
otdf_python-0.0.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|