pybase16384 0.3.3__cp311-cp311-macosx_10_9_universal2.whl → 0.3.4__cp311-cp311-macosx_10_9_universal2.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.
Potentially problematic release.
This version of pybase16384 might be problematic. Click here for more details.
- pybase16384/__init__.py +1 -1
- pybase16384/backends/cffi/__init__.py +7 -7
- pybase16384/backends/cffi/{_core_cffi.abi3.so → _core.abi3.so} +0 -0
- pybase16384/backends/cffi/build.py +3 -3
- pybase16384/backends/cython/__init__.py +1 -1
- pybase16384/backends/cython/_core.abi3.so +0 -0
- pybase16384/backends/cython/{_core_cy.c → _core.c} +25936 -18871
- pybase16384/backends/cython/{_core_cy.pyx → _core.pyx} +6 -10
- pybase16384/backends/cython/base16384.pxd +2 -2
- {pybase16384-0.3.3.dist-info → pybase16384-0.3.4.dist-info}/METADATA +3 -3
- pybase16384-0.3.4.dist-info/RECORD +16 -0
- {pybase16384-0.3.3.dist-info → pybase16384-0.3.4.dist-info}/WHEEL +1 -1
- pybase16384/backends/cython/_core_cy.cpython-311-darwin.so +0 -0
- pybase16384-0.3.3.dist-info/RECORD +0 -16
- /pybase16384/backends/cython/{_core_cy.pyi → _core.pxi} +0 -0
- {pybase16384-0.3.3.dist-info → pybase16384-0.3.4.dist-info}/LICENSE +0 -0
- {pybase16384-0.3.3.dist-info → pybase16384-0.3.4.dist-info}/top_level.txt +0 -0
|
@@ -51,8 +51,7 @@ cpdef inline bytes _encode(const uint8_t[::1] data):
|
|
|
51
51
|
with nogil:
|
|
52
52
|
count = b14_encode(<const char*> &data[0],
|
|
53
53
|
<int>length,
|
|
54
|
-
output_buf
|
|
55
|
-
<int>output_size) # encode 整数倍的那个
|
|
54
|
+
output_buf) # encode 整数倍的那个
|
|
56
55
|
try:
|
|
57
56
|
return <bytes>output_buf[:count]
|
|
58
57
|
finally:
|
|
@@ -68,8 +67,7 @@ cpdef inline bytes _decode(const uint8_t[::1] data):
|
|
|
68
67
|
with nogil:
|
|
69
68
|
count = b14_decode(<const char *> &data[0],
|
|
70
69
|
<int> length,
|
|
71
|
-
output_buf
|
|
72
|
-
<int> output_size) # decode
|
|
70
|
+
output_buf) # decode
|
|
73
71
|
try:
|
|
74
72
|
return <bytes> output_buf[:count]
|
|
75
73
|
finally:
|
|
@@ -84,8 +82,7 @@ cpdef inline int _encode_into(const uint8_t[::1] data, uint8_t[::1] dest) except
|
|
|
84
82
|
with nogil:
|
|
85
83
|
return b14_encode(<const char *> &data[0],
|
|
86
84
|
<int> input_size,
|
|
87
|
-
<char *> &dest[0]
|
|
88
|
-
<int> output_buf_size)
|
|
85
|
+
<char *> &dest[0])
|
|
89
86
|
|
|
90
87
|
cpdef inline int _decode_into(const uint8_t[::1] data, uint8_t[::1] dest) except -1:
|
|
91
88
|
cdef size_t input_size = data.shape[0]
|
|
@@ -96,8 +93,7 @@ cpdef inline int _decode_into(const uint8_t[::1] data, uint8_t[::1] dest) except
|
|
|
96
93
|
with nogil:
|
|
97
94
|
return b14_decode(<const char *> &data[0],
|
|
98
95
|
<int> input_size,
|
|
99
|
-
<char *> &dest[0]
|
|
100
|
-
<int> output_buf_size)
|
|
96
|
+
<char *> &dest[0])
|
|
101
97
|
|
|
102
98
|
|
|
103
99
|
def encode_file(object input,
|
|
@@ -140,7 +136,7 @@ def encode_file(object input,
|
|
|
140
136
|
continue
|
|
141
137
|
chunk_ptr = <const char*>PyBytes_AS_STRING(chunk)
|
|
142
138
|
with nogil:
|
|
143
|
-
count = b14_encode(chunk_ptr, <int>size, output_buf
|
|
139
|
+
count = b14_encode(chunk_ptr, <int>size, output_buf)
|
|
144
140
|
output.write(<bytes>output_buf[:count])
|
|
145
141
|
if size < 7:
|
|
146
142
|
break
|
|
@@ -194,7 +190,7 @@ def decode_file(object input,
|
|
|
194
190
|
input.seek(-2, 1)
|
|
195
191
|
chunk_ptr = <const char *> PyBytes_AS_STRING(chunk)
|
|
196
192
|
with nogil:
|
|
197
|
-
count = b14_decode(chunk_ptr, <int> size, output_buf
|
|
193
|
+
count = b14_decode(chunk_ptr, <int> size, output_buf)
|
|
198
194
|
output.write(<bytes>output_buf[:count])
|
|
199
195
|
finally:
|
|
200
196
|
PyMem_Free(output_buf)
|
|
@@ -21,9 +21,9 @@ cdef extern from "base16384.h" nogil:
|
|
|
21
21
|
int b14_decode_len "base16384_decode_len" (int dlen, int offset)
|
|
22
22
|
|
|
23
23
|
# encode data and write result into buf
|
|
24
|
-
int b14_encode "base16384_encode" (const char* data, int dlen, char* buf
|
|
24
|
+
int b14_encode "base16384_encode" (const char* data, int dlen, char* buf)
|
|
25
25
|
# decode data and write result into buf
|
|
26
|
-
int b14_decode "base16384_decode" (const char* data, int dlen, char* buf
|
|
26
|
+
int b14_decode "base16384_decode" (const char* data, int dlen, char* buf)
|
|
27
27
|
|
|
28
28
|
base16384_err_t b14_encode_file "base16384_encode_file" (const char * input, const char * output, char * encbuf, char * decbuf)
|
|
29
29
|
base16384_err_t b14_decode_file "base16384_decode_file" (const char * input, const char * output, char * encbuf, char * decbuf)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pybase16384
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: fast base16384 encode and decode
|
|
5
5
|
Home-page: https://github.com/synodriver/pybase16384
|
|
6
6
|
Author: synodriver
|
|
@@ -14,11 +14,11 @@ Classifier: Topic :: Security :: Cryptography
|
|
|
14
14
|
Classifier: Programming Language :: C
|
|
15
15
|
Classifier: Programming Language :: Cython
|
|
16
16
|
Classifier: Programming Language :: Python
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.6
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.8
|
|
20
18
|
Classifier: Programming Language :: Python :: 3.9
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
22
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
23
23
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
24
24
|
Requires-Python: >=3.6
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
pybase16384/__init__.py,sha256=q5H10ehpHXm2CA1YvuPgkLy99tV9Bap-Wk1bb9tm8iY,2429
|
|
2
|
+
pybase16384/backends/__init__.py,sha256=vdW_t1O2WNfdRmxDlEXRvTpyJj5ufKWAUsD2fbtku5g,55
|
|
3
|
+
pybase16384/backends/cffi/build.py,sha256=0lSU8r__QlNrdl3spvwlzzIqnZBcFXJylNZP6tkWEZU,2988
|
|
4
|
+
pybase16384/backends/cffi/__init__.py,sha256=RB3eV5PG7rDGj_qPfHio4T9hWvAbw_SOuN7H8bPMxMU,7386
|
|
5
|
+
pybase16384/backends/cffi/_core.abi3.so,sha256=H92N8nMrwHYiU1V2THawfnLpOAyi0v_TNtZogdu-X-M,119504
|
|
6
|
+
pybase16384/backends/cython/_core.c,sha256=42BkW-X-sW0XpeefIjaXjYXY4bPtdiMizYr23YfdztM,1296338
|
|
7
|
+
pybase16384/backends/cython/__init__.py,sha256=04-hw42BzdNPAKj9N8ZCgFLqw3GALZ8AsYmeyeneyzo,335
|
|
8
|
+
pybase16384/backends/cython/base16384.pxd,sha256=CpYE_Vav4l1n8fAzp0VRr0kEj8JYcQmpTa5-6wpfMHE,2272
|
|
9
|
+
pybase16384/backends/cython/_core.abi3.so,sha256=_KinpOXvP3uQRORxHNt4koCOwFeuv96mGuHnoPyUKTE,474080
|
|
10
|
+
pybase16384/backends/cython/_core.pyx,sha256=9ms8ao_KNaiJVqYxKSiF9W16IOdSwZUNu9ZX5CFFT1E,11482
|
|
11
|
+
pybase16384/backends/cython/_core.pxi,sha256=2fXuRiumLqxO0bnmZVEz0lr_GX-grJGBfhGIVedfyt8,530
|
|
12
|
+
pybase16384-0.3.4.dist-info/RECORD,,
|
|
13
|
+
pybase16384-0.3.4.dist-info/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
|
14
|
+
pybase16384-0.3.4.dist-info/WHEEL,sha256=1gGdl8c7V4tzGrOfjA4xbXg5uJOisfAwei4hK84YpXE,115
|
|
15
|
+
pybase16384-0.3.4.dist-info/top_level.txt,sha256=kXpl7pWjnjpm74qJP0SJg3JhbiWuwKQApJgkJH0B5Mk,12
|
|
16
|
+
pybase16384-0.3.4.dist-info/METADATA,sha256=5QcX1TcoW2tKe4nYZUo9c2jbPFtoCPBZsenDRC9aceg,5387
|
|
Binary file
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
pybase16384/__init__.py,sha256=vcwJRHVB4J1MDtiyRmksNCHCcLrMQIIy8-oEwFLcBT8,2429
|
|
2
|
-
pybase16384/backends/__init__.py,sha256=vdW_t1O2WNfdRmxDlEXRvTpyJj5ufKWAUsD2fbtku5g,55
|
|
3
|
-
pybase16384/backends/cffi/__init__.py,sha256=YEI2qrjgZ0QOWX42GYOJQ31Govfm-eKUOn6mD5zfv-k,7463
|
|
4
|
-
pybase16384/backends/cffi/_core_cffi.abi3.so,sha256=pN5xh1a82vNp7yz6iHAPMcBjbl22lMNCPIkaZ7J0VvQ,119552
|
|
5
|
-
pybase16384/backends/cffi/build.py,sha256=PFeGo-a78jgJpkZPdLtySxpkIOF3tJh6GpZjr5VNSvo,3013
|
|
6
|
-
pybase16384/backends/cython/__init__.py,sha256=1DyejUxgY-G31e0u0JcpvgkZfFQr4X2SfXkooirwsUE,338
|
|
7
|
-
pybase16384/backends/cython/_core_cy.c,sha256=tNbePH1C9LKCRUCukyQh3pofDfrf71wMlSAaFb-RZ8k,1016755
|
|
8
|
-
pybase16384/backends/cython/_core_cy.cpython-311-darwin.so,sha256=U2700t-9o3h7Lb9kl60x64Iz-6TifxyOvw2JSNecLzQ,404544
|
|
9
|
-
pybase16384/backends/cython/_core_cy.pyi,sha256=2fXuRiumLqxO0bnmZVEz0lr_GX-grJGBfhGIVedfyt8,530
|
|
10
|
-
pybase16384/backends/cython/_core_cy.pyx,sha256=1ZddlA2z17N9QAUdar-o0oqH7GOTszUmUL8AIwcBIHk,11747
|
|
11
|
-
pybase16384/backends/cython/base16384.pxd,sha256=e8PeVS8ulSqx8rMIU1oZa9n-dIPT4OxbjFl-l30Xmu4,2292
|
|
12
|
-
pybase16384-0.3.3.dist-info/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
|
13
|
-
pybase16384-0.3.3.dist-info/METADATA,sha256=t1HM6BFIQ7WXmN5olz8qxeX2lDqFynT-4ivXmLo8ByQ,5385
|
|
14
|
-
pybase16384-0.3.3.dist-info/WHEEL,sha256=X_MGNhAsWEN9K0YSX0of13kbIiJVfrCZTgouYGY3zN8,115
|
|
15
|
-
pybase16384-0.3.3.dist-info/top_level.txt,sha256=kXpl7pWjnjpm74qJP0SJg3JhbiWuwKQApJgkJH0B5Mk,12
|
|
16
|
-
pybase16384-0.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|