Skip to content

Commit

Permalink
Merge 0988740 into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Mar 9, 2022
2 parents 63be2af + 0988740 commit 7a2e09f
Show file tree
Hide file tree
Showing 83 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
python-version: [ 3.7, 3.8, 3.9 ] # 3.10.0-beta.1
python-version: [ 3.7, 3.8, 3.9, '3.10' ]

steps:
- uses: actions/checkout@v2
Expand Down
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified CHANGELOG.md
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified dmk/__init__.py
100644 → 100755
Empty file.
Empty file modified dmk/_cli.py
100644 → 100755
Empty file.
Empty file modified dmk/_common.py
100644 → 100755
Empty file.
Empty file modified dmk/_constants.py
100644 → 100755
Empty file.
Empty file modified dmk/_main.py
100644 → 100755
Empty file.
Empty file modified dmk/_vault_file.py
100644 → 100755
Empty file.
Empty file modified dmk/a_base/_05_codename.py
100644 → 100755
Empty file.
Empty file modified dmk/a_base/_10_kdf.py
100644 → 100755
Empty file.
Empty file modified dmk/a_base/__init__.py
100644 → 100755
Empty file.
Empty file modified dmk/a_utils/__init__.py
100644 → 100755
Empty file.
Empty file modified dmk/a_utils/bytes.py
100644 → 100755
Empty file.
Empty file modified dmk/a_utils/dirty_file.py
100644 → 100755
Empty file.
Empty file modified dmk/a_utils/randoms.py
100644 → 100755
Empty file.
Empty file modified dmk/a_utils/shred.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion dmk/b_cryptoblobs/_10_byte_funcs.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ def bytes_to_uint24(data: bytes) -> int:
raise ValueError
return int.from_bytes(data, byteorder='big', signed=False)


def bytes_to_uint48(data: bytes) -> int:
if len(data) != 6:
raise ValueError
return int.from_bytes(data, byteorder='big', signed=False)



def bytes_to_int64(data: bytes) -> int:
if len(data) != 8:
raise ValueError
Expand Down
Empty file modified dmk/b_cryptoblobs/_20_encdec_part.py
100644 → 100755
Empty file.
Empty file modified dmk/b_cryptoblobs/_30_encdec_multipart.py
100644 → 100755
Empty file.
Empty file modified dmk/b_cryptoblobs/__init__.py
100644 → 100755
Empty file.
Empty file modified dmk/b_storage_file/_10_fragment_io.py
100644 → 100755
Empty file.
Empty file modified dmk/b_storage_file/_20_blocks_rw.py
100644 → 100755
Empty file.
Empty file modified dmk/b_storage_file/_30_storage_file.py
100644 → 100755
Empty file.
Empty file modified dmk/b_storage_file/__init__.py
100644 → 100755
Empty file.
Empty file modified dmk/c_namegroups/__init__.py
100644 → 100755
Empty file.
Empty file modified dmk/c_namegroups/_fakes.py
100644 → 100755
Empty file.
Empty file modified dmk/c_namegroups/_namegroup.py
100644 → 100755
Empty file.
Empty file modified dmk/c_namegroups/_update.py
100644 → 100755
Empty file.
Empty file modified dmk/c_namegroups/content_ver.py
100644 → 100755
Empty file.
Empty file modified experiments/__init__.py
100644 → 100755
Empty file.
Empty file modified experiments/bench_blake_hash_sizes.py
100644 → 100755
Empty file.
Empty file modified experiments/bench_chacha_vs_blake.py
100644 → 100755
Empty file.
Empty file modified experiments/bench_get_random_bytes.py
100644 → 100755
Empty file.
Empty file modified experiments/exp.py
100644 → 100755
Empty file.
Empty file modified experiments/exp_checksum_in_encoded.py
100644 → 100755
Empty file.
12 changes: 6 additions & 6 deletions lint.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@


def lint():

# pip3 install --upgrade setuptools pip distlib

print("Running pylint...")
r = subprocess.call(['pylint', 'dmk'])
if r & 1 or r & 2 or r & 32:
exit(1)
# print("Running pylint...")
# r = subprocess.call(['pylint', 'dmk'])
# if r & 1 or r & 2 or r & 32:
# exit(1)

print("Running mypy...")
if subprocess.call(['mypy', 'dmk',
'--ignore-missing-imports']) != 0:
exit(1)


if __name__ == "__main__":
lint()
lint()
Empty file modified mypy.ini
100644 → 100755
Empty file.
Empty file modified pylintrc
100644 → 100755
Empty file.
Empty file modified requirements.txt
100644 → 100755
Empty file.
6 changes: 2 additions & 4 deletions setup.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,15 @@ def load_module_dict(filename: str) -> dict:
"".split(),

classifiers=[
#"Development Status :: 4 - Beta",
#"Intended Audience :: Developers",
'Development Status :: 2 - Pre-Alpha',
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
'Topic :: Security :: Cryptography',
"Environment :: Console",
"Typing :: Typed",
#"Topic :: Software Development :: Build Tools",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows"
],
Expand Down
Empty file modified test_pkg.py
100644 → 100755
Empty file.
Empty file modified test_unit.py
100644 → 100755
Empty file.
Empty file modified tests/__init__.py
100644 → 100755
Empty file.
Empty file modified tests/common.py
100644 → 100755
Empty file.
Empty file modified tests/data/ref_vault.dmk
100644 → 100755
Empty file.
Empty file modified tests/data_refs/2crq2uw2xwea
100644 → 100755
Empty file.
Empty file modified tests/data_refs/4b65zkdiyewig
100644 → 100755
Empty file.
Empty file modified tests/data_refs/5bp2u
100644 → 100755
Empty file.
Empty file modified tests/data_refs/6cxd7qsoue2uy
100644 → 100755
Empty file.
Empty file modified tests/data_refs/6yb2rbrh63pq
100644 → 100755
Empty file.
Empty file modified tests/data_refs/dc5uxi4qrcmxwwy
100644 → 100755
Empty file.
Empty file modified tests/data_refs/el6vtqi
100644 → 100755
Empty file.
Empty file modified tests/data_refs/g3zapijnsz256yakmm
100644 → 100755
Empty file.
Empty file modified tests/data_refs/g53a
100644 → 100755
Empty file.
Empty file modified tests/data_refs/gnels243gzj4di6tdu
100644 → 100755
Empty file.
Empty file modified tests/data_refs/j3723g4d6winqnep
100644 → 100755
Empty file.
Empty file modified tests/data_refs/j5a253qsju
100644 → 100755
Empty file.
Empty file modified tests/data_refs/j5l6atkcqclfct5gbm
100644 → 100755
Empty file.
Empty file modified tests/data_refs/midwj6rg6pdgpay
100644 → 100755
Empty file.
Empty file modified tests/data_refs/ozotxbjsvcflk5gaoq
100644 → 100755
Empty file.
Empty file modified tests/data_refs/qz35kupadj24f2ku
100644 → 100755
Empty file.
Empty file modified tests/data_refs/tt74nrjh54
100644 → 100755
Empty file.
Empty file modified tests/data_refs/tynm4oi6na2uoxd6
100644 → 100755
Empty file.
Empty file modified tests/test_blob_name_group.py
100644 → 100755
Empty file.
Empty file modified tests/test_blobs_update.py
100644 → 100755
Empty file.
Empty file modified tests/test_blocks.py
100644 → 100755
Empty file.
Empty file modified tests/test_byte_funcs.py
100644 → 100755
Empty file.
Empty file modified tests/test_cli.py
100644 → 100755
Empty file.
Empty file modified tests/test_content_ver.py
100644 → 100755
Empty file.
Empty file modified tests/test_encdec_multipart.py
100644 → 100755
Empty file.
Empty file modified tests/test_encrypt_part.py
100644 → 100755
Empty file.
Empty file modified tests/test_io_fragment.py
100644 → 100755
Empty file.
Empty file modified tests/test_kdf.py
100644 → 100755
Empty file.
Empty file modified tests/test_parse_nunits.py
100644 → 100755
Empty file.
Empty file modified tests/test_random_names.py
100644 → 100755
Empty file.
Empty file modified tests/test_randoms.py
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions tests/test_reference.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def generate_references():
d.set_from_io(name, input_io)
print(f"Written in {time.monotonic() - t}")

#@unittest.skip('tmp')

class TestRefs(unittest.TestCase):
def test(self):
assert CodenameKey.is_standard_params()
d = DmkFile(refs_file)
print("References salt", tuple(d.salt))
# print("References salt", tuple(d.salt))
for name, data in ref_content:
self.assertEqual(d.get_bytes(name), data)

Expand Down
Empty file modified tests/test_shred.py
100644 → 100755
Empty file.
Empty file modified tests/test_storage_file.py
100644 → 100755
Empty file.
Empty file modified tests/test_thefile.py
100644 → 100755
Empty file.

0 comments on commit 7a2e09f

Please sign in to comment.